CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
JetTester_HeavyIons.h
Go to the documentation of this file.
1 #ifndef ValidationRecoJetsJetTester_HeavyIons_h
2 #define ValidationRecoJetsJetTester_HeavyIons_h
3 
4 // Producer for validation histograms for Calo, JPT and PF jet objects
5 // F. Ratnikov, Sept. 7, 2006
6 // Modified by Chiyoung Jeong, Feb. 2, 2010
7 // Modified by J. Piedra, Sept. 11, 2013
8 // Rewritten by Viola Sordini, Matthias Artur Weber, Robert Schoefbeck Nov./Dez. 2013
9 // Modified by Raghav Kunnawalkam Elayavalli, Aug 18th 2014 to run in 72X
10 // , Oct 22nd 2014 to run in 73X
11 // , Dec 10th 2014 74X and adding the PF candidates information to easily detect
12 // the voronoi subtraction algorithm failure modes.
13 
14 #include <cmath>
15 #include <string>
16 
32 
33 // include the pf candidates
35 // include the voronoi subtraction
38 // include the centrality variables
40 
63 
64 const Int_t MAXPARTICLE = 10000;
65 
66 class MonitorElement;
67 
69  public:
70 
71  explicit JetTester_HeavyIons (const edm::ParameterSet&);
72  virtual ~JetTester_HeavyIons();
73 
74  void analyze(const edm::Event&, const edm::EventSetup&) override;
75  //virtual void beginJob();
76  //virtual void endJob();
77  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
78  //reco::Vertex::Point getVtx(const edm::Event& ev);
79 
80  //double getEt(const DetID )
81 
82  private:
83 
84  void fillMatchHists(const double GenEta, const double GenPhi, const double GenPt,
85  const double RecoEta, const double RecoPhi, const double RecoPt);
86 
90  // edm::InputTag mInputCandCollection;
91  // edm::InputTag rhoTag;
93 
102  double mRThreshold;
104 
105  //Tokens
117  //edm::EDGetTokenT<reco::VoronoiMap> backgrounds_;
122 
123  //Include Particle flow variables
141  // MonitorElement *ueraw;
142 
146 
150 
154 
158 
162 
166 
170 
174 
175  // Event variables (including centrality)
178 
179  // new additions Jan 12th 2015
186  //MonitorElement *mSumDeltapT_HF;
189  //MonitorElement *mDeltapT_phiMinusPsi2;
191 
198 
211 
227 
243 
259 
260 
276 
292 
308 
309  // Jet parameters
321 
322  // Parameters
323 
324  bool isCaloJet;
325  bool isJPTJet;
326  bool isPFJet;
327 
328  static const Int_t fourierOrder_ = 5;
329  static const Int_t etaBins_ = 15;
330 
331  static const size_t nedge_pseudorapidity = etaBins_ + 1;
332 
333 
334 };
335 
336 #endif
MonitorElement * mSumCaloVsPt_eta
MonitorElement * mSumPFVsPt_1p131_1p479
MonitorElement * mSumCaloPt_0p522_0p783
MonitorElement * mSumPFVsPt_n1p740_n1p479
MonitorElement * mSumSquaredPFVsPt
MonitorElement * mSumPFVsPt_n0p522_0p522
MonitorElement * mVs_0_x_versus_HF
MonitorElement * mSumCaloVsPt_n1p479_n1p131
MonitorElement * mSumPFVsPt_HF
MonitorElement * mSumCaloPt_n5p191_n2p650
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
MonitorElement * mSumCaloPt_2p043_2p650
MonitorElement * mSumPFPt_n0p783_n0p522
MonitorElement * mSumPFVsPtInitial_eta
MonitorElement * mSumPFVsPtInitial_HF
edm::InputTag mInputCollection
edm::EDGetTokenT< CaloTowerCollection > caloTowersToken_
edm::EDGetTokenT< reco::PFJetCollection > pfJetsToken_
MonitorElement * mSumCaloVsPt_n0p522_0p522
MonitorElement * mVs_0_x
MonitorElement * mNCalopart
MonitorElement * mCaloArea
MonitorElement * mSumCaloVsPtInitial_0p522_0p783
JetTester_HeavyIons(const edm::ParameterSet &)
MonitorElement * mSumCaloPt_1p479_1p740
MonitorElement * mSumSquaredCaloPt_eta
MonitorElement * mSumCaloVsPtInitial_n1p740_n1p479
MonitorElement * mSumCaloPt_n0p522_0p522
MonitorElement * mSumPFVsPtInitial_n1p131_n0p783
MonitorElement * mEnergy
static const Int_t etaBins_
MonitorElement * mPFPhi
MonitorElement * mSumCaloPt
MonitorElement * mSumCaloPt_n1p131_n0p783
edm::EDGetTokenT< reco::Centrality > centralityToken_
edm::EDGetTokenT< reco::PFCandidateCollection > pfCandToken_
MonitorElement * mSumSquaredCaloPt
MonitorElement * mCaloPt
MonitorElement * mPFVsPt_eta_phi
MonitorElement * mSumCaloPt_n2p043_n1p740
MonitorElement * mSumPFVsPt_2p650_5p191
MonitorElement * mNJets
MonitorElement * mSumCaloVsPtInitial_n1p479_n1p131
MonitorElement * mSumCaloVsPt_1p740_2p043
MonitorElement * mSumCaloVsPtInitial_n1p131_n0p783
MonitorElement * mDeltapT
MonitorElement * mSumSquaredPFVsPtInitial_eta
edm::EDGetTokenT< std::vector< float > > backgrounds_value_
MonitorElement * mSumCaloVsPt_n0p783_n0p522
edm::InputTag mInputPFCandCollection
static const Int_t fourierOrder_
MonitorElement * mSumCaloVsPtInitial_n0p783_n0p522
MonitorElement * mSumSquaredPFPt_eta
MonitorElement * mSumSquaredPFPt
MonitorElement * mSumPFPt_n2p650_n2p043
MonitorElement * mSumCaloVsPtInitial_eta
MonitorElement * mSumCaloVsPt_1p479_1p740
MonitorElement * mSumCaloPt_n2p650_n2p043
MonitorElement * mpsin
MonitorElement * mSumCaloPt_n1p740_n1p479
MonitorElement * mSumCaloVsPtInitial
MonitorElement * mSumPFVsPtInitial
MonitorElement * mSumCaloVsPtInitial_n2p043_n1p740
MonitorElement * mSumCaloVsPt_n2p043_n1p740
edm::EDGetTokenT< reco::CandidateView > caloCandViewToken_
MonitorElement * mSumPFPt_0p783_1p131
MonitorElement * mSumPFPt_1p479_1p740
MonitorElement * mSumSquaredCaloVsPtInitial_eta
MonitorElement * mSumSquaredCaloVsPt
MonitorElement * mSumSquaredCaloVsPt_eta
MonitorElement * mSumPFPt_n1p131_n0p783
MonitorElement * mSumPFVsPtInitial_n2p650_n2p043
MonitorElement * mSumPFVsPt_n2p043_n1p740
MonitorElement * mSumCaloPt_1p131_1p479
MonitorElement * mVs_2_y_versus_HF
void fillMatchHists(const double GenEta, const double GenPhi, const double GenPt, const double RecoEta, const double RecoPhi, const double RecoPt)
MonitorElement * mNJets_40
MonitorElement * mSumCaloVsPtInitial_1p740_2p043
MonitorElement * mSumPFVsPt_2p043_2p650
MonitorElement * mSumCaloVsPt_n1p740_n1p479
MonitorElement * mSumPFVsPt
MonitorElement * mSumCaloVsPt_1p131_1p479
edm::EDGetTokenT< reco::BasicJetCollection > basicJetsToken_
const Int_t MAXPARTICLE
MonitorElement * mSumPFPt_eta
MonitorElement * mSumPFPt_n0p522_0p522
MonitorElement * mSumPFPt_n5p191_n2p650
MonitorElement * mSumPFVsPtInitial_0p783_1p131
MonitorElement * mSumCaloVsPtInitial_n5p191_n2p650
edm::EDGetTokenT< std::vector< reco::Vertex > > hiVertexToken_
MonitorElement * mVs_1_y
MonitorElement * mSumCaloVsPtInitial_0p783_1p131
MonitorElement * mJetArea
MonitorElement * mSumPFVsPtInitial_n0p522_0p522
MonitorElement * mDeltapT_eta_phi
MonitorElement * mSumPFPt_n2p043_n1p740
MonitorElement * mSumCaloPt_2p650_5p191
MonitorElement * mSumPFVsPt_1p740_2p043
MonitorElement * mSumPFPt
MonitorElement * mVs_1_x_versus_HF
MonitorElement * mNPFpart
MonitorElement * mPFPt
MonitorElement * mSumPFVsPtInitial_1p740_2p043
MonitorElement * mPFPt_eta_phi
edm::EDGetTokenT< reco::JPTJetCollection > jptJetsToken_
MonitorElement * mSumPFVsPtInitial_2p650_5p191
MonitorElement * mSumPFPt_0p522_0p783
MonitorElement * mSumPFVsPt_n2p650_n2p043
static const size_t nedge_pseudorapidity
MonitorElement * mSumCaloPt_eta
MonitorElement * mSumCaloVsPt_n2p650_n2p043
MonitorElement * mSumPFPt_1p131_1p479
MonitorElement * mSumPFVsPt_eta
MonitorElement * mCaloVsPtInitial_eta_phi
MonitorElement * mSumCaloVsPt_2p043_2p650
MonitorElement * mSumPFVsPtInitial_n1p740_n1p479
MonitorElement * mSumPFVsPt_n5p191_n2p650
MonitorElement * mConstituents
MonitorElement * mPFVsPtInitial
MonitorElement * mSumPFPt_1p740_2p043
edm::EDGetTokenT< reco::CandidateView > pfCandViewToken_
MonitorElement * mSumCaloVsPt_n5p191_n2p650
MonitorElement * mSumSquaredPFVsPtInitial
MonitorElement * mSumCaloVsPt_n1p131_n0p783
MonitorElement * mPFVsPtInitial_eta_phi
edm::EDGetTokenT< reco::GenJetCollection > genJetsToken_
MonitorElement * mCaloVsPt_eta_phi
MonitorElement * mSumPFVsPt_n1p131_n0p783
std::string JetCorrectionService
edm::EDGetTokenT< std::vector< reco::Vertex > > pvToken_
MonitorElement * mSumPFVsPtInitial_n5p191_n2p650
MonitorElement * mSumPFPt_n1p479_n1p131
MonitorElement * mCaloVsPt
MonitorElement * mSumPFPt_2p043_2p650
MonitorElement * mSumPFVsPtInitial_1p131_1p479
MonitorElement * mCaloVsPtInitial
MonitorElement * mCaloEta
MonitorElement * mSumCaloVsPtInitial_n0p522_0p522
MonitorElement * mSumCaloVsPt_HF
MonitorElement * mSumCaloPt_n0p783_n0p522
MonitorElement * mPFEta
edm::EDGetTokenT< edm::HepMCProduct > evtToken_
MonitorElement * mSumCaloVsPt_0p783_1p131
MonitorElement * mCaloPhi
MonitorElement * mSumPFVsPtInitial_n2p043_n1p740
MonitorElement * mSumCaloVsPtInitial_n2p650_n2p043
MonitorElement * mSumCaloPt_0p783_1p131
MonitorElement * mSumCaloVsPtInitial_2p043_2p650
MonitorElement * mVs_0_y_versus_HF
MonitorElement * mSumpt
MonitorElement * mSumPFPt_HF
MonitorElement * mSumPFVsPtInitial_0p522_0p783
MonitorElement * mSumPFVsPtInitial_1p479_1p740
MonitorElement * mSumPFPt_2p650_5p191
MonitorElement * mSumSquaredPFVsPt_eta
MonitorElement * mSumPFVsPtInitial_2p043_2p650
MonitorElement * mSumCaloPt_HF
MonitorElement * mNvtx
MonitorElement * mSumPFVsPt_n0p783_n0p522
MonitorElement * mVs_1_y_versus_HF
MonitorElement * mDeltapT_eta
MonitorElement * mVs_2_y
MonitorElement * mSumCaloVsPtInitial_HF
MonitorElement * mSumCaloVsPtInitial_1p479_1p740
MonitorElement * mMass
MonitorElement * mSumPFVsPt_n1p479_n1p131
MonitorElement * mVs_2_x
MonitorElement * mCaloPt_eta_phi
edm::InputTag mInputGenCollection
MonitorElement * mSumPFPt_n1p740_n1p479
MonitorElement * mPFArea
MonitorElement * mSumCaloVsPtInitial_1p131_1p479
MonitorElement * mSumCaloVsPt_2p650_5p191
MonitorElement * mSumPFVsPt_1p479_1p740
MonitorElement * mSumCaloVsPtInitial_2p650_5p191
MonitorElement * mSumPFVsPt_0p783_1p131
edm::EDGetTokenT< edm::ValueMap< reco::VoronoiBackground > > backgrounds_
MonitorElement * mVs_0_y
MonitorElement * mSumCaloVsPt_0p522_0p783
edm::EDGetTokenT< reco::CaloJetCollection > caloJetsToken_
MonitorElement * mVs_1_x
MonitorElement * mVs_2_x_versus_HF
MonitorElement * mSumSquaredCaloVsPtInitial
MonitorElement * mSumPFVsPt_0p522_0p783
MonitorElement * mSumCaloPt_1p740_2p043
MonitorElement * mSumPFVsPtInitial_n1p479_n1p131
Definition: Run.h:41
MonitorElement * mSumCaloPt_n1p479_n1p131
MonitorElement * mPFVsPt
MonitorElement * mSumPFVsPtInitial_n0p783_n0p522
void analyze(const edm::Event &, const edm::EventSetup &) override
MonitorElement * mjetpileup
MonitorElement * mSumCaloVsPt