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 
43 //#include "CalibFormats/HcalObjects/interface/HcalDbService.h"
44 #include "TFile.h"
45 #include "TH1.h"
46 #include "TH2.h"
47 #include "TTree.h"
49 #include <vector>
50 #include <map>
51 //#include "CalibCalorimetry/CaloMiscalibTools/interface/CaloMiscalibMapHcal.h"
52 #include <string>
53 #include <iostream>
54 #include <fstream>
55 #include <sstream>
56 
57 //
58 // class declaration
59 //
60 namespace cms {
61  class Analyzer_minbias : public edm::one::EDAnalyzer<edm::one::WatchRuns, edm::one::SharedResources> {
62  public:
63  explicit Analyzer_minbias(const edm::ParameterSet&);
64  ~Analyzer_minbias() override;
65 
66  void beginJob() override;
67  void analyze(edm::Event const&, edm::EventSetup const&) override;
68  void beginRun(edm::Run const&, edm::EventSetup const&) override;
69  void endRun(edm::Run const&, edm::EventSetup const&) override;
70  void endJob() override;
71 
72  private:
73  // ----------member data ---------------------------
76  std::ofstream* myout_hcal;
77 
79 
80  // names of modules, producing object collections
82 
83  TFile* hOutputFile;
84  TTree* myTree;
85  TH1F* hCalo1[73][43];
86  TH1F* hCalo2[73][43];
87  TH1F* hCalo1mom2[73][43];
88  TH1F* hCalo2mom2[73][43];
89  TH1F* hbheNoiseE;
90  TH1F* hbheSignalE;
91  TH1F* hfNoiseE;
92  TH1F* hfSignalE;
93 
96  // Root tree members
99  float phi, eta;
103 
104  // Noise subtraction
105 
106  double meannoise_pl[73][43], meannoise_min[73][43];
107  double noise_pl[73][43], noise_min[73][43];
108 
109  // counters
110 
111  double nevent;
112  double theMBFillDetMapPl0[5][5][73][43];
113  double theMBFillDetMapPl1[5][5][73][43];
114  double theMBFillDetMapPl2[5][5][73][43];
115  double theMBFillDetMapPl4[5][5][73][43];
116 
117  double theMBFillDetMapMin0[5][5][73][43];
118  double theMBFillDetMapMin1[5][5][73][43];
119  double theMBFillDetMapMin2[5][5][73][43];
120  double theMBFillDetMapMin4[5][5][73][43];
121 
122  double theNSFillDetMapPl0[5][5][73][43];
123  double theNSFillDetMapPl1[5][5][73][43];
124  double theNSFillDetMapPl2[5][5][73][43];
125  double theNSFillDetMapPl4[5][5][73][43];
126 
127  double theNSFillDetMapMin0[5][5][73][43];
128  double theNSFillDetMapMin1[5][5][73][43];
129  double theNSFillDetMapMin2[5][5][73][43];
130  double theNSFillDetMapMin4[5][5][73][43];
131 
132  double theDFFillDetMapPl0[5][5][73][43];
133  double theDFFillDetMapPl1[5][5][73][43];
134  double theDFFillDetMapPl2[5][5][73][43];
135  double theDFFillDetMapMin0[5][5][73][43];
136  double theDFFillDetMapMin1[5][5][73][43];
137  double theDFFillDetMapMin2[5][5][73][43];
138 
142 
146 
147  //
150 
152 
154  };
155 } // namespace cms
156 #endif
cms::Analyzer_minbias::noise_min
double noise_min[73][43]
Definition: Analyzer_minbias.h:107
cms::Analyzer_minbias::endJob
void endJob() override
Definition: Analyzer_minbias.cc:230
cms::Analyzer_minbias::theDFFillDetMapMin1
double theDFFillDetMapMin1[5][5][73][43]
Definition: Analyzer_minbias.h:136
FEDNumbering.h
CaloJetCollection.h
cms::Analyzer_minbias::theMBFillDetMapMin4
double theMBFillDetMapMin4[5][5][73][43]
Definition: Analyzer_minbias.h:120
CaloJet.h
HcalRespCorrsRcd.h
EDAnalyzer.h
cms::Analyzer_minbias::theMBFillDetMapPl1
double theMBFillDetMapPl1[5][5][73][43]
Definition: Analyzer_minbias.h:113
cms::Analyzer_minbias::theDFFillDetMapMin0
double theDFFillDetMapMin0[5][5][73][43]
Definition: Analyzer_minbias.h:135
cms::Analyzer_minbias::hCalo1mom2
TH1F * hCalo1mom2[73][43]
Definition: Analyzer_minbias.h:87
cms::Analyzer_minbias::beginJob
void beginJob() override
Definition: Analyzer_minbias.cc:88
cms::Analyzer_minbias::phi
float phi
Definition: Analyzer_minbias.h:99
EDProducer.h
cms::Analyzer_minbias::tok_hoNoise_
edm::EDGetTokenT< HORecHitCollection > tok_hoNoise_
Definition: Analyzer_minbias.h:144
cms::Analyzer_minbias::mom0_Diff
float mom0_Diff
Definition: Analyzer_minbias.h:102
cms::Analyzer_minbias::theMBFillDetMapMin0
double theMBFillDetMapMin0[5][5][73][43]
Definition: Analyzer_minbias.h:117
ESHandle.h
cms::Analyzer_minbias::meannoise_pl
double meannoise_pl[73][43]
Definition: Analyzer_minbias.h:106
cms::Analyzer_minbias::tok_hbheNorm_
edm::EDGetTokenT< HBHERecHitCollection > tok_hbheNorm_
Definition: Analyzer_minbias.h:149
cms::Analyzer_minbias::myout_hcal
std::ofstream * myout_hcal
Definition: Analyzer_minbias.h:76
edm::Run
Definition: Run.h:45
edm::EDGetTokenT< FEDRawDataCollection >
cms::Analyzer_minbias::mom4_MB
float mom4_MB
Definition: Analyzer_minbias.h:100
cms::Analyzer_minbias::theMBFillDetMapPl4
double theMBFillDetMapPl4[5][5][73][43]
Definition: Analyzer_minbias.h:115
cms::Analyzer_minbias::mom2_Noise
float mom2_Noise
Definition: Analyzer_minbias.h:101
cms::Analyzer_minbias::mom4_Noise
float mom4_Noise
Definition: Analyzer_minbias.h:101
Jet.h
cms::Analyzer_minbias::fs
edm::Service< TFileService > fs
Definition: Analyzer_minbias.h:81
edm::one::EDAnalyzer
Definition: EDAnalyzer.h:30
cms::Analyzer_minbias::hbheSignalE
TH1F * hbheSignalE
Definition: Analyzer_minbias.h:90
cms::Analyzer_minbias::noise_pl
double noise_pl[73][43]
Definition: Analyzer_minbias.h:107
cms::Analyzer_minbias::hcalfile_
std::string hcalfile_
Definition: Analyzer_minbias.h:75
cms::Analyzer_minbias::hHFsize_vs_run
TH2F * hHFsize_vs_run
Definition: Analyzer_minbias.h:95
FEDRawData.h
cms::Analyzer_minbias::tok_gtRec_
edm::EDGetTokenT< L1GlobalTriggerReadoutRecord > tok_gtRec_
Definition: Analyzer_minbias.h:148
EcalRecHitCollections.h
cms::Analyzer_minbias::occup
float occup
Definition: Analyzer_minbias.h:100
cms::Analyzer_minbias::theMBFillDetMapMin1
double theMBFillDetMapMin1[5][5][73][43]
Definition: Analyzer_minbias.h:118
cms::Analyzer_minbias::analyze
void analyze(edm::Event const &, edm::EventSetup const &) override
Definition: Analyzer_minbias.cc:321
cms::Analyzer_minbias::hCalo2
TH1F * hCalo2[73][43]
Definition: Analyzer_minbias.h:86
cms::Analyzer_minbias::theNSFillDetMapPl1
double theNSFillDetMapPl1[5][5][73][43]
Definition: Analyzer_minbias.h:123
cms::Analyzer_minbias::tok_ho_
edm::EDGetTokenT< HORecHitCollection > tok_ho_
Definition: Analyzer_minbias.h:140
MakerMacros.h
cms::Analyzer_minbias::beginRun
void beginRun(edm::Run const &, edm::EventSetup const &) override
Definition: Analyzer_minbias.cc:83
cms::Analyzer_minbias::nevent
double nevent
Definition: Analyzer_minbias.h:111
cms::Analyzer_minbias::hCalo2mom2
TH1F * hCalo2mom2[73][43]
Definition: Analyzer_minbias.h:88
cms::Analyzer_minbias::Analyzer_minbias
Analyzer_minbias(const edm::ParameterSet &)
Definition: Analyzer_minbias.cc:43
cms::Analyzer_minbias::mom0_Noise
float mom0_Noise
Definition: Analyzer_minbias.h:101
cms::Analyzer_minbias::hCalo1
TH1F * hCalo1[73][43]
Definition: Analyzer_minbias.h:85
Track.h
cms::Analyzer_minbias::theMBFillDetMapPl0
double theMBFillDetMapPl0[5][5][73][43]
Definition: Analyzer_minbias.h:112
cms::Analyzer_minbias::theNSFillDetMapMin1
double theNSFillDetMapMin1[5][5][73][43]
Definition: Analyzer_minbias.h:128
Service.h
cms::Analyzer_minbias::nevent_run
int nevent_run
Definition: Analyzer_minbias.h:97
cms::Analyzer_minbias::eta
float eta
Definition: Analyzer_minbias.h:99
cms::Analyzer_minbias::theDFFillDetMapMin2
double theDFFillDetMapMin2[5][5][73][43]
Definition: Analyzer_minbias.h:137
cms::Analyzer_minbias::theNSFillDetMapPl2
double theNSFillDetMapPl2[5][5][73][43]
Definition: Analyzer_minbias.h:124
Run.h
cms::Analyzer_minbias::~Analyzer_minbias
~Analyzer_minbias() override
Definition: Analyzer_minbias.cc:78
cms::Analyzer_minbias::mom3_Noise
float mom3_Noise
Definition: Analyzer_minbias.h:101
cms::Analyzer_minbias::myTree
TTree * myTree
Definition: Analyzer_minbias.h:84
cms::Analyzer_minbias::theNSFillDetMapMin0
double theNSFillDetMapMin0[5][5][73][43]
Definition: Analyzer_minbias.h:127
cms::Analyzer_minbias::theNSFillDetMapMin2
double theNSFillDetMapMin2[5][5][73][43]
Definition: Analyzer_minbias.h:129
cms::Analyzer_minbias::theNSFillDetMapMin4
double theNSFillDetMapMin4[5][5][73][43]
Definition: Analyzer_minbias.h:130
cms::Analyzer_minbias::mysubd
int mysubd
Definition: Analyzer_minbias.h:98
cms::Analyzer_minbias::mydet
int mydet
Definition: Analyzer_minbias.h:98
CaloGeometryRecord.h
cms::Analyzer_minbias::theDFFillDetMapPl0
double theDFFillDetMapPl0[5][5][73][43]
Definition: Analyzer_minbias.h:132
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
TFileService.h
cms::Analyzer_minbias::meannoise_min
double meannoise_min[73][43]
Definition: Analyzer_minbias.h:106
edm::ParameterSet
Definition: ParameterSet.h:47
cms::Analyzer_minbias::theMBFillDetMapPl2
double theMBFillDetMapPl2[5][5][73][43]
Definition: Analyzer_minbias.h:114
Event.h
cms::Analyzer_minbias::tok_hbhe_
edm::EDGetTokenT< HBHERecHitCollection > tok_hbhe_
Definition: Analyzer_minbias.h:139
HcalDetId.h
cms::Analyzer_minbias::ieta
int ieta
Definition: Analyzer_minbias.h:98
cms::Analyzer_minbias::mom3_MB
float mom3_MB
Definition: Analyzer_minbias.h:100
edm::Service< TFileService >
TriggerNames.h
cms::Analyzer_minbias::hbheNoiseE
TH1F * hbheNoiseE
Definition: Analyzer_minbias.h:89
FEDRawDataCollection.h
cms::Analyzer_minbias
Definition: Analyzer_minbias.h:61
cms::Analyzer_minbias::hOutputFile
TFile * hOutputFile
Definition: Analyzer_minbias.h:83
CaloTowerDetId.h
edm::EventSetup
Definition: EventSetup.h:57
HcalRespCorrs.h
edm::ESGetToken< HcalRespCorrs, HcalRespCorrsRcd >
cms::Analyzer_minbias::depth
int depth
Definition: Analyzer_minbias.h:98
CaloTowerCollection.h
Ref.h
cms::Analyzer_minbias::hfSignalE
TH1F * hfSignalE
Definition: Analyzer_minbias.h:92
cms::Analyzer_minbias::endRun
void endRun(edm::Run const &, edm::EventSetup const &) override
Definition: Analyzer_minbias.cc:84
cms::Analyzer_minbias::mom2_MB
float mom2_MB
Definition: Analyzer_minbias.h:100
DetId.h
cms::Analyzer_minbias::theNSFillDetMapPl0
double theNSFillDetMapPl0[5][5][73][43]
Definition: Analyzer_minbias.h:122
Frameworkfwd.h
cms::Analyzer_minbias::tok_data_
edm::EDGetTokenT< FEDRawDataCollection > tok_data_
Definition: Analyzer_minbias.h:78
CaloGeometry.h
cms::Analyzer_minbias::tok_respCorr_
edm::ESGetToken< HcalRespCorrs, HcalRespCorrsRcd > tok_respCorr_
Definition: Analyzer_minbias.h:151
EventSetup.h
cms::Analyzer_minbias::mom1_MB
float mom1_MB
Definition: Analyzer_minbias.h:100
HcalRecHitCollections.h
cms::Analyzer_minbias::mom3_Diff
float mom3_Diff
Definition: Analyzer_minbias.h:102
cms::Analyzer_minbias::tok_hfNoise_
edm::EDGetTokenT< HFRecHitCollection > tok_hfNoise_
Definition: Analyzer_minbias.h:145
Candidate.h
cms::Analyzer_minbias::fOutputFileName
std::string fOutputFileName
Definition: Analyzer_minbias.h:74
cms::Analyzer_minbias::theDFFillDetMapPl1
double theDFFillDetMapPl1[5][5][73][43]
Definition: Analyzer_minbias.h:133
ParameterSet.h
cms::Analyzer_minbias::mom2_Diff
float mom2_Diff
Definition: Analyzer_minbias.h:102
cms::Analyzer_minbias::theRecalib
bool theRecalib
Definition: Analyzer_minbias.h:153
cms::Analyzer_minbias::hHBHEsize_vs_run
TH2F * hHBHEsize_vs_run
Definition: Analyzer_minbias.h:94
cms::Analyzer_minbias::tok_hbheNoise_
edm::EDGetTokenT< HBHERecHitCollection > tok_hbheNoise_
Definition: Analyzer_minbias.h:143
cms::Analyzer_minbias::theMBFillDetMapMin2
double theMBFillDetMapMin2[5][5][73][43]
Definition: Analyzer_minbias.h:119
edm::Event
Definition: Event.h:73
cms::Analyzer_minbias::mom4_Diff
float mom4_Diff
Definition: Analyzer_minbias.h:102
cms::Analyzer_minbias::tok_hf_
edm::EDGetTokenT< HFRecHitCollection > tok_hf_
Definition: Analyzer_minbias.h:141
GlobalPoint.h
cms::Analyzer_minbias::theNSFillDetMapPl4
double theNSFillDetMapPl4[5][5][73][43]
Definition: Analyzer_minbias.h:125
cms::Analyzer_minbias::hfNoiseE
TH1F * hfNoiseE
Definition: Analyzer_minbias.h:91
L1GlobalTriggerReadoutRecord.h
cms::Analyzer_minbias::mom0_MB
float mom0_MB
Definition: Analyzer_minbias.h:100
cms::Analyzer_minbias::mom1_Noise
float mom1_Noise
Definition: Analyzer_minbias.h:101
cms::Analyzer_minbias::mom1_Diff
float mom1_Diff
Definition: Analyzer_minbias.h:102
cms::Analyzer_minbias::theDFFillDetMapPl2
double theDFFillDetMapPl2[5][5][73][43]
Definition: Analyzer_minbias.h:134
cms
Namespace of DDCMS conversion namespace.
Definition: ProducerAnalyzer.cc:21
cms::Analyzer_minbias::iphi
int iphi
Definition: Analyzer_minbias.h:98