CMS 3D CMS Logo

PrintTotemDAQMapping.cc
Go to the documentation of this file.
1 /****************************************************************************
2  *
3  * This is a part of TOTEM offline software.
4  * Authors:
5  * Jan Kašpar (jan.kaspar@gmail.com)
6  *
7  ****************************************************************************/
8 
15 
19 
20 //----------------------------------------------------------------------------------------------------
21 
26 public:
28  ~PrintTotemDAQMapping() override {}
29 
30 private:
35  void analyze(const edm::Event &e, const edm::EventSetup &es) override;
36 };
37 
39  : subSystemName(ps.getUntrackedParameter<std::string>("subSystem")),
40  mappingToken_(esConsumes(edm::ESInputTag("", subSystemName))),
41  maskToken_(esConsumes(edm::ESInputTag("", subSystemName))) {}
42 
43 //----------------------------------------------------------------------------------------------------
44 
46  // get mapping
47  auto const &mapping = es.getData(mappingToken_);
48 
49  // get analysis mask to mask channels
50  auto const &analysisMask = es.getData(maskToken_);
51 
52  // print mapping
53  for (const auto &p : mapping.VFATMapping)
54  edm::LogInfo("PrintTotemDAQMapping mapping") << " " << p.first << " -> " << p.second;
55 
56  // print mapping
57  for (const auto &p : analysisMask.analysisMask)
58  edm::LogInfo("PrintTotemDAQMapping mask") << " " << p.first << ": fullMask=" << p.second.fullMask
59  << ", number of masked channels " << p.second.maskedChannels.size();
60 }
61 
62 //----------------------------------------------------------------------------------------------------
63 
TotemReadoutRcd.h
EDAnalyzer.h
PrintTotemDAQMapping::subSystemName
std::string subSystemName
label of the CTPPS sub-system
Definition: PrintTotemDAQMapping.cc:37
ESHandle.h
ESInputTag
edm
HLT enums.
Definition: AlignableModifier.h:19
TotemDAQMapping.h
PrintTotemDAQMapping
Prints the DAQ mapping loaded by TotemDAQMappingESSourceXML.
Definition: PrintTotemDAQMapping.cc:25
edm::LogInfo
Log< level::Info, false > LogInfo
Definition: MessageLogger.h:125
edm::one::EDAnalyzer
Definition: EDAnalyzer.h:30
MakerMacros.h
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
PrintTotemDAQMapping::maskToken_
edm::ESGetToken< TotemAnalysisMask, TotemReadoutRcd > maskToken_
Definition: PrintTotemDAQMapping.cc:39
TotemAnalysisMask.h
PrintTotemDAQMapping::~PrintTotemDAQMapping
~PrintTotemDAQMapping() override
Definition: PrintTotemDAQMapping.cc:33
PrintTotemDAQMapping::mappingToken_
edm::ESGetToken< TotemDAQMapping, TotemReadoutRcd > mappingToken_
Definition: PrintTotemDAQMapping.cc:38
edm::ParameterSet
Definition: ParameterSet.h:47
AlCaHLTBitMon_ParallelJobs.p
def p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
Event.h
PrintTotemDAQMapping::PrintTotemDAQMapping
PrintTotemDAQMapping(const edm::ParameterSet &ps)
Definition: PrintTotemDAQMapping.cc:38
PrintTotemDAQMapping::analyze
void analyze(const edm::Event &e, const edm::EventSetup &es) override
Definition: PrintTotemDAQMapping.cc:45
edm::EventSetup
Definition: EventSetup.h:58
hlx_dqm_sourceclient_cfi.subSystemName
subSystemName
Definition: hlx_dqm_sourceclient_cfi.py:15
edm::ESGetToken< TotemDAQMapping, TotemReadoutRcd >
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::EventSetup::getData
bool getData(T &iHolder) const
Definition: EventSetup.h:127
std
Definition: JetResolutionObject.h:76
EventSetup.h
ParameterSet.h
DeDxTools::esConsumes
ESGetTokenH3DDVariant esConsumes(std::string const &Reccord, edm::ConsumesCollector &)
Definition: DeDxTools.cc:283
edm::Event
Definition: Event.h:73
taus_updatedMVAIds_cff.mapping
mapping
Definition: taus_updatedMVAIds_cff.py:29
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37