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
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 
140 
144 
145  //
148 
150  };
151 } // namespace cms
152 #endif
cms::Analyzer_minbias::noise_min
double noise_min[73][43]
Definition: Analyzer_minbias.h:105
cms::Analyzer_minbias::endJob
void endJob() override
Definition: Analyzer_minbias.cc:228
cms::Analyzer_minbias::theDFFillDetMapMin1
double theDFFillDetMapMin1[5][5][73][43]
Definition: Analyzer_minbias.h:134
FEDNumbering.h
CaloJetCollection.h
cms::Analyzer_minbias::theMBFillDetMapMin4
double theMBFillDetMapMin4[5][5][73][43]
Definition: Analyzer_minbias.h:118
CaloJet.h
EDAnalyzer.h
cms::Analyzer_minbias::theMBFillDetMapPl1
double theMBFillDetMapPl1[5][5][73][43]
Definition: Analyzer_minbias.h:111
cms::Analyzer_minbias::theDFFillDetMapMin0
double theDFFillDetMapMin0[5][5][73][43]
Definition: Analyzer_minbias.h:133
cms::Analyzer_minbias::hCalo1mom2
TH1F * hCalo1mom2[73][43]
Definition: Analyzer_minbias.h:85
cms::Analyzer_minbias::beginJob
void beginJob() override
Definition: Analyzer_minbias.cc:86
cms::Analyzer_minbias::phi
float phi
Definition: Analyzer_minbias.h:97
EDProducer.h
cms::Analyzer_minbias::tok_hoNoise_
edm::EDGetTokenT< HORecHitCollection > tok_hoNoise_
Definition: Analyzer_minbias.h:142
cms::Analyzer_minbias::mom0_Diff
float mom0_Diff
Definition: Analyzer_minbias.h:100
cms::Analyzer_minbias::theMBFillDetMapMin0
double theMBFillDetMapMin0[5][5][73][43]
Definition: Analyzer_minbias.h:115
ESHandle.h
cms::Analyzer_minbias::meannoise_pl
double meannoise_pl[73][43]
Definition: Analyzer_minbias.h:104
cms::Analyzer_minbias::tok_hbheNorm_
edm::EDGetTokenT< HBHERecHitCollection > tok_hbheNorm_
Definition: Analyzer_minbias.h:147
cms::Analyzer_minbias::myout_hcal
std::ofstream * myout_hcal
Definition: Analyzer_minbias.h:74
edm::Run
Definition: Run.h:45
edm::EDGetTokenT< FEDRawDataCollection >
cms::Analyzer_minbias::mom4_MB
float mom4_MB
Definition: Analyzer_minbias.h:98
cms::Analyzer_minbias::theMBFillDetMapPl4
double theMBFillDetMapPl4[5][5][73][43]
Definition: Analyzer_minbias.h:113
cms::Analyzer_minbias::mom2_Noise
float mom2_Noise
Definition: Analyzer_minbias.h:99
cms::Analyzer_minbias::mom4_Noise
float mom4_Noise
Definition: Analyzer_minbias.h:99
Jet.h
cms::Analyzer_minbias::fs
edm::Service< TFileService > fs
Definition: Analyzer_minbias.h:79
edm::one::EDAnalyzer
Definition: EDAnalyzer.h:30
cms::Analyzer_minbias::hbheSignalE
TH1F * hbheSignalE
Definition: Analyzer_minbias.h:88
cms::Analyzer_minbias::noise_pl
double noise_pl[73][43]
Definition: Analyzer_minbias.h:105
cms::Analyzer_minbias::hcalfile_
std::string hcalfile_
Definition: Analyzer_minbias.h:73
cms::Analyzer_minbias::hHFsize_vs_run
TH2F * hHFsize_vs_run
Definition: Analyzer_minbias.h:93
FEDRawData.h
cms::Analyzer_minbias::tok_gtRec_
edm::EDGetTokenT< L1GlobalTriggerReadoutRecord > tok_gtRec_
Definition: Analyzer_minbias.h:146
EcalRecHitCollections.h
cms::Analyzer_minbias::occup
float occup
Definition: Analyzer_minbias.h:98
cms::Analyzer_minbias::theMBFillDetMapMin1
double theMBFillDetMapMin1[5][5][73][43]
Definition: Analyzer_minbias.h:116
cms::Analyzer_minbias::analyze
void analyze(edm::Event const &, edm::EventSetup const &) override
Definition: Analyzer_minbias.cc:319
cms::Analyzer_minbias::hCalo2
TH1F * hCalo2[73][43]
Definition: Analyzer_minbias.h:84
cms::Analyzer_minbias::theNSFillDetMapPl1
double theNSFillDetMapPl1[5][5][73][43]
Definition: Analyzer_minbias.h:121
cms::Analyzer_minbias::tok_ho_
edm::EDGetTokenT< HORecHitCollection > tok_ho_
Definition: Analyzer_minbias.h:138
MakerMacros.h
cms::Analyzer_minbias::beginRun
void beginRun(edm::Run const &, edm::EventSetup const &) override
Definition: Analyzer_minbias.cc:81
cms::Analyzer_minbias::nevent
double nevent
Definition: Analyzer_minbias.h:109
cms::Analyzer_minbias::hCalo2mom2
TH1F * hCalo2mom2[73][43]
Definition: Analyzer_minbias.h:86
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:99
cms::Analyzer_minbias::hCalo1
TH1F * hCalo1[73][43]
Definition: Analyzer_minbias.h:83
Track.h
cms::Analyzer_minbias::theMBFillDetMapPl0
double theMBFillDetMapPl0[5][5][73][43]
Definition: Analyzer_minbias.h:110
cms::Analyzer_minbias::theNSFillDetMapMin1
double theNSFillDetMapMin1[5][5][73][43]
Definition: Analyzer_minbias.h:126
Service.h
cms::Analyzer_minbias::nevent_run
int nevent_run
Definition: Analyzer_minbias.h:95
cms::Analyzer_minbias::eta
float eta
Definition: Analyzer_minbias.h:97
cms::Analyzer_minbias::theDFFillDetMapMin2
double theDFFillDetMapMin2[5][5][73][43]
Definition: Analyzer_minbias.h:135
cms::Analyzer_minbias::theNSFillDetMapPl2
double theNSFillDetMapPl2[5][5][73][43]
Definition: Analyzer_minbias.h:122
Run.h
cms::Analyzer_minbias::~Analyzer_minbias
~Analyzer_minbias() override
Definition: Analyzer_minbias.cc:76
cms::Analyzer_minbias::mom3_Noise
float mom3_Noise
Definition: Analyzer_minbias.h:99
cms::Analyzer_minbias::myTree
TTree * myTree
Definition: Analyzer_minbias.h:82
cms::Analyzer_minbias::theNSFillDetMapMin0
double theNSFillDetMapMin0[5][5][73][43]
Definition: Analyzer_minbias.h:125
cms::Analyzer_minbias::theNSFillDetMapMin2
double theNSFillDetMapMin2[5][5][73][43]
Definition: Analyzer_minbias.h:127
cms::Analyzer_minbias::theNSFillDetMapMin4
double theNSFillDetMapMin4[5][5][73][43]
Definition: Analyzer_minbias.h:128
cms::Analyzer_minbias::mysubd
int mysubd
Definition: Analyzer_minbias.h:96
cms::Analyzer_minbias::mydet
int mydet
Definition: Analyzer_minbias.h:96
CaloGeometryRecord.h
cms::Analyzer_minbias::theDFFillDetMapPl0
double theDFFillDetMapPl0[5][5][73][43]
Definition: Analyzer_minbias.h:130
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:104
edm::ParameterSet
Definition: ParameterSet.h:36
cms::Analyzer_minbias::theMBFillDetMapPl2
double theMBFillDetMapPl2[5][5][73][43]
Definition: Analyzer_minbias.h:112
Event.h
cms::Analyzer_minbias::tok_hbhe_
edm::EDGetTokenT< HBHERecHitCollection > tok_hbhe_
Definition: Analyzer_minbias.h:137
HcalDetId.h
cms::Analyzer_minbias::ieta
int ieta
Definition: Analyzer_minbias.h:96
cms::Analyzer_minbias::mom3_MB
float mom3_MB
Definition: Analyzer_minbias.h:98
edm::Service< TFileService >
TriggerNames.h
cms::Analyzer_minbias::hbheNoiseE
TH1F * hbheNoiseE
Definition: Analyzer_minbias.h:87
FEDRawDataCollection.h
cms::Analyzer_minbias
Definition: Analyzer_minbias.h:59
cms::Analyzer_minbias::hOutputFile
TFile * hOutputFile
Definition: Analyzer_minbias.h:81
CaloTowerDetId.h
edm::EventSetup
Definition: EventSetup.h:57
cms::Analyzer_minbias::depth
int depth
Definition: Analyzer_minbias.h:96
CaloTowerCollection.h
Ref.h
cms::Analyzer_minbias::hfSignalE
TH1F * hfSignalE
Definition: Analyzer_minbias.h:90
cms::Analyzer_minbias::endRun
void endRun(edm::Run const &, edm::EventSetup const &) override
Definition: Analyzer_minbias.cc:82
cms::Analyzer_minbias::mom2_MB
float mom2_MB
Definition: Analyzer_minbias.h:98
DetId.h
cms::Analyzer_minbias::theNSFillDetMapPl0
double theNSFillDetMapPl0[5][5][73][43]
Definition: Analyzer_minbias.h:120
Frameworkfwd.h
cms::Analyzer_minbias::tok_data_
edm::EDGetTokenT< FEDRawDataCollection > tok_data_
Definition: Analyzer_minbias.h:76
CaloGeometry.h
EventSetup.h
cms::Analyzer_minbias::mom1_MB
float mom1_MB
Definition: Analyzer_minbias.h:98
HcalRecHitCollections.h
cms::Analyzer_minbias::mom3_Diff
float mom3_Diff
Definition: Analyzer_minbias.h:100
cms::Analyzer_minbias::tok_hfNoise_
edm::EDGetTokenT< HFRecHitCollection > tok_hfNoise_
Definition: Analyzer_minbias.h:143
Candidate.h
cms::Analyzer_minbias::fOutputFileName
std::string fOutputFileName
Definition: Analyzer_minbias.h:72
cms::Analyzer_minbias::theDFFillDetMapPl1
double theDFFillDetMapPl1[5][5][73][43]
Definition: Analyzer_minbias.h:131
ParameterSet.h
cms::Analyzer_minbias::mom2_Diff
float mom2_Diff
Definition: Analyzer_minbias.h:100
cms::Analyzer_minbias::theRecalib
bool theRecalib
Definition: Analyzer_minbias.h:149
cms::Analyzer_minbias::hHBHEsize_vs_run
TH2F * hHBHEsize_vs_run
Definition: Analyzer_minbias.h:92
cms::Analyzer_minbias::tok_hbheNoise_
edm::EDGetTokenT< HBHERecHitCollection > tok_hbheNoise_
Definition: Analyzer_minbias.h:141
cms::Analyzer_minbias::theMBFillDetMapMin2
double theMBFillDetMapMin2[5][5][73][43]
Definition: Analyzer_minbias.h:117
edm::Event
Definition: Event.h:73
cms::Analyzer_minbias::mom4_Diff
float mom4_Diff
Definition: Analyzer_minbias.h:100
cms::Analyzer_minbias::tok_hf_
edm::EDGetTokenT< HFRecHitCollection > tok_hf_
Definition: Analyzer_minbias.h:139
GlobalPoint.h
cms::Analyzer_minbias::theNSFillDetMapPl4
double theNSFillDetMapPl4[5][5][73][43]
Definition: Analyzer_minbias.h:123
cms::Analyzer_minbias::hfNoiseE
TH1F * hfNoiseE
Definition: Analyzer_minbias.h:89
L1GlobalTriggerReadoutRecord.h
cms::Analyzer_minbias::mom0_MB
float mom0_MB
Definition: Analyzer_minbias.h:98
cms::Analyzer_minbias::mom1_Noise
float mom1_Noise
Definition: Analyzer_minbias.h:99
cms::Analyzer_minbias::mom1_Diff
float mom1_Diff
Definition: Analyzer_minbias.h:100
cms::Analyzer_minbias::theDFFillDetMapPl2
double theDFFillDetMapPl2[5][5][73][43]
Definition: Analyzer_minbias.h:132
cms
Namespace of DDCMS conversion namespace.
Definition: ProducerAnalyzer.cc:21
cms::Analyzer_minbias::iphi
int iphi
Definition: Analyzer_minbias.h:96