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
37 //#include "CalibFormats/HcalObjects/interface/HcalDbService.h"
38 #include "TFile.h"
39 #include "TH1.h"
40 #include "TH2.h"
41 #include "TTree.h"
43 #include <vector>
44 #include <map>
45 //#include "CalibCalorimetry/CaloMiscalibTools/interface/CaloMiscalibMapHcal.h"
46 #include <string>
47 #include <iostream>
48 #include <fstream>
49 #include <sstream>
50 
51 //
52 // class declaration
53 //
54 namespace cms{
56  public:
57  explicit Analyzer_minbias(const edm::ParameterSet&);
59 
60  virtual void analyze(const edm::Event&, const edm::EventSetup&);
61  virtual void beginJob() ;
62  virtual void endJob() ;
63  virtual void beginRun( const edm::Run& r, const edm::EventSetup& iSetup);
64  virtual void endRun( const edm::Run& r, const edm::EventSetup& iSetup);
65 
66  private:
67  // ----------member data ---------------------------
70  std::ofstream *myout_hcal;
71 
73 
74  // names of modules, producing object collections
75 
76  TFile* hOutputFile ;
77  TTree* myTree;
78  TH1F* hCalo1[73][43];
79  TH1F* hCalo2[73][43];
80  TH1F* hCalo1mom2[73][43];
81  TH1F* hCalo2mom2[73][43];
82  TH1F* hbheNoiseE;
83  TH1F* hbheSignalE;
84  TH1F* hfNoiseE;
85  TH1F* hfSignalE;
86 
89  // Root tree members
90  int nevent_run;
92  float phi,eta;
96 
97  // Noise subtraction
98 
99  double meannoise_pl[73][43],meannoise_min[73][43];
100  double noise_pl[73][43],noise_min[73][43];
101 
102  // counters
103 
104  double nevent;
105  double theMBFillDetMapPl0[5][5][73][43];
106  double theMBFillDetMapPl1[5][5][73][43];
107  double theMBFillDetMapPl2[5][5][73][43];
108  double theMBFillDetMapPl4[5][5][73][43];
109 
110  double theMBFillDetMapMin0[5][5][73][43];
111  double theMBFillDetMapMin1[5][5][73][43];
112  double theMBFillDetMapMin2[5][5][73][43];
113  double theMBFillDetMapMin4[5][5][73][43];
114 
115  double theNSFillDetMapPl0[5][5][73][43];
116  double theNSFillDetMapPl1[5][5][73][43];
117  double theNSFillDetMapPl2[5][5][73][43];
118  double theNSFillDetMapPl4[5][5][73][43];
119 
120  double theNSFillDetMapMin0[5][5][73][43];
121  double theNSFillDetMapMin1[5][5][73][43];
122  double theNSFillDetMapMin2[5][5][73][43];
123  double theNSFillDetMapMin4[5][5][73][43];
124 
125  double theDFFillDetMapPl0[5][5][73][43];
126  double theDFFillDetMapPl1[5][5][73][43];
127  double theDFFillDetMapPl2[5][5][73][43];
128  double theDFFillDetMapMin0[5][5][73][43];
129  double theDFFillDetMapMin1[5][5][73][43];
130  double theDFFillDetMapMin2[5][5][73][43];
131 
132 
136 
140 
141  //
144 
146 
147  };
148 }
149 #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]
double theNSFillDetMapPl4[5][5][73][43]
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]
virtual void beginRun(const edm::Run &r, const edm::EventSetup &iSetup)
std::ofstream * myout_hcal
edm::EDGetTokenT< HFRecHitCollection > tok_hf_
virtual void endRun(const edm::Run &r, const edm::EventSetup &iSetup)
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 &)
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]
double theMBFillDetMapPl2[5][5][73][43]
edm::EDGetTokenT< HBHERecHitCollection > tok_hbheNorm_
virtual void analyze(const edm::Event &, const edm::EventSetup &)
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:42