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:
art::EDAnalyzer art::detail::Analyzer art::detail::LegacyModule art::Observer art::ModuleBase

Classes

struct  Config
 Module configuration. More...
 

Public Types

using Parameters = art::EDAnalyzer::Table< Config >
 
- Public Types inherited from art::EDAnalyzer
using WorkerType = WorkerT< EDAnalyzer >
 
using ModuleType = EDAnalyzer
 

Public Member Functions

 DumpChannelMap (Parameters const &config)
 
 DumpChannelMap (DumpChannelMap const &)=delete
 
 DumpChannelMap (DumpChannelMap &&)=delete
 
DumpChannelMapoperator= (DumpChannelMap const &)=delete
 
DumpChannelMapoperator= (DumpChannelMap &&)=delete
 
virtual void analyze (art::Event const &) override
 
virtual void beginRun (art::Run const &) override
 Drives the dumping. More...
 
- Public Member Functions inherited from art::EDAnalyzer
 EDAnalyzer (fhicl::ParameterSet const &pset)
 
template<typename Config >
 EDAnalyzer (Table< Config > const &config)
 
std::string workerType () const
 
- Public Member Functions inherited from art::detail::Analyzer
virtual ~Analyzer () noexcept
 
 Analyzer (fhicl::ParameterSet const &pset)
 
template<typename Config >
 Analyzer (Table< Config > const &config)
 
void doBeginJob (SharedResources const &resources)
 
void doEndJob ()
 
void doRespondToOpenInputFile (FileBlock const &fb)
 
void doRespondToCloseInputFile (FileBlock const &fb)
 
void doRespondToOpenOutputFiles (FileBlock const &fb)
 
void doRespondToCloseOutputFiles (FileBlock const &fb)
 
bool doBeginRun (RunPrincipal &rp, ModuleContext const &mc)
 
bool doEndRun (RunPrincipal &rp, ModuleContext const &mc)
 
bool doBeginSubRun (SubRunPrincipal &srp, ModuleContext const &mc)
 
bool doEndSubRun (SubRunPrincipal &srp, ModuleContext const &mc)
 
bool doEvent (EventPrincipal &ep, ModuleContext const &mc, std::atomic< std::size_t > &counts_run, std::atomic< std::size_t > &counts_passed, std::atomic< std::size_t > &counts_failed)
 
- Public Member Functions inherited from art::Observer
 ~Observer () noexcept
 
 Observer (Observer const &)=delete
 
 Observer (Observer &&)=delete
 
Observeroperator= (Observer const &)=delete
 
Observeroperator= (Observer &&)=delete
 
void registerProducts (ProductDescriptions &, ModuleDescription const &)
 
void fillDescriptions (ModuleDescription const &)
 
fhicl::ParameterSetID selectorConfig () const
 
- Public Member Functions inherited from art::ModuleBase
virtual ~ModuleBase () noexcept
 
 ModuleBase ()
 
ModuleDescription const & moduleDescription () const
 
void setModuleDescription (ModuleDescription const &)
 
std::array< std::vector< ProductInfo >, NumBranchTypes > const & getConsumables () const
 
void sortConsumables (std::string const &current_process_name)
 
template<typename T , BranchType BT>
ViewToken< T > consumesView (InputTag const &tag)
 
template<typename T , BranchType BT>
ViewToken< T > mayConsumeView (InputTag const &tag)
 

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...
 

Additional Inherited Members

- Protected Member Functions inherited from art::Observer
std::string const & processName () const
 
bool wantAllEvents () const noexcept
 
bool wantEvent (ScheduleID id, Event const &e) const
 
Handle< TriggerResultsgetTriggerResults (Event const &e) const
 
 Observer (fhicl::ParameterSet const &config)
 
 Observer (std::vector< std::string > const &select_paths, std::vector< std::string > const &reject_paths, fhicl::ParameterSet const &config)
 
- Protected Member Functions inherited from art::ModuleBase
ConsumesCollectorconsumesCollector ()
 
template<typename T , BranchType = InEvent>
ProductToken< T > consumes (InputTag const &)
 
template<typename Element , BranchType = InEvent>
ViewToken< Element > consumesView (InputTag const &)
 
template<typename T , BranchType = InEvent>
void consumesMany ()
 
template<typename T , BranchType = InEvent>
ProductToken< T > mayConsume (InputTag const &)
 
template<typename Element , BranchType = InEvent>
ViewToken< Element > mayConsumeView (InputTag const &)
 
template<typename T , BranchType = InEvent>
void mayConsumeMany ()
 

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 52 of file DumpChannelMap_module.cc.

Member Typedef Documentation

Definition at line 102 of file DumpChannelMap_module.cc.

Constructor & Destructor Documentation

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

Definition at line 246 of file DumpChannelMap_module.cc.

249  , DoChannelToWires(config().ChannelToWires())
250  , DoWireToChannel (config().WireToChannel())
251  , DoOpDetChannels (config().OpDetChannels())
254 {
255 
256 } // geo::DumpChannelMap::DumpChannelMap()
bool DoOpDetChannels
Dump optical detector channel -> optical detector.
std::string OutputCategory
Name of the category for output.
static Config * config
Definition: config.cpp:1054
bool DoWireToChannel
Dump wire -> channel mapping.
bool DoChannelToWires
Dump channel -> 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

virtual void geo::DumpChannelMap::analyze ( art::Event const &  )
inlineoverridevirtual

Implements art::EDAnalyzer.

Definition at line 114 of file DumpChannelMap_module.cc.

114 {}
void geo::DumpChannelMap::beginRun ( art::Run const &  )
overridevirtual

Drives the dumping.

Reimplemented from art::EDAnalyzer.

Definition at line 259 of file DumpChannelMap_module.cc.

259  {
260 
262 
263  if (DoChannelToWires) {
264  DumpChannelToWires dumper;
265  dumper.Setup(geom);
266  dumper.SetLimits(FirstChannel, LastChannel);
267  dumper.Dump(OutputCategory);
268  }
269 
270  if (DoWireToChannel) {
271  DumpWireToChannel dumper;
272  dumper.Setup(geom);
273  // dumper.SetLimits(FirstChannel, LastChannel);
274  dumper.Dump(OutputCategory);
275  }
276 
277  if (DoOpDetChannels) {
278  DumpOpticalDetectorChannels dumper;
279  dumper.Setup(geom);
280  dumper.Dump(OutputCategory);
281  }
282 
283 } // geo::DumpChannelMap::beginRun()
bool DoOpDetChannels
Dump optical detector channel -> optical detector.
std::string OutputCategory
Name of the category for output.
bool DoWireToChannel
Dump wire -> channel mapping.
Description of geometry of one entire detector.
bool DoChannelToWires
Dump channel -> 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 122 of file DumpChannelMap_module.cc.

bool geo::DumpChannelMap::DoOpDetChannels
private

Dump optical detector channel -> optical detector.

Definition at line 124 of file DumpChannelMap_module.cc.

bool geo::DumpChannelMap::DoWireToChannel
private

Dump wire -> channel mapping.

Definition at line 123 of file DumpChannelMap_module.cc.

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

First channel to be printed.

Definition at line 126 of file DumpChannelMap_module.cc.

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

Last channel to be printed.

Definition at line 127 of file DumpChannelMap_module.cc.

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

Name of the category for output.

Definition at line 121 of file DumpChannelMap_module.cc.


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