36 jetname =
"jetPtAnalyzer";
38 LogTrace(jetname)<<
"[JetPtAnalyzer] Parameters initialization";
41 jetME = dbe->
book1D(
"jetReco",
"jetReco", 3, 1, 4);
48 etaBin =
parameters.getParameter<
int>(
"etaBin");
53 phiBin =
parameters.getParameter<
int>(
"phiBin");
62 mEta = dbe->
book2D(
"EtaVsPt",
"EtaVsPt",ptBin, ptMin, ptMax, etaBin, etaMin, etaMax);
63 mPhi = dbe->
book2D(
"PhiVsPt",
"PhiVsPt",ptBin, ptMin, ptMax, phiBin, phiMin, phiMax);
64 mConstituents = dbe->
book2D(
"ConstituentsVsPt",
"# of ConstituentsVsPt",ptBin, ptMin, ptMax, 100, 0, 100);
68 mHFrac = dbe->
book2D(
"HFracVsPt",
"HFracVsPt",ptBin, ptMin, ptMax, 120, -0.1, 1.1);
69 mEFrac = dbe->
book2D(
"EFracVsPt",
"EFracVsPt", ptBin, ptMin, ptMax,120, -0.1, 1.1);
70 mMaxEInEmTowers = dbe->
book2D(
"MaxEInEmTowersVsPt",
"MaxEInEmTowersVsPt", ptBin, ptMin, ptMax,100, 0, 100);
71 mMaxEInHadTowers = dbe->
book2D(
"MaxEInHadTowersVsPt",
"MaxEInHadTowersVsPt",ptBin, ptMin, ptMax, 100, 0, 100);
72 mHadEnergyInHO = dbe->
book2D(
"HadEnergyInHOVsPt",
"HadEnergyInHOVsPt",ptBin, ptMin, ptMax, 100, 0, 10);
73 mHadEnergyInHB = dbe->
book2D(
"HadEnergyInHBVsPt",
"HadEnergyInHBVsPt",ptBin, ptMin, ptMax, 100, 0, 50);
74 mHadEnergyInHF = dbe->
book2D(
"HadEnergyInHFVsPt",
"HadEnergyInHFVsPt",ptBin, ptMin, ptMax ,100, 0, 50);
75 mHadEnergyInHE = dbe->
book2D(
"HadEnergyInHEVsPt",
"HadEnergyInHEVsPt",ptBin, ptMin, ptMax, 100, 0, 100);
76 mEmEnergyInEB = dbe->
book2D(
"EmEnergyInEBVsPt",
"EmEnergyInEBVsPt",ptBin, ptMin, ptMax, 100, 0, 50);
77 mEmEnergyInEE = dbe->
book2D(
"EmEnergyInEEVsPt",
"EmEnergyInEEVsPt",ptBin, ptMin, ptMax, 100, 0, 50);
78 mEmEnergyInHF = dbe->
book2D(
"EmEnergyInHFVsPt",
"EmEnergyInHFVsPt",ptBin, ptMin, ptMax, 120, -20, 100);
80 mN90Hits = dbe->
book2D(
"N90HitsVsPt",
"N90HitsVsPt",ptBin, ptMin, ptMax, 50, 0, 50);
81 mresEMF = dbe->
book2D(
"resEMFVsPt",
"resEMFVsPt",ptBin, ptMin, ptMax,50, 0., 1.);
82 mfHPD = dbe->
book2D(
"fHPDVsPt",
"fHPDVsPt",ptBin, ptMin, ptMax,50, 0., 1.);
83 mfRBX = dbe->
book2D(
"fRBXVsPt",
"fRBXVsPt",ptBin, ptMin, ptMax,50, 0., 1.);
98 LogTrace(jetname)<<
"[JetPtAnalyzer] Analyze Calo Jet";
100 for (reco::CaloJetCollection::const_iterator
jet = caloJets.begin();
jet!=caloJets.end(); ++
jet){
106 if (mEta) mEta->Fill (
jet->pt(),
jet->eta());
107 if (mPhi) mPhi->Fill (
jet->pt(),
jet->phi());
110 if (mConstituents) mConstituents->Fill (
jet->pt(),
jet->nConstituents());
111 if (mHFrac) mHFrac->Fill (
jet->pt(),
jet->energyFractionHadronic());
112 if (mEFrac) mEFrac->Fill (
jet->pt(),
jet->emEnergyFraction());
115 if (mMaxEInEmTowers) mMaxEInEmTowers->Fill (
jet->pt(),
jet->maxEInEmTowers());
116 if (mMaxEInHadTowers) mMaxEInHadTowers->Fill (
jet->pt(),
jet->maxEInHadTowers());
118 if (mHadEnergyInHO) mHadEnergyInHO->Fill (
jet->pt(),
jet->hadEnergyInHO());
119 if (mHadEnergyInHB) mHadEnergyInHB->Fill (
jet->pt(),
jet->hadEnergyInHB());
120 if (mHadEnergyInHF) mHadEnergyInHF->Fill (
jet->pt(),
jet->hadEnergyInHF());
121 if (mHadEnergyInHE) mHadEnergyInHE->Fill (
jet->pt(),
jet->hadEnergyInHE());
122 if (mEmEnergyInEB) mEmEnergyInEB->Fill (
jet->pt(),
jet->emEnergyInEB());
123 if (mEmEnergyInEE) mEmEnergyInEE->Fill (
jet->pt(),
jet->emEnergyInEE());
124 if (mEmEnergyInHF) mEmEnergyInHF->Fill (
jet->pt(),
jet->emEnergyInHF());
126 if (mN90Hits) mN90Hits->Fill (
jet->pt(),
jetID->n90Hits());
127 if (mresEMF) mresEMF->Fill(
jet->pt(),
jetID->restrictedEMF());
128 if (mfHPD) mfHPD->Fill(
jet->pt(),
jetID->fHPD());
129 if (mfRBX) mfRBX->Fill(
jet->pt(),
jetID->fRBX());
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
void setBinLabel(int bin, const std::string &label, int axis=1)
set bin label for x, y or z axis (axis=1, 2, 3 respectively)
virtual ~JetPtAnalyzer()
Destructor.
void analyze(const edm::Event &, const edm::EventSetup &, const reco::CaloJetCollection &caloJets)
Get the analysis.
void beginJob(DQMStore *dbe)
Inizialize parameters for histo binning.
JetPtAnalyzer(const edm::ParameterSet &)
Constructor.
void endJob()
Finish up a job.
MonitorElement * book2D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
Book 2D histogram.
void setCurrentFolder(const std::string &fullpath)
std::vector< CaloJet > CaloJetCollection
collection of CaloJet objects