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>
21 
29 
38 
44 
45 // include the basic jet for the PuPF jets.
48 // include the pf candidates
50 // include the voronoi subtraction
53 // include the centrality variables
55 
62 
67 #include <map>
68 #include <string>
69 
70 const Int_t MAXPARTICLE = 10000;
71 const Double_t BarrelEta = 2.0;
72 const Double_t EndcapEta = 3.0;
73 const Double_t ForwardEta = 5.0;
74 
76 public:
78  ~JetAnalyzer_HeavyIons() override;
79 
80  void analyze(const edm::Event&, const edm::EventSetup&) override;
81  void bookHistograms(DQMStore::IBooker&, edm::Run const&, edm::EventSetup const&) override;
82 
83 private:
84  static constexpr int fourierOrder_ = 5;
85  static constexpr int etaBins_ = 7;
86  static constexpr int ptBins_ = 7;
87 
88  //default values - these are changed by the etaMap values for the CS plots
89  const double edge_pseudorapidity[etaBins_ + 1] = {-5, -3, -2.1, -1.3, 1.3, 2.1, 3, 5};
90  const int ptBin[ptBins_ + 1] = {0, 20, 40, 60, 100, 150, 300, 99999};
91 
92  static constexpr int nedge_pseudorapidity = etaBins_ + 1;
93 
98 
105  double mRThreshold;
107 
111 
115 
116  //Tokens
127 
129 
133 
138 
142 
151 
154 
157 
160 
161  // Event variables (including centrality)
164 
165  // new additions Jan 12th 2015
168 
171 
172  // Jet parameters
184 
196 
205 
214 
223 
232 
233  // Parameters
234 
235  bool isCaloJet;
236  bool isJPTJet;
237  bool isPFJet;
238 };
239 
240 #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
static constexpr int etaBins_
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_
static constexpr int ptBins_
MonitorElement * mRhoDist_vsPt
MonitorElement * mConstituents
MonitorElement * mPFCandpT_Barrel_photon
static constexpr int nedge_pseudorapidity
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_
static constexpr int fourierOrder_
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
Definition: Run.h:45
MonitorElement * mPFCandpT_Barrel_muon