CMS 3D CMS Logo

ZDCDigiStudy.h
Go to the documentation of this file.
1 // Package: ZDCDigiStudy
3 // Class: ZDCDigiStudy
4 //
5 /*
6  Description:
7  This code has been developed to be a check for the ZDC sim. In 2009, it was found that the ZDC Simulation was unrealistic and needed repair. The aim of this code is to show the user the input and output of a ZDC MinBias simulation.
8 
9  Implementation:
10  First a MinBias simulation should be run, it could be pythia,hijin,or hydjet. This will output a .root file which should have information about recoGenParticles, hcalunsuppresseddigis. Use this .root file as the input into the cfg.py which is found in the main directory of this package. This output will be another .root file which is meant to be viewed in a TBrowser.
11 
12 */
13 //
14 // Original Author: Jaime Gomez (U. of Maryland) with SIGNIFICANT assistance of Dr. Jefferey Temple (U. of Maryland)
15 //
16 //
17 // Created: Summer 2012
19 
20 #ifndef SimG4CMS_ZDCDigiStudy_H
21 #define SimG4CMS_ZDCDigiStudy_H
22 
28 
31 
34 
36 
37 #include <iostream>
38 #include <fstream>
39 #include <vector>
40 #include <map>
41 #include <string>
42 #include <memory>
43 
44 class ZDCDigiStudy : public DQMOneEDAnalyzer<> {
45 public:
47  ~ZDCDigiStudy() override = default;
48 
49  void bookHistograms(DQMStore::IBooker&, edm::Run const&, edm::EventSetup const&) override;
50 
51 protected:
52  void dqmEndRun(const edm::Run& run, const edm::EventSetup& c) override;
53 
54  void analyze(const edm::Event& e, const edm::EventSetup& c) override;
55  int FillHitValHist(int side, int section, int channel, double energy, double time);
56 
57 private:
59  //# Below all the monitoring elements #
60  //# are simply the plots "code names" #
61  //# they will be filled in the .cc file #
63 
65  const bool verbose_, checkHit_;
66 
68 
70 
97 };
98 
99 #endif
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: ZDCDigiStudy.cc:37
MonitorElement * meZdcfCPTOT
Definition: ZDCDigiStudy.h:73
MonitorElement * meZdcPEM1fCvsTS
Definition: ZDCDigiStudy.h:78
MonitorElement * meZdcfCPEMvHAD
Definition: ZDCDigiStudy.h:76
void dqmEndRun(const edm::Run &run, const edm::EventSetup &c) override
MonitorElement * meZdcPHAD2fCvsTS
Definition: ZDCDigiStudy.h:84
MonitorElement * meZdcfCNTOT
Definition: ZDCDigiStudy.h:75
MonitorElement * meZdcPHAD3fCvsTS
Definition: ZDCDigiStudy.h:85
MonitorElement * meZdcfCPHAD
Definition: ZDCDigiStudy.h:72
const std::string zdcHits
Definition: ZDCDigiStudy.h:64
MonitorElement * meZdcNHAD2fCvsTS
Definition: ZDCDigiStudy.h:93
void analyze(const edm::Event &e, const edm::EventSetup &c) override
MonitorElement * meZdcPEM3fCvsTS
Definition: ZDCDigiStudy.h:80
const bool checkHit_
Definition: ZDCDigiStudy.h:65
~ZDCDigiStudy() override=default
MonitorElement * meZdcNHAD3fCvsTS
Definition: ZDCDigiStudy.h:94
MonitorElement * meZdcPEM2fCvsTS
Definition: ZDCDigiStudy.h:79
MonitorElement * meZdcNEM2fCvsTS
Definition: ZDCDigiStudy.h:88
MonitorElement * meZdcNEM4fCvsTS
Definition: ZDCDigiStudy.h:90
MonitorElement * meZdcNEM3fCvsTS
Definition: ZDCDigiStudy.h:89
MonitorElement * meZdcPHAD1fCvsTS
Definition: ZDCDigiStudy.h:83
MonitorElement * meZdcNHAD4fCvsTS
Definition: ZDCDigiStudy.h:95
int FillHitValHist(int side, int section, int channel, double energy, double time)
const bool verbose_
Definition: ZDCDigiStudy.h:65
MonitorElement * meZdcNHAD1fCvsTS
Definition: ZDCDigiStudy.h:92
const edm::EDGetTokenT< ZDCDigiCollection > tok_zdc_
Definition: ZDCDigiStudy.h:67
MonitorElement * meZdcfCNHAD
Definition: ZDCDigiStudy.h:74
MonitorElement * meZdcfCNEMvHAD
Definition: ZDCDigiStudy.h:77
MonitorElement * meZdcPHAD4fCvsTS
Definition: ZDCDigiStudy.h:86
ZDCDigiStudy(const edm::ParameterSet &ps)
Definition: ZDCDigiStudy.cc:28
MonitorElement * meZdcPEM4fCvsTS
Definition: ZDCDigiStudy.h:81
MonitorElement * meZdcPEM5fCvsTS
Definition: ZDCDigiStudy.h:82
MonitorElement * meZdcNEM1fCvsTS
Definition: ZDCDigiStudy.h:87
const std::string outFile_
Definition: ZDCDigiStudy.h:64
Definition: Run.h:45
MonitorElement * meZdcNEM5fCvsTS
Definition: ZDCDigiStudy.h:91