CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Analyzer_minbias.h
Go to the documentation of this file.
1 #ifndef PhysicsToolsAnalysisAnalyzerMinBias_h
2 #define PhysicsToolsAnalysisAnalyzerMinBias_h
3 
4 // system include files
5 #include <memory>
6 #include <string>
7 #include <iostream>
8 
9 // user include files
18 
44 //#include "CalibFormats/HcalObjects/interface/HcalDbService.h"
45 #include "TFile.h"
46 #include "TH1.h"
47 #include "TH2.h"
48 #include "TTree.h"
50 #include <vector>
51 #include <map>
52 //#include "CalibCalorimetry/CaloMiscalibTools/interface/CaloMiscalibMapHcal.h"
53 #include <string>
54 #include <iostream>
55 #include <fstream>
56 #include <sstream>
57 
58 //
59 // class declaration
60 //
61 namespace cms {
62  class Analyzer_minbias : public edm::one::EDAnalyzer<edm::one::WatchRuns, edm::one::SharedResources> {
63  public:
64  explicit Analyzer_minbias(const edm::ParameterSet&);
65  ~Analyzer_minbias() override;
66 
67  void beginJob() override;
68  void analyze(edm::Event const&, edm::EventSetup const&) override;
69  void beginRun(edm::Run const&, edm::EventSetup const&) override;
70  void endRun(edm::Run const&, edm::EventSetup const&) override;
71  void endJob() override;
72 
73  private:
74  // ----------member data ---------------------------
77  std::ofstream* myout_hcal;
78 
80 
81  // names of modules, producing object collections
83 
84  TFile* hOutputFile;
85  TTree* myTree;
86  TH1F* hCalo1[73][43];
87  TH1F* hCalo2[73][43];
88  TH1F* hCalo1mom2[73][43];
89  TH1F* hCalo2mom2[73][43];
90  TH1F* hbheNoiseE;
91  TH1F* hbheSignalE;
92  TH1F* hfNoiseE;
93  TH1F* hfSignalE;
94 
97  // Root tree members
100  float phi, eta;
104 
105  // Noise subtraction
106 
107  double meannoise_pl[73][43], meannoise_min[73][43];
108  double noise_pl[73][43], noise_min[73][43];
109 
110  // counters
111 
112  double nevent;
113  double theMBFillDetMapPl0[5][5][73][43];
114  double theMBFillDetMapPl1[5][5][73][43];
115  double theMBFillDetMapPl2[5][5][73][43];
116  double theMBFillDetMapPl4[5][5][73][43];
117 
118  double theMBFillDetMapMin0[5][5][73][43];
119  double theMBFillDetMapMin1[5][5][73][43];
120  double theMBFillDetMapMin2[5][5][73][43];
121  double theMBFillDetMapMin4[5][5][73][43];
122 
123  double theNSFillDetMapPl0[5][5][73][43];
124  double theNSFillDetMapPl1[5][5][73][43];
125  double theNSFillDetMapPl2[5][5][73][43];
126  double theNSFillDetMapPl4[5][5][73][43];
127 
128  double theNSFillDetMapMin0[5][5][73][43];
129  double theNSFillDetMapMin1[5][5][73][43];
130  double theNSFillDetMapMin2[5][5][73][43];
131  double theNSFillDetMapMin4[5][5][73][43];
132 
133  double theDFFillDetMapPl0[5][5][73][43];
134  double theDFFillDetMapPl1[5][5][73][43];
135  double theDFFillDetMapPl2[5][5][73][43];
136  double theDFFillDetMapMin0[5][5][73][43];
137  double theDFFillDetMapMin1[5][5][73][43];
138  double theDFFillDetMapMin2[5][5][73][43];
139 
143 
147 
148  //
151 
154 
156  };
157 } // namespace cms
158 #endif
double theMBFillDetMapMin0[5][5][73][43]
double theMBFillDetMapMin2[5][5][73][43]
double theDFFillDetMapPl2[5][5][73][43]
double theMBFillDetMapMin1[5][5][73][43]
edm::Service< TFileService > fs
double theNSFillDetMapPl4[5][5][73][43]
void analyze(edm::Event const &, edm::EventSetup const &) override
double theNSFillDetMapPl0[5][5][73][43]
double theNSFillDetMapMin0[5][5][73][43]
double theMBFillDetMapPl0[5][5][73][43]
TH1F * hCalo2mom2[73][43]
edm::EDGetTokenT< HORecHitCollection > tok_hoNoise_
double theDFFillDetMapPl1[5][5][73][43]
std::ofstream * myout_hcal
edm::EDGetTokenT< HFRecHitCollection > tok_hf_
edm::EDGetTokenT< L1GlobalTriggerReadoutRecord > tok_gtRec_
double meannoise_pl[73][43]
edm::EDGetTokenT< HBHERecHitCollection > tok_hbheNoise_
double theNSFillDetMapPl2[5][5][73][43]
double theDFFillDetMapMin2[5][5][73][43]
double noise_min[73][43]
TH1F * hCalo1mom2[73][43]
edm::EDGetTokenT< HFRecHitCollection > tok_hfNoise_
double theNSFillDetMapPl1[5][5][73][43]
double theMBFillDetMapPl1[5][5][73][43]
Analyzer_minbias(const edm::ParameterSet &)
void beginRun(edm::Run const &, edm::EventSetup const &) override
edm::ESGetToken< HcalRespCorrs, HcalRespCorrsRcd > tok_respCorr_
double theDFFillDetMapPl0[5][5][73][43]
edm::EDGetTokenT< HBHERecHitCollection > tok_hbhe_
double theMBFillDetMapPl4[5][5][73][43]
double theNSFillDetMapMin1[5][5][73][43]
double theNSFillDetMapMin4[5][5][73][43]
double theDFFillDetMapMin0[5][5][73][43]
void endRun(edm::Run const &, edm::EventSetup const &) override
double theMBFillDetMapPl2[5][5][73][43]
edm::EDGetTokenT< HBHERecHitCollection > tok_hbheNorm_
void beginJob() override
edm::EDGetTokenT< FEDRawDataCollection > tok_data_
double theMBFillDetMapMin4[5][5][73][43]
double meannoise_min[73][43]
edm::EDGetTokenT< HORecHitCollection > tok_ho_
edm::ESGetToken< L1GtTriggerMenu, L1GtTriggerMenuRcd > tok_l1gt_
double theNSFillDetMapMin2[5][5][73][43]
double theDFFillDetMapMin1[5][5][73][43]
Definition: Run.h:45