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 // Jet Tester class for heavy ion jets. for DQM jet analysis monitoring
6 // For CMSSW_7_4_X, especially reading background subtracted jets
7 // author: Raghav Kunnawalkam Elayavalli,
8 // Jan 12th 2015
9 // Rutgers University, email: raghav.k.e at CERN dot CH
10 //
11 // this class will be very similar to the class available in the validation suite under RecoJets/JetTester_HeavyIons
12 //
13 
14 #include <memory>
15 #include <fstream>
23 
31 
40 
46 
47 // include the basic jet for the PuPF jets.
50 // include the pf candidates
52 // include the voronoi subtraction
55 // include the centrality variables
57 
64 
69 #include <map>
70 #include <string>
71 
72 const Int_t MAXPARTICLE = 10000;
73 const Double_t BarrelEta = 2.0;
74 const Double_t EndcapEta = 3.0;
75 const Double_t ForwardEta = 5.0;
76 
78 public:
80  ~JetAnalyzer_HeavyIons() override;
81 
82  void analyze(const edm::Event&, const edm::EventSetup&) override;
83  void bookHistograms(DQMStore::IBooker&, edm::Run const&, edm::EventSetup const&) override;
84 
85 private:
86  static constexpr int fourierOrder_ = 5;
87  static constexpr int etaBins_ = 7;
88  static constexpr int ptBins_ = 7;
89 
90  //default values - these are changed by the etaMap values for the CS plots
91  const double edge_pseudorapidity[etaBins_ + 1] = {-5, -3, -2.1, -1.3, 1.3, 2.1, 3, 5};
92  const int ptBin[ptBins_ + 1] = {0, 20, 40, 60, 100, 150, 300, 99999};
93 
94  static constexpr int nedge_pseudorapidity = etaBins_ + 1;
95 
100 
107  double mRThreshold;
109 
113 
117 
118  //Tokens
129 
131 
135 
140 
144 
153 
156 
159 
162 
163  // Event variables (including centrality)
166 
167  // new additions Jan 12th 2015
170 
173 
174  // Jet parameters
186 
198 
207 
216 
225 
234 
235  // Parameters
236 
237  bool isCaloJet;
238  bool isJPTJet;
239  bool isPFJet;
240 };
241 
242 #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_
edm::EDGetTokenT< CaloTowerCollection > caloTowersToken_
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_
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 * 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_
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
MonitorElement * mRhoDist_vsCent[etaBins_]
JetAnalyzer_HeavyIons(const edm::ParameterSet &)
const int ptBin[ptBins_+1]
MonitorElement * mPFCandpT_Barrel_EME_inHF
MonitorElement * mRhoMDist_vsCent[etaBins_]
MonitorElement * mPFCandpT_vs_eta_Unknown
MonitorElement * mPFCandpT_Forward_NeutralHadron
#define constexpr
Definition: Run.h:45
MonitorElement * mPFCandpT_Barrel_muon