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:
33 
34  void analyze(const edm::Event &e, const edm::EventSetup &es) override;
35 };
36 
37 using namespace std;
38 using namespace edm;
39 
40 //----------------------------------------------------------------------------------------------------
41 
43  : subSystemName(ps.getUntrackedParameter<string>("subSystem")) {}
44 
45 //----------------------------------------------------------------------------------------------------
46 
48  // get mapping
51 
52  // get analysis mask to mask channels
53  ESHandle<TotemAnalysisMask> analysisMask;
54  es.get<TotemReadoutRcd>().get(subSystemName, analysisMask);
55 
56  // print mapping
57  printf("* DAQ mapping\n");
58  for (const auto &p : mapping->VFATMapping)
59  cout << " " << p.first << " -> " << p.second << endl;
60 
61  // print mapping
62  printf("* mask\n");
63  for (const auto &p : analysisMask->analysisMask)
64  cout << " " << p.first << ": fullMask=" << p.second.fullMask << ", number of masked channels "
65  << p.second.maskedChannels.size() << endl;
66 }
67 
68 //----------------------------------------------------------------------------------------------------
69 
TotemReadoutRcd.h
EDAnalyzer.h
PrintTotemDAQMapping::subSystemName
std::string subSystemName
label of the CTPPS sub-system
Definition: PrintTotemDAQMapping.cc:37
ESHandle.h
edm
HLT enums.
Definition: AlignableModifier.h:19
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
TotemDAQMapping.h
gather_cfg.cout
cout
Definition: gather_cfg.py:144
PrintTotemDAQMapping
Prints the DAQ mapping loaded by TotemDAQMappingESSourceXML.
Definition: PrintTotemDAQMapping.cc:25
TotemReadoutRcd
EventSetup record for TOTEM readout-related information.
Definition: TotemReadoutRcd.h:16
edm::one::EDAnalyzer
Definition: EDAnalyzer.h:30
MakerMacros.h
edm::EventSetup::get
T get() const
Definition: EventSetup.h:80
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
TotemAnalysisMask::analysisMask
std::map< TotemSymbID, TotemVFATAnalysisMask > analysisMask
Definition: TotemAnalysisMask.h:40
edm::ESHandle
Definition: DTSurvey.h:22
TotemAnalysisMask.h
PrintTotemDAQMapping::~PrintTotemDAQMapping
~PrintTotemDAQMapping() override
Definition: PrintTotemDAQMapping.cc:33
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::ParameterSet
Definition: ParameterSet.h:47
Event.h
PrintTotemDAQMapping::PrintTotemDAQMapping
PrintTotemDAQMapping(const edm::ParameterSet &ps)
Definition: PrintTotemDAQMapping.cc:42
PrintTotemDAQMapping::analyze
void analyze(const edm::Event &e, const edm::EventSetup &es) override
Definition: PrintTotemDAQMapping.cc:47
edm::EventSetup
Definition: EventSetup.h:57
get
#define get
hlx_dqm_sourceclient_cfi.subSystemName
subSystemName
Definition: hlx_dqm_sourceclient_cfi.py:15
std
Definition: JetResolutionObject.h:76
EventSetup.h
ParameterSet.h
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