CMS 3D CMS Logo

JetAnalyzer_HeavyIons.h
Go to the documentation of this file.
1 #ifndef JetAnalyzer_HeavyIons_H
2 #define JetAnalyzer_HeavyIons_H
3 
4 
5 //
6 // Jet Tester class for heavy ion jets. for DQM jet analysis monitoring
7 // For CMSSW_7_4_X, especially reading background subtracted jets
8 // author: Raghav Kunnawalkam Elayavalli,
9 // Jan 12th 2015
10 // Rutgers University, email: raghav.k.e at CERN dot CH
11 //
12 // this class will be very similar to the class available in the validation suite under RecoJets/JetTester_HeavyIons
13 //
14 
15 
16 #include <memory>
17 #include <fstream>
26 
34 
43 
49 
50 // include the basic jet for the PuPF jets.
53 // include the pf candidates
55 // include the voronoi subtraction
58 // include the centrality variables
60 
67 
72 #include <map>
73 #include <string>
74 
75 
76 const Int_t MAXPARTICLE = 10000;
77 const Double_t BarrelEta = 2.0;
78 const Double_t EndcapEta = 3.0;
79 const Double_t ForwardEta = 5.0;
80 
81 class MonitorElement;
82 
84 
85  public:
86 
87  explicit JetAnalyzer_HeavyIons (const edm::ParameterSet&);
88  ~JetAnalyzer_HeavyIons() override;
89 
90  void analyze(const edm::Event&, const edm::EventSetup&) override;
91  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
92 
93  private:
94  static constexpr int fourierOrder_ = 5;
95  static constexpr int etaBins_ = 7;
96  static constexpr int ptBins_ = 7;
97 
98  //default values - these are changed by the etaMap values for the CS plots
99  const double edge_pseudorapidity[etaBins_ +1] = {-5, -3, -2.1, -1.3, 1.3, 2.1, 3, 5};
100  const int ptBin[ptBins_+1] = {0, 20, 40, 60, 100, 150, 300, 99999};
101 
102  static constexpr int nedge_pseudorapidity = etaBins_ + 1;
103 
107 
114  double mRThreshold;
116 
120 
124 
125  //Tokens
136 
138 
142 
147 
151 
160 
163 
166 
169 
170  // Event variables (including centrality)
173 
174  // new additions Jan 12th 2015
177 
180 
181  // Jet parameters
193 
205 
214 
223 
232 
241 
242  // Parameters
243 
244  bool isCaloJet;
245  bool isJPTJet;
246  bool isPFJet;
247 
248 };
249 
250 
251 #endif
MonitorElement * mPFCandpT_Forward_photon
edm::EDGetTokenT< reco::CaloJetCollection > caloJetsToken_
edm::EDGetTokenT< reco::PFCandidateCollection > pfCandToken_
edm::InputTag mInputCsCandCollection
MonitorElement * mSumSquaredPFPt
MonitorElement * mPFCandpT_vs_eta_electron
edm::EDGetTokenT< reco::CandidateView > caloCandViewToken_
MonitorElement * mPFCandpT_Forward_EME_inHF
const Double_t EndcapEta
edm::EDGetTokenT< reco::JPTJetCollection > jptJetsToken_
MonitorElement * mPFCandpT_Forward_muon
edm::EDGetTokenT< reco::PFJetCollection > pfJetsToken_
MonitorElement * mCSCandpT_vsPt[etaBins_]
MonitorElement * mPFCandpT_Endcap_NeutralHadron
MonitorElement * mPFCandpT_vs_eta_EME_inHF
MonitorElement * mSumSquaredCaloPt
MonitorElement * mSubtractedEFrac[ptBins_][etaBins_]
void analyze(const edm::Event &, const edm::EventSetup &) override
MonitorElement * mSumPFPtEtaDep[etaBins_]
MonitorElement * mPFCandpT_Forward_electron
MonitorElement * mRhoMDist_vsEta
edm::EDGetTokenT< std::vector< reco::Vertex > > pvToken_
#define constexpr
MonitorElement * mSumCaloPt_eta
MonitorElement * mPFCandpT_vs_eta_muon
MonitorElement * mCSCand_corrPFcand[etaBins_]
MonitorElement * mPFCandpT_Endcap_HadE_inHF
edm::EDGetTokenT< int > centralityBinToken
MonitorElement * mPFCandpT_Endcap_ChargedHadron
MonitorElement * mRhoMDist_vsPt
MonitorElement * mPFCandpT_vs_eta_NeutralHadron
MonitorElement * mSumCaloPtEtaDep[etaBins_]
MonitorElement * mSumCaloPt_HF
MonitorElement * mRhoDist_vsEta
MonitorElement * mPFCandpT_vs_eta_photon
const Int_t MAXPARTICLE
edm::EDGetTokenT< reco::Centrality > centralityToken
MonitorElement * mPFCandpT_Forward_ChargedHadron
MonitorElement * mSubtractedE[ptBins_][etaBins_]
edm::Handle< int > centralityBin_
MonitorElement * mPFCandpT_Endcap_muon
MonitorElement * mPFCandpT_Endcap_photon
MonitorElement * mPFDeltaR_Scaled_R
edm::EDGetTokenT< std::vector< reco::Vertex > > hiVertexToken_
MonitorElement * mRhoDist_vsPt
MonitorElement * mConstituents
MonitorElement * mPFCandpT_Barrel_photon
MonitorElement * mRhoDist_vsCent
MonitorElement * mSumSquaredCaloPt_eta
MonitorElement * mPFCandpT_Barrel_Unknown
edm::EDGetTokenT< std::vector< double > > rhoToken_
edm::EDGetTokenT< std::vector< double > > rhomToken_
MonitorElement * mPFCandpT_Barrel_NeutralHadron
edm::Handle< reco::Centrality > centrality_
MonitorElement * mPFCandpT_Endcap_Unknown
const Double_t ForwardEta
MonitorElement * mPFCandpT_vs_eta_ChargedHadron
MonitorElement * mPFCandpT_Forward_HadE_inHF
edm::EDGetTokenT< reco::BasicJetCollection > basicJetsToken_
MonitorElement * mPFCandpT_Barrel_ChargedHadron
MonitorElement * mPFCandpT_Barrel_HadE_inHF
edm::EDGetTokenT< reco::PFCandidateCollection > csCandToken_
const double edge_pseudorapidity[etaBins_+1]
edm::InputTag mInputPFCandCollection
MonitorElement * mSumSquaredPFPt_eta
MonitorElement * mPFCandpT_Endcap_EME_inHF
MonitorElement * mPFCandpT_vs_eta_HadE_inHF
edm::EDGetTokenT< reco::CandidateView > pfCandViewToken_
edm::EDGetTokenT< CaloTowerCollection > caloTowersToken_
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
MonitorElement * mPFCandpT_Forward_Unknown
MonitorElement * mPFCandpT_Barrel_electron
MonitorElement * mPFCandpT_Endcap_electron
edm::EDGetTokenT< std::vector< double > > etaToken_
const Double_t BarrelEta
JetAnalyzer_HeavyIons(const edm::ParameterSet &)
const int ptBin[ptBins_+1]
MonitorElement * mPFCandpT_Barrel_EME_inHF
MonitorElement * mPFCandpT_vs_eta_Unknown
MonitorElement * mPFCandpT_Forward_NeutralHadron
Definition: Run.h:43
MonitorElement * mRhoMDist_vsCent
MonitorElement * mPFCandpT_Barrel_muon