All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Public Types | Public Member Functions | Private Attributes | List of all members
geo::DumpChannelMap Class Reference

Prints on screen the current channel-wire and optical detector maps. More...

Inheritance diagram for geo::DumpChannelMap:

Classes

struct  Config
 Module configuration. More...
 

Public Types

using Parameters = art::EDAnalyzer::Table< Config >
 

Public Member Functions

 DumpChannelMap (Parameters const &config)
 
 DumpChannelMap (DumpChannelMap const &)=delete
 
 DumpChannelMap (DumpChannelMap &&)=delete
 
DumpChannelMapoperator= (DumpChannelMap const &)=delete
 
DumpChannelMapoperator= (DumpChannelMap &&)=delete
 
void analyze (art::Event const &) override
 
void beginRun (art::Run const &) override
 Drives the dumping. More...
 

Private Attributes

std::string OutputCategory
 Name of the category for output. More...
 
bool DoChannelToWires
 Dump channel -> wires mapping. More...
 
bool DoWireToChannel
 Dump wire -> channel mapping. More...
 
bool DoOpDetChannels
 Dump optical detector channel -> optical detector. More...
 
raw::ChannelID_t FirstChannel
 First channel to be printed. More...
 
raw::ChannelID_t LastChannel
 Last channel to be printed. More...
 

Detailed Description

Prints on screen the current channel-wire and optical detector maps.


One print is performed at the beginning of each run.

Configuration parameters

Definition at line 58 of file DumpChannelMap_module.cc.

Member Typedef Documentation

using geo::DumpChannelMap::Parameters = art::EDAnalyzer::Table<Config>

Definition at line 108 of file DumpChannelMap_module.cc.

Constructor & Destructor Documentation

geo::DumpChannelMap::DumpChannelMap ( Parameters const &  config)
explicit

Definition at line 239 of file DumpChannelMap_module.cc.

240  : art::EDAnalyzer(config)
241  , OutputCategory (config().OutputCategory())
242  , DoChannelToWires(config().ChannelToWires())
243  , DoWireToChannel (config().WireToChannel())
244  , DoOpDetChannels (config().OpDetChannels())
245  , FirstChannel (config().FirstChannel())
246  , LastChannel (config().LastChannel())
247 {
248 
249 } // geo::DumpChannelMap::DumpChannelMap()
bool DoOpDetChannels
Dump optical detector channel -&gt; optical detector.
std::string OutputCategory
Name of the category for output.
bool DoWireToChannel
Dump wire -&gt; channel mapping.
bool DoChannelToWires
Dump channel -&gt; wires mapping.
raw::ChannelID_t LastChannel
Last channel to be printed.
raw::ChannelID_t FirstChannel
First channel to be printed.
geo::DumpChannelMap::DumpChannelMap ( DumpChannelMap const &  )
delete
geo::DumpChannelMap::DumpChannelMap ( DumpChannelMap &&  )
delete

Member Function Documentation

void geo::DumpChannelMap::analyze ( art::Event const &  )
inlineoverride

Definition at line 120 of file DumpChannelMap_module.cc.

120 {}
void geo::DumpChannelMap::beginRun ( art::Run const &  )
override

Drives the dumping.

Definition at line 252 of file DumpChannelMap_module.cc.

252  {
253 
254  geo::GeometryCore const& geom = *(art::ServiceHandle<geo::Geometry const>());
255 
256  if (DoChannelToWires) {
257  DumpChannelToWires dumper;
258  dumper.Setup(geom);
259  dumper.SetLimits(FirstChannel, LastChannel);
260  dumper.Dump(OutputCategory);
261  }
262 
263  if (DoWireToChannel) {
264  DumpWireToChannel dumper;
265  dumper.Setup(geom);
266  // dumper.SetLimits(FirstChannel, LastChannel);
267  dumper.Dump(OutputCategory);
268  }
269 
270  if (DoOpDetChannels) {
271  DumpOpticalDetectorChannels dumper;
272  dumper.Setup(geom);
273  dumper.Dump(OutputCategory);
274  }
275 
276 } // geo::DumpChannelMap::beginRun()
bool DoOpDetChannels
Dump optical detector channel -&gt; optical detector.
std::string OutputCategory
Name of the category for output.
bool DoWireToChannel
Dump wire -&gt; channel mapping.
Description of geometry of one entire detector.
bool DoChannelToWires
Dump channel -&gt; wires mapping.
raw::ChannelID_t LastChannel
Last channel to be printed.
raw::ChannelID_t FirstChannel
First channel to be printed.
DumpChannelMap& geo::DumpChannelMap::operator= ( DumpChannelMap const &  )
delete
DumpChannelMap& geo::DumpChannelMap::operator= ( DumpChannelMap &&  )
delete

Member Data Documentation

bool geo::DumpChannelMap::DoChannelToWires
private

Dump channel -> wires mapping.

Definition at line 128 of file DumpChannelMap_module.cc.

bool geo::DumpChannelMap::DoOpDetChannels
private

Dump optical detector channel -> optical detector.

Definition at line 130 of file DumpChannelMap_module.cc.

bool geo::DumpChannelMap::DoWireToChannel
private

Dump wire -> channel mapping.

Definition at line 129 of file DumpChannelMap_module.cc.

raw::ChannelID_t geo::DumpChannelMap::FirstChannel
private

First channel to be printed.

Definition at line 132 of file DumpChannelMap_module.cc.

raw::ChannelID_t geo::DumpChannelMap::LastChannel
private

Last channel to be printed.

Definition at line 133 of file DumpChannelMap_module.cc.

std::string geo::DumpChannelMap::OutputCategory
private

Name of the category for output.

Definition at line 127 of file DumpChannelMap_module.cc.


The documentation for this class was generated from the following file: