CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 {
27  public:
30 
31  private:
32  virtual void beginRun(edm::Run const&, edm::EventSetup const&);
33  virtual void analyze(const edm::Event &e, const edm::EventSetup &es) {}
34  virtual void endJob() {}
35 };
36 
37 using namespace std;
38 using namespace edm;
39 
40 //----------------------------------------------------------------------------------------------------
41 
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 }
57 
58 //----------------------------------------------------------------------------------------------------
59 
Prints the DAQ mapping loaded by DAQMappingSourceXML.
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:17
EventSetup record for TOTEM readout-related information.
virtual void analyze(const edm::Event &e, const edm::EventSetup &es)
PrintTotemDAQMapping(const edm::ParameterSet &ps)
const T & get() const
Definition: EventSetup.h:56
tuple cout
Definition: gather_cfg.py:145
Definition: Run.h:43
virtual void beginRun(edm::Run const &, edm::EventSetup const &)