CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions
PrintTotemDAQMapping Class Reference

Prints the DAQ mapping loaded by DAQMappingSourceXML. More...

Inheritance diagram for PrintTotemDAQMapping:
edm::one::EDAnalyzer<> edm::one::EDAnalyzerBase edm::EDConsumerBase

Public Member Functions

 PrintTotemDAQMapping (const edm::ParameterSet &ps)
 
 ~PrintTotemDAQMapping ()
 
- Public Member Functions inherited from edm::one::EDAnalyzer<>
 EDAnalyzer ()=default
 
- Public Member Functions inherited from edm::one::EDAnalyzerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzerBase ()
 
ModuleDescription const & moduleDescription () const
 
virtual ~EDAnalyzerBase ()
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
 EDConsumerBase ()
 
ProductHolderIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
std::vector
< ProductHolderIndexAndSkipBit >
const & 
itemsToGetFromEvent () const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesDependentUpon (std::string const &iProcessName, std::string const &iModuleLabel, bool iPrint, std::vector< char const * > &oModuleLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

Private Member Functions

virtual void analyze (const edm::Event &e, const edm::EventSetup &es)
 
virtual void beginRun (edm::Run const &, edm::EventSetup const &)
 
virtual void endJob ()
 

Additional Inherited Members

- Public Types inherited from edm::one::EDAnalyzerBase
typedef EDAnalyzerBase ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from edm::one::EDAnalyzerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 

Detailed Description

Prints the DAQ mapping loaded by DAQMappingSourceXML.

Definition at line 25 of file PrintTotemDAQMapping.cc.

Constructor & Destructor Documentation

PrintTotemDAQMapping::PrintTotemDAQMapping ( const edm::ParameterSet ps)
inline

Definition at line 28 of file PrintTotemDAQMapping.cc.

28 {}
PrintTotemDAQMapping::~PrintTotemDAQMapping ( )
inline

Definition at line 29 of file PrintTotemDAQMapping.cc.

29 {}

Member Function Documentation

virtual void PrintTotemDAQMapping::analyze ( const edm::Event e,
const edm::EventSetup es 
)
inlineprivatevirtual

Implements edm::one::EDAnalyzerBase.

Definition at line 33 of file PrintTotemDAQMapping.cc.

33 {}
void PrintTotemDAQMapping::beginRun ( edm::Run const &  ,
edm::EventSetup const &  es 
)
privatevirtual

Definition at line 42 of file PrintTotemDAQMapping.cc.

References gather_cfg::cout, edm::EventSetup::get(), and AlCaHLTBitMon_ParallelJobs::p.

43 {
44  // get mapping
46  es.get<TotemReadoutRcd>().get(mapping);
47 
48  // get analysis mask to mask channels
49  ESHandle<TotemAnalysisMask> analysisMask;
50  es.get<TotemReadoutRcd>().get(analysisMask);
51 
52  for (const auto &p : mapping->VFATMapping)
53  {
54  cout << p.first << " -> " << p.second << endl;
55  }
56 }
EventSetup record for TOTEM readout-related information.
tuple cout
Definition: gather_cfg.py:145
virtual void PrintTotemDAQMapping::endJob ( void  )
inlineprivatevirtual

Reimplemented from edm::one::EDAnalyzerBase.

Definition at line 34 of file PrintTotemDAQMapping.cc.

34 {}