CMS 3D CMS Logo

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 
41 //#include "CalibFormats/HcalObjects/interface/HcalDbService.h"
42 #include "TFile.h"
43 #include "TH1.h"
44 #include "TH2.h"
45 #include "TTree.h"
47 #include <vector>
48 #include <map>
49 //#include "CalibCalorimetry/CaloMiscalibTools/interface/CaloMiscalibMapHcal.h"
50 #include <string>
51 #include <iostream>
52 #include <fstream>
53 #include <sstream>
54 
55 //
56 // class declaration
57 //
58 namespace cms{
59  class Analyzer_minbias : public edm::one::EDAnalyzer<edm::one::WatchRuns,edm::one::SharedResources> {
60  public:
61  explicit Analyzer_minbias(const edm::ParameterSet&);
62  ~Analyzer_minbias() override;
63 
64  void beginJob() override;
65  void analyze(edm::Event const&, edm::EventSetup const&) override;
66  void beginRun(edm::Run const&, edm::EventSetup const&) override;
67  void endRun(edm::Run const&, edm::EventSetup const&) override;
68  void endJob() override;
69 
70  private:
71  // ----------member data ---------------------------
74  std::ofstream *myout_hcal;
75 
77 
78  // names of modules, producing object collections
80 
81  TFile* hOutputFile ;
82  TTree* myTree;
83  TH1F* hCalo1[73][43];
84  TH1F* hCalo2[73][43];
85  TH1F* hCalo1mom2[73][43];
86  TH1F* hCalo2mom2[73][43];
87  TH1F* hbheNoiseE;
88  TH1F* hbheSignalE;
89  TH1F* hfNoiseE;
90  TH1F* hfSignalE;
91 
94  // Root tree members
95  int nevent_run;
97  float phi,eta;
101 
102  // Noise subtraction
103 
104  double meannoise_pl[73][43],meannoise_min[73][43];
105  double noise_pl[73][43],noise_min[73][43];
106 
107  // counters
108 
109  double nevent;
110  double theMBFillDetMapPl0[5][5][73][43];
111  double theMBFillDetMapPl1[5][5][73][43];
112  double theMBFillDetMapPl2[5][5][73][43];
113  double theMBFillDetMapPl4[5][5][73][43];
114 
115  double theMBFillDetMapMin0[5][5][73][43];
116  double theMBFillDetMapMin1[5][5][73][43];
117  double theMBFillDetMapMin2[5][5][73][43];
118  double theMBFillDetMapMin4[5][5][73][43];
119 
120  double theNSFillDetMapPl0[5][5][73][43];
121  double theNSFillDetMapPl1[5][5][73][43];
122  double theNSFillDetMapPl2[5][5][73][43];
123  double theNSFillDetMapPl4[5][5][73][43];
124 
125  double theNSFillDetMapMin0[5][5][73][43];
126  double theNSFillDetMapMin1[5][5][73][43];
127  double theNSFillDetMapMin2[5][5][73][43];
128  double theNSFillDetMapMin4[5][5][73][43];
129 
130  double theDFFillDetMapPl0[5][5][73][43];
131  double theDFFillDetMapPl1[5][5][73][43];
132  double theDFFillDetMapPl2[5][5][73][43];
133  double theDFFillDetMapMin0[5][5][73][43];
134  double theDFFillDetMapMin1[5][5][73][43];
135  double theDFFillDetMapMin2[5][5][73][43];
136 
137 
141 
145 
146  //
149 
151 
152  };
153 }
154 #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
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_
Namespace of DDCMS conversion namespace.
void beginJob() override
edm::EDGetTokenT< FEDRawDataCollection > tok_data_
double theMBFillDetMapMin4[5][5][73][43]
double meannoise_min[73][43]
edm::EDGetTokenT< HORecHitCollection > tok_ho_
double theNSFillDetMapMin2[5][5][73][43]
double theDFFillDetMapMin1[5][5][73][43]
Definition: Run.h:44