CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
PrintTotemDAQMapping Class Reference

Prints the DAQ mapping loaded by TotemDAQMappingESSourceXML. 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 ()
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
 EDConsumerBase (EDConsumerBase &&)=default
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFrom (BranchType iType) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
virtual ~EDConsumerBase () noexcept(false)
 

Private Member Functions

virtual void analyze (const edm::Event &e, const edm::EventSetup &es) override
 

Private Attributes

std::string subSystemName
 label of the CTPPS sub-system More...
 

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

Definition at line 25 of file PrintTotemDAQMapping.cc.

Constructor & Destructor Documentation

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

Definition at line 43 of file PrintTotemDAQMapping.cc.

43  :
44  subSystemName(ps.getUntrackedParameter<string>("subSystem"))
45 {
46 }
T getUntrackedParameter(std::string const &, T const &) const
std::string subSystemName
label of the CTPPS sub-system
PrintTotemDAQMapping::~PrintTotemDAQMapping ( )
inline

Definition at line 29 of file PrintTotemDAQMapping.cc.

29 {}

Member Function Documentation

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

Definition at line 50 of file PrintTotemDAQMapping.cc.

References TotemAnalysisMask::analysisMask, gather_cfg::cout, DEFINE_FWK_MODULE, edm::EventSetup::get(), HPSPFTaus_cff::mapping, AlCaHLTBitMon_ParallelJobs::p, subSystemName, and TotemDAQMapping::VFATMapping.

51 {
52  // get mapping
54  es.get<TotemReadoutRcd>().get(subSystemName, mapping);
55 
56  // get analysis mask to mask channels
57  ESHandle<TotemAnalysisMask> analysisMask;
58  es.get<TotemReadoutRcd>().get(subSystemName, analysisMask);
59 
60  // print mapping
61  printf("* DAQ mapping\n");
62  for (const auto &p : mapping->VFATMapping)
63  cout << " " << p.first << " -> " << p.second << endl;
64 
65  // print mapping
66  printf("* mask\n");
67  for (const auto &p : analysisMask->analysisMask)
68  cout << " " << p.first
69  << ": fullMask=" << p.second.fullMask
70  << ", number of masked channels " << p.second.maskedChannels.size() << endl;
71 }
EventSetup record for TOTEM readout-related information.
std::map< TotemSymbID, TotemVFATAnalysisMask > analysisMask
const T & get() const
Definition: EventSetup.h:56
std::string subSystemName
label of the CTPPS sub-system
std::map< TotemFramePosition, TotemVFATInfo > VFATMapping

Member Data Documentation

std::string PrintTotemDAQMapping::subSystemName
private

label of the CTPPS sub-system

Definition at line 33 of file PrintTotemDAQMapping.cc.

Referenced by analyze().