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 
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
cms::Analyzer_minbias::noise_min
double noise_min[73][43]
Definition: Analyzer_minbias.h:108
cms::Analyzer_minbias::endJob
void endJob() override
Definition: Analyzer_minbias.cc:229
cms::Analyzer_minbias::theDFFillDetMapMin1
double theDFFillDetMapMin1[5][5][73][43]
Definition: Analyzer_minbias.h:137
FEDNumbering.h
L1GtTriggerMenu.h
CaloJetCollection.h
cms::Analyzer_minbias::theMBFillDetMapMin4
double theMBFillDetMapMin4[5][5][73][43]
Definition: Analyzer_minbias.h:121
CaloJet.h
HcalRespCorrsRcd.h
EDAnalyzer.h
cms::Analyzer_minbias::theMBFillDetMapPl1
double theMBFillDetMapPl1[5][5][73][43]
Definition: Analyzer_minbias.h:114
cms::Analyzer_minbias::theDFFillDetMapMin0
double theDFFillDetMapMin0[5][5][73][43]
Definition: Analyzer_minbias.h:136
cms::Analyzer_minbias::hCalo1mom2
TH1F * hCalo1mom2[73][43]
Definition: Analyzer_minbias.h:88
cms::Analyzer_minbias::beginJob
void beginJob() override
Definition: Analyzer_minbias.cc:87
cms::Analyzer_minbias::phi
float phi
Definition: Analyzer_minbias.h:100
EDProducer.h
cms::Analyzer_minbias::tok_hoNoise_
edm::EDGetTokenT< HORecHitCollection > tok_hoNoise_
Definition: Analyzer_minbias.h:145
cms::Analyzer_minbias::mom0_Diff
float mom0_Diff
Definition: Analyzer_minbias.h:103
cms::Analyzer_minbias::theMBFillDetMapMin0
double theMBFillDetMapMin0[5][5][73][43]
Definition: Analyzer_minbias.h:118
cms::Analyzer_minbias::meannoise_pl
double meannoise_pl[73][43]
Definition: Analyzer_minbias.h:107
cms::Analyzer_minbias::tok_hbheNorm_
edm::EDGetTokenT< HBHERecHitCollection > tok_hbheNorm_
Definition: Analyzer_minbias.h:150
cms::Analyzer_minbias::myout_hcal
std::ofstream * myout_hcal
Definition: Analyzer_minbias.h:77
edm::Run
Definition: Run.h:45
edm::EDGetTokenT< FEDRawDataCollection >
L1GtTriggerMenuRcd.h
cms::Analyzer_minbias::mom4_MB
float mom4_MB
Definition: Analyzer_minbias.h:101
cms::Analyzer_minbias::theMBFillDetMapPl4
double theMBFillDetMapPl4[5][5][73][43]
Definition: Analyzer_minbias.h:116
cms::Analyzer_minbias::mom2_Noise
float mom2_Noise
Definition: Analyzer_minbias.h:102
cms::Analyzer_minbias::mom4_Noise
float mom4_Noise
Definition: Analyzer_minbias.h:102
Jet.h
cms::Analyzer_minbias::fs
edm::Service< TFileService > fs
Definition: Analyzer_minbias.h:82
edm::one::EDAnalyzer
Definition: EDAnalyzer.h:30
cms::Analyzer_minbias::hbheSignalE
TH1F * hbheSignalE
Definition: Analyzer_minbias.h:91
cms::Analyzer_minbias::noise_pl
double noise_pl[73][43]
Definition: Analyzer_minbias.h:108
cms::Analyzer_minbias::hcalfile_
std::string hcalfile_
Definition: Analyzer_minbias.h:76
cms::Analyzer_minbias::hHFsize_vs_run
TH2F * hHFsize_vs_run
Definition: Analyzer_minbias.h:96
FEDRawData.h
cms::Analyzer_minbias::tok_gtRec_
edm::EDGetTokenT< L1GlobalTriggerReadoutRecord > tok_gtRec_
Definition: Analyzer_minbias.h:149
EcalRecHitCollections.h
cms::Analyzer_minbias::occup
float occup
Definition: Analyzer_minbias.h:101
cms::Analyzer_minbias::theMBFillDetMapMin1
double theMBFillDetMapMin1[5][5][73][43]
Definition: Analyzer_minbias.h:119
cms::Analyzer_minbias::analyze
void analyze(edm::Event const &, edm::EventSetup const &) override
Definition: Analyzer_minbias.cc:320
cms::Analyzer_minbias::hCalo2
TH1F * hCalo2[73][43]
Definition: Analyzer_minbias.h:87
cms::Analyzer_minbias::theNSFillDetMapPl1
double theNSFillDetMapPl1[5][5][73][43]
Definition: Analyzer_minbias.h:124
cms::Analyzer_minbias::tok_ho_
edm::EDGetTokenT< HORecHitCollection > tok_ho_
Definition: Analyzer_minbias.h:141
MakerMacros.h
cms::Analyzer_minbias::beginRun
void beginRun(edm::Run const &, edm::EventSetup const &) override
Definition: Analyzer_minbias.cc:82
cms::Analyzer_minbias::nevent
double nevent
Definition: Analyzer_minbias.h:112
cms::Analyzer_minbias::hCalo2mom2
TH1F * hCalo2mom2[73][43]
Definition: Analyzer_minbias.h:89
cms::Analyzer_minbias::Analyzer_minbias
Analyzer_minbias(const edm::ParameterSet &)
Definition: Analyzer_minbias.cc:41
cms::Analyzer_minbias::mom0_Noise
float mom0_Noise
Definition: Analyzer_minbias.h:102
cms::Analyzer_minbias::hCalo1
TH1F * hCalo1[73][43]
Definition: Analyzer_minbias.h:86
Track.h
cms::Analyzer_minbias::theMBFillDetMapPl0
double theMBFillDetMapPl0[5][5][73][43]
Definition: Analyzer_minbias.h:113
cms::Analyzer_minbias::theNSFillDetMapMin1
double theNSFillDetMapMin1[5][5][73][43]
Definition: Analyzer_minbias.h:129
Service.h
cms::Analyzer_minbias::nevent_run
int nevent_run
Definition: Analyzer_minbias.h:98
cms::Analyzer_minbias::eta
float eta
Definition: Analyzer_minbias.h:100
cms::Analyzer_minbias::theDFFillDetMapMin2
double theDFFillDetMapMin2[5][5][73][43]
Definition: Analyzer_minbias.h:138
cms::Analyzer_minbias::theNSFillDetMapPl2
double theNSFillDetMapPl2[5][5][73][43]
Definition: Analyzer_minbias.h:125
Run.h
cms::Analyzer_minbias::~Analyzer_minbias
~Analyzer_minbias() override
Definition: Analyzer_minbias.cc:77
cms::Analyzer_minbias::mom3_Noise
float mom3_Noise
Definition: Analyzer_minbias.h:102
cms::Analyzer_minbias::myTree
TTree * myTree
Definition: Analyzer_minbias.h:85
cms::Analyzer_minbias::theNSFillDetMapMin0
double theNSFillDetMapMin0[5][5][73][43]
Definition: Analyzer_minbias.h:128
cms::Analyzer_minbias::theNSFillDetMapMin2
double theNSFillDetMapMin2[5][5][73][43]
Definition: Analyzer_minbias.h:130
cms::Analyzer_minbias::theNSFillDetMapMin4
double theNSFillDetMapMin4[5][5][73][43]
Definition: Analyzer_minbias.h:131
cms::Analyzer_minbias::mysubd
int mysubd
Definition: Analyzer_minbias.h:99
cms::Analyzer_minbias::mydet
int mydet
Definition: Analyzer_minbias.h:99
CaloGeometryRecord.h
cms::Analyzer_minbias::theDFFillDetMapPl0
double theDFFillDetMapPl0[5][5][73][43]
Definition: Analyzer_minbias.h:133
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:107
edm::ParameterSet
Definition: ParameterSet.h:47
cms::Analyzer_minbias::theMBFillDetMapPl2
double theMBFillDetMapPl2[5][5][73][43]
Definition: Analyzer_minbias.h:115
Event.h
cms::Analyzer_minbias::tok_hbhe_
edm::EDGetTokenT< HBHERecHitCollection > tok_hbhe_
Definition: Analyzer_minbias.h:140
HcalDetId.h
cms::Analyzer_minbias::ieta
int ieta
Definition: Analyzer_minbias.h:99
cms::Analyzer_minbias::mom3_MB
float mom3_MB
Definition: Analyzer_minbias.h:101
edm::Service< TFileService >
TriggerNames.h
cms::Analyzer_minbias::hbheNoiseE
TH1F * hbheNoiseE
Definition: Analyzer_minbias.h:90
FEDRawDataCollection.h
cms::Analyzer_minbias
Definition: Analyzer_minbias.h:62
cms::Analyzer_minbias::hOutputFile
TFile * hOutputFile
Definition: Analyzer_minbias.h:84
CaloTowerDetId.h
edm::EventSetup
Definition: EventSetup.h:58
HcalRespCorrs.h
edm::ESGetToken< HcalRespCorrs, HcalRespCorrsRcd >
cms::Analyzer_minbias::depth
int depth
Definition: Analyzer_minbias.h:99
CaloTowerCollection.h
Ref.h
cms::Analyzer_minbias::hfSignalE
TH1F * hfSignalE
Definition: Analyzer_minbias.h:93
cms::Analyzer_minbias::endRun
void endRun(edm::Run const &, edm::EventSetup const &) override
Definition: Analyzer_minbias.cc:83
cms::Analyzer_minbias::mom2_MB
float mom2_MB
Definition: Analyzer_minbias.h:101
DetId.h
cms::Analyzer_minbias::theNSFillDetMapPl0
double theNSFillDetMapPl0[5][5][73][43]
Definition: Analyzer_minbias.h:123
Frameworkfwd.h
cms::Analyzer_minbias::tok_data_
edm::EDGetTokenT< FEDRawDataCollection > tok_data_
Definition: Analyzer_minbias.h:79
CaloGeometry.h
cms::Analyzer_minbias::tok_respCorr_
edm::ESGetToken< HcalRespCorrs, HcalRespCorrsRcd > tok_respCorr_
Definition: Analyzer_minbias.h:152
EventSetup.h
cms::Analyzer_minbias::mom1_MB
float mom1_MB
Definition: Analyzer_minbias.h:101
HcalRecHitCollections.h
cms::Analyzer_minbias::mom3_Diff
float mom3_Diff
Definition: Analyzer_minbias.h:103
cms::Analyzer_minbias::tok_hfNoise_
edm::EDGetTokenT< HFRecHitCollection > tok_hfNoise_
Definition: Analyzer_minbias.h:146
Candidate.h
cms::Analyzer_minbias::fOutputFileName
std::string fOutputFileName
Definition: Analyzer_minbias.h:75
cms::Analyzer_minbias::theDFFillDetMapPl1
double theDFFillDetMapPl1[5][5][73][43]
Definition: Analyzer_minbias.h:134
ParameterSet.h
cms::Analyzer_minbias::mom2_Diff
float mom2_Diff
Definition: Analyzer_minbias.h:103
cms::Analyzer_minbias::theRecalib
bool theRecalib
Definition: Analyzer_minbias.h:155
cms::Analyzer_minbias::hHBHEsize_vs_run
TH2F * hHBHEsize_vs_run
Definition: Analyzer_minbias.h:95
cms::Analyzer_minbias::tok_hbheNoise_
edm::EDGetTokenT< HBHERecHitCollection > tok_hbheNoise_
Definition: Analyzer_minbias.h:144
cms::Analyzer_minbias::theMBFillDetMapMin2
double theMBFillDetMapMin2[5][5][73][43]
Definition: Analyzer_minbias.h:120
edm::Event
Definition: Event.h:73
cms::Analyzer_minbias::mom4_Diff
float mom4_Diff
Definition: Analyzer_minbias.h:103
cms::Analyzer_minbias::tok_hf_
edm::EDGetTokenT< HFRecHitCollection > tok_hf_
Definition: Analyzer_minbias.h:142
GlobalPoint.h
cms::Analyzer_minbias::theNSFillDetMapPl4
double theNSFillDetMapPl4[5][5][73][43]
Definition: Analyzer_minbias.h:126
cms::Analyzer_minbias::hfNoiseE
TH1F * hfNoiseE
Definition: Analyzer_minbias.h:92
L1GlobalTriggerReadoutRecord.h
cms::Analyzer_minbias::mom0_MB
float mom0_MB
Definition: Analyzer_minbias.h:101
cms::Analyzer_minbias::mom1_Noise
float mom1_Noise
Definition: Analyzer_minbias.h:102
cms::Analyzer_minbias::mom1_Diff
float mom1_Diff
Definition: Analyzer_minbias.h:103
cms::Analyzer_minbias::theDFFillDetMapPl2
double theDFFillDetMapPl2[5][5][73][43]
Definition: Analyzer_minbias.h:135
cms
Namespace of DDCMS conversion namespace.
Definition: ProducerAnalyzer.cc:21
cms::Analyzer_minbias::iphi
int iphi
Definition: Analyzer_minbias.h:99
cms::Analyzer_minbias::tok_l1gt_
edm::ESGetToken< L1GtTriggerMenu, L1GtTriggerMenuRcd > tok_l1gt_
Definition: Analyzer_minbias.h:153