JPT jet analyzer class definition. More...
#include <JPTJetAnalyzer.h>
Classes | |
struct | HistogramConfig |
Helper class to hold the configuration for a histogram. More... | |
struct | TrackHistograms |
Helper class for grouping histograms belowing to a set of tracks. More... | |
Public Member Functions | |
void | analyze (const edm::Event &event, const edm::EventSetup &eventSetup, const reco::JPTJet &jptJet, double &pt1, double &pt2, double &pt3, const int numPV) |
Do the analysis. More... | |
void | analyze (const edm::Event &event, const edm::EventSetup &eventSetup, const reco::JPTJetCollection &jptJets, const int numPV) |
void | beginJob (DQMStore *dbe) |
Inizialize parameters for histo binning. More... | |
virtual void | endJob () |
Finish up a job. More... | |
JPTJetAnalyzer (const edm::ParameterSet &config) | |
Constructor. More... | |
virtual | ~JPTJetAnalyzer () |
Destructor. More... | |
Public Member Functions inherited from JetAnalyzerBase | |
void | analyze (const edm::Event &, const edm::EventSetup &, reco::CaloJet &caloJet) |
Get the analysis of the muon properties. More... | |
JetAnalyzerBase () | |
Constructor. More... | |
virtual | ~JetAnalyzerBase () |
Destructor. More... | |
Private Member Functions | |
MonitorElement * | book2DHistogram (const std::string &name, const std::string &title, const std::string &xAxisTitle, const std::string &yAxisTitle, DQMStore *dqm) |
MonitorElement * | bookHistogram (const std::string &name, const std::string &title, const std::string &xAxisTitle, DQMStore *dqm) |
Book histograms and profiles. More... | |
void | bookHistograms (DQMStore *dqm) |
Book all histograms. More... | |
MonitorElement * | bookProfile (const std::string &name, const std::string &title, const std::string &xAxisTitle, const std::string &yAxisTitle, DQMStore *dqm) |
void | bookTrackHistograms (TrackHistograms *histos, const std::string &tag, const std::string &titleTag, MonitorElement *trackDirectionJetDRHisto, MonitorElement *trackImpactPointJetDRHisto, DQMStore *dqm) |
Book the histograms for a track. More... | |
void | fillHistogram (MonitorElement *histogram, const double value) |
Fill histogram or profile if it has been booked. More... | |
void | fillHistogram (MonitorElement *histogram, const double valueX, const double valueY) |
void | fillSiStripHitSoN (const TrackingRecHit &hit) |
void | fillSiStripSoNForTracks (const reco::TrackRefVector &tracks) |
Fill the SoN hisotgram for hits on tracks. More... | |
void | fillTrackHistograms (TrackHistograms &allTracksHistos, TrackHistograms &inCaloInVertexHistos, TrackHistograms &inCaloOutVertexHistos, TrackHistograms &outCaloInVertexHistos, const reco::TrackRefVector &inVertexInCalo, const reco::TrackRefVector &outVertexInCalo, const reco::TrackRefVector &inVertexOutCalo, const reco::Jet &rawJet) |
Fill all track histograms. More... | |
void | fillTrackHistograms (TrackHistograms &histos, const reco::TrackRefVector &tracks, const reco::Jet &rawJet) |
void | getConfigForHistogram (const std::string &configName, const edm::ParameterSet &psetContainingConfigPSet, std::ostringstream *pDebugStream=NULL) |
Load the config for a hitogram. More... | |
void | getConfigForTrackHistograms (const std::string &tag, const edm::ParameterSet &psetContainingConfigPSet, std::ostringstream *pDebugStream=NULL) |
Load the configs for histograms associated with a set of tracks. More... | |
Static Private Member Functions | |
static double | findPtFractionInCone (const reco::TrackRefVector &inConeTracks, const reco::TrackRefVector &outOfConeTracks) |
Utility function to calculate the fraction of track Pt in cone. More... | |
Static Private Attributes | |
static const char * | messageLoggerCatregory = "JetPlusTrackDQM" |
String constant for message logger category. More... | |
JPT jet analyzer class definition.
DQM monitoring source for JPT Jets
Definition at line 47 of file JPTJetAnalyzer.h.
JPTJetAnalyzer::JPTJetAnalyzer | ( | const edm::ParameterSet & | config | ) |
Constructor.
Definition at line 79 of file JPTJetAnalyzer.cc.
References dqmStoreFileName_, getConfigForHistogram(), getConfigForTrackHistograms(), edm::ParameterSet::getUntrackedParameter(), histogramPath_, LogTrace, messageLoggerCatregory, NULL, verbose_, and writeDQMStore_.
|
virtual |
void JPTJetAnalyzer::analyze | ( | const edm::Event & | event, |
const edm::EventSetup & | eventSetup, | ||
const reco::JPTJet & | jptJet, | ||
double & | pt1, | ||
double & | pt2, | ||
double & | pt3, | ||
const int | numPV | ||
) |
Do the analysis.
Definition at line 192 of file JPTJetAnalyzer.cc.
References allElectronHistograms_, allMuonHistograms_, allPionHistograms_, reco::JPTJet::chargedMultiplicity(), correctedPtMin_, reco::LeafCandidate::energy(), reco::LeafCandidate::et(), reco::LeafCandidate::eta(), fHPDMax_, fillHistogram(), fillTrackHistograms(), reco::JPTJet::getCaloJetRef(), reco::JPTJet::getElecsInVertexInCalo(), reco::JPTJet::getElecsInVertexOutCalo(), reco::JPTJet::getElecsOutVertexInCalo(), reco::JPTJet::getMuonsInVertexInCalo(), reco::JPTJet::getMuonsInVertexOutCalo(), reco::JPTJet::getMuonsOutVertexInCalo(), reco::JPTJet::getPionsInVertexInCalo(), reco::JPTJet::getPionsInVertexOutCalo(), reco::JPTJet::getPionsOutVertexInCalo(), inCaloInVertexElectronHistograms_, inCaloInVertexMuonHistograms_, inCaloInVertexPionHistograms_, inCaloOutVertexElectronHistograms_, inCaloOutVertexMuonHistograms_, inCaloOutVertexPionHistograms_, JetE_, JetEt_, JetEta_, jetID_, JetP_, JetPhi_, JetPhiVsEta_, JetPt_, JetPx_, JetPy_, JetPz_, messageLoggerCatregory, n90HitsMin_, NTracksPerJetHisto_, NTracksPerJetVsJetEtaHisto_, NTracksPerJetVsJetEtHisto_, outCaloInVertexElectronHistograms_, outCaloInVertexMuonHistograms_, outCaloInVertexPionHistograms_, reco::LeafCandidate::p(), reco::LeafCandidate::phi(), reco::LeafCandidate::pt(), reco::LeafCandidate::px(), reco::LeafCandidate::py(), reco::LeafCandidate::pz(), resEMFMin_, sOverNCalculator_, and trackPropagator_.
Referenced by analyze().
void JPTJetAnalyzer::analyze | ( | const edm::Event & | event, |
const edm::EventSetup & | eventSetup, | ||
const reco::JPTJetCollection & | jptJets, | ||
const int | numPV | ||
) |
Definition at line 175 of file JPTJetAnalyzer.cc.
References analyze(), fillHistogram(), JetPt1_, JetPt2_, and JetPt3_.
|
virtual |
Inizialize parameters for histo binning.
Implements JetAnalyzerBase.
Definition at line 166 of file JPTJetAnalyzer.cc.
References bookHistograms(), dqm_, histogramPath_, and DQMStore::setCurrentFolder().
|
private |
Definition at line 380 of file JPTJetAnalyzer.cc.
References DQMStore::book2D(), JPTJetAnalyzer::HistogramConfig::enabled, interpolateCardsSimple::histo, histogramConfig_, JPTJetAnalyzer::HistogramConfig::max, JPTJetAnalyzer::HistogramConfig::maxY, messageLoggerCatregory, JPTJetAnalyzer::HistogramConfig::min, JPTJetAnalyzer::HistogramConfig::minY, JPTJetAnalyzer::HistogramConfig::nBins, JPTJetAnalyzer::HistogramConfig::nBinsY, NULL, and MonitorElement::setAxisTitle().
Referenced by bookHistograms().
|
private |
Book histograms and profiles.
Definition at line 363 of file JPTJetAnalyzer.cc.
References DQMStore::book1D(), JPTJetAnalyzer::HistogramConfig::enabled, interpolateCardsSimple::histo, histogramConfig_, JPTJetAnalyzer::HistogramConfig::max, messageLoggerCatregory, JPTJetAnalyzer::HistogramConfig::min, JPTJetAnalyzer::HistogramConfig::nBins, NULL, and MonitorElement::setAxisTitle().
Referenced by bookHistograms(), and bookTrackHistograms().
|
private |
Book all histograms.
Definition at line 419 of file JPTJetAnalyzer.cc.
References allElectronHistograms_, allMuonHistograms_, allPionHistograms_, book2DHistogram(), bookHistogram(), bookProfile(), bookTrackHistograms(), inCaloInVertexElectronHistograms_, inCaloInVertexMuonHistograms_, inCaloInVertexPionHistograms_, inCaloOutVertexElectronHistograms_, inCaloOutVertexMuonHistograms_, inCaloOutVertexPionHistograms_, InCaloTrackDirectionJetDRHisto_, InVertexTrackImpactPointJetDRHisto_, JetE_, JetEt_, JetEta_, JetP_, JetPhi_, JetPhiVsEta_, JetPt1_, JetPt2_, JetPt3_, JetPt_, JetPx_, JetPy_, JetPz_, NTracksPerJetHisto_, NTracksPerJetVsJetEtaHisto_, NTracksPerJetVsJetEtHisto_, NULL, outCaloInVertexElectronHistograms_, outCaloInVertexMuonHistograms_, outCaloInVertexPionHistograms_, OutCaloTrackDirectionJetDRHisto_, and OutVertexTrackImpactPointJetDRHisto_.
Referenced by beginJob().
|
private |
Definition at line 399 of file JPTJetAnalyzer.cc.
References DQMStore::bookProfile(), JPTJetAnalyzer::HistogramConfig::enabled, interpolateCardsSimple::histo, histogramConfig_, JPTJetAnalyzer::HistogramConfig::max, messageLoggerCatregory, JPTJetAnalyzer::HistogramConfig::min, JPTJetAnalyzer::HistogramConfig::nBins, NULL, and MonitorElement::setAxisTitle().
Referenced by bookHistograms(), and bookTrackHistograms().
|
private |
Book the histograms for a track.
Definition at line 505 of file JPTJetAnalyzer.cc.
References bookHistogram(), bookProfile(), JPTJetAnalyzer::TrackHistograms::etaHisto, JPTJetAnalyzer::TrackHistograms::nTracksHisto, JPTJetAnalyzer::TrackHistograms::phiHisto, JPTJetAnalyzer::TrackHistograms::ptHisto, JPTJetAnalyzer::TrackHistograms::ptVsEtaHisto, JPTJetAnalyzer::TrackHistograms::trackDirectionJetDRHisto, and JPTJetAnalyzer::TrackHistograms::trackImpactPointJetDRHisto.
Referenced by bookHistograms().
|
virtual |
Finish up a job.
Definition at line 301 of file JPTJetAnalyzer.cc.
References dqm_, dqmStoreFileName_, DQMStore::save(), and writeDQMStore_.
|
inlineprivate |
Fill histogram or profile if it has been booked.
Definition at line 192 of file JPTJetAnalyzer.h.
References MonitorElement::Fill().
Referenced by analyze(), and fillTrackHistograms().
|
inlineprivate |
|
private |
Definition at line 581 of file JPTJetAnalyzer.cc.
References TrackingRecHit::geographicalId(), SiStripDetId::TEC, SiStripDetId::TIB, SiStripDetId::TID, SiStripDetId::TOB, and DetId::Tracker.
Referenced by fillSiStripSoNForTracks().
|
private |
Fill the SoN hisotgram for hits on tracks.
Definition at line 570 of file JPTJetAnalyzer.cc.
References edm::RefVector< C, T, F >::begin(), edm::RefVector< C, T, F >::end(), and fillSiStripHitSoN().
Referenced by fillTrackHistograms().
|
private |
Fill all track histograms.
Definition at line 521 of file JPTJetAnalyzer.cc.
References fillHistogram(), fillSiStripSoNForTracks(), JPTJetAnalyzer::TrackHistograms::nTracksHisto, and edm::RefVector< C, T, F >::size().
Referenced by analyze().
|
private |
Definition at line 543 of file JPTJetAnalyzer.cc.
References edm::RefVector< C, T, F >::begin(), deltaR(), edm::RefVector< C, T, F >::end(), reco::TrackBase::eta(), eta(), JPTJetAnalyzer::TrackHistograms::etaHisto, fillHistogram(), phi, reco::TrackBase::phi(), JPTJetAnalyzer::TrackHistograms::phiHisto, reco::TrackBase::pt(), JPTJetAnalyzer::TrackHistograms::ptHisto, JPTJetAnalyzer::TrackHistograms::ptVsEtaHisto, JPTJetAnalyzer::TrackHistograms::trackDirectionJetDRHisto, JPTJetAnalyzer::TrackHistograms::trackImpactPointJetDRHisto, and trackPropagator_.
|
staticprivate |
Utility function to calculate the fraction of track Pt in cone.
Definition at line 640 of file JPTJetAnalyzer.cc.
References edm::RefVector< C, T, F >::begin(), and edm::RefVector< C, T, F >::end().
|
private |
Load the config for a hitogram.
Definition at line 306 of file JPTJetAnalyzer.cc.
References edm::ParameterSet::exists(), edm::ParameterSet::getParameter(), histogramConfig_, max(), cmsRun_displayProdMFGeom_cfg::maxY, messageLoggerCatregory, min, and cmsRun_displayProdMFGeom_cfg::minY.
Referenced by getConfigForTrackHistograms(), and JPTJetAnalyzer().
|
private |
Load the configs for histograms associated with a set of tracks.
Definition at line 348 of file JPTJetAnalyzer.cc.
References getConfigForHistogram().
Referenced by JPTJetAnalyzer().
|
private |
Definition at line 185 of file JPTJetAnalyzer.h.
Referenced by analyze(), and bookHistograms().
|
private |
Definition at line 184 of file JPTJetAnalyzer.h.
Referenced by analyze(), and bookHistograms().
|
private |
Definition at line 183 of file JPTJetAnalyzer.h.
Referenced by analyze(), and bookHistograms().
|
private |
Definition at line 158 of file JPTJetAnalyzer.h.
Referenced by analyze().
|
private |
DQMStore. Used to write out to file.
Definition at line 189 of file JPTJetAnalyzer.h.
Referenced by beginJob(), and endJob().
|
private |
DQM store file name.
Definition at line 152 of file JPTJetAnalyzer.h.
Referenced by endJob(), and JPTJetAnalyzer().
|
private |
Definition at line 156 of file JPTJetAnalyzer.h.
Referenced by analyze().
|
private |
Histogram configuration (nBins etc)
Definition at line 147 of file JPTJetAnalyzer.h.
Referenced by book2DHistogram(), bookHistogram(), bookProfile(), and getConfigForHistogram().
|
private |
Path of directory used to store histograms in DQMStore.
Definition at line 143 of file JPTJetAnalyzer.h.
Referenced by beginJob(), and JPTJetAnalyzer().
|
private |
Definition at line 185 of file JPTJetAnalyzer.h.
Referenced by analyze(), and bookHistograms().
|
private |
Definition at line 184 of file JPTJetAnalyzer.h.
Referenced by analyze(), and bookHistograms().
|
private |
Definition at line 183 of file JPTJetAnalyzer.h.
Referenced by analyze(), and bookHistograms().
|
private |
Definition at line 185 of file JPTJetAnalyzer.h.
Referenced by analyze(), and bookHistograms().
|
private |
Definition at line 184 of file JPTJetAnalyzer.h.
Referenced by analyze(), and bookHistograms().
|
private |
Definition at line 183 of file JPTJetAnalyzer.h.
Referenced by analyze(), and bookHistograms().
|
private |
Definition at line 176 of file JPTJetAnalyzer.h.
Referenced by bookHistograms().
|
private |
Definition at line 177 of file JPTJetAnalyzer.h.
Referenced by bookHistograms().
|
private |
Definition at line 172 of file JPTJetAnalyzer.h.
|
private |
Definition at line 172 of file JPTJetAnalyzer.h.
|
private |
Definition at line 168 of file JPTJetAnalyzer.h.
Referenced by analyze(), and bookHistograms().
|
private |
Definition at line 168 of file JPTJetAnalyzer.h.
Referenced by analyze(), and bookHistograms().
|
private |
Definition at line 172 of file JPTJetAnalyzer.h.
Referenced by analyze(), and bookHistograms().
|
private |
Helper object to calculate jet ID parameters.
Definition at line 165 of file JPTJetAnalyzer.h.
Referenced by analyze().
|
private |
Definition at line 168 of file JPTJetAnalyzer.h.
Referenced by analyze(), and bookHistograms().
|
private |
Definition at line 172 of file JPTJetAnalyzer.h.
Referenced by analyze(), and bookHistograms().
|
private |
Definition at line 172 of file JPTJetAnalyzer.h.
Referenced by analyze(), and bookHistograms().
|
private |
Definition at line 170 of file JPTJetAnalyzer.h.
Referenced by analyze(), and bookHistograms().
|
private |
Definition at line 170 of file JPTJetAnalyzer.h.
Referenced by analyze(), and bookHistograms().
|
private |
Definition at line 170 of file JPTJetAnalyzer.h.
Referenced by analyze(), and bookHistograms().
|
private |
Definition at line 168 of file JPTJetAnalyzer.h.
Referenced by analyze(), and bookHistograms().
|
private |
Definition at line 171 of file JPTJetAnalyzer.h.
Referenced by analyze(), and bookHistograms().
|
private |
Definition at line 171 of file JPTJetAnalyzer.h.
Referenced by analyze(), and bookHistograms().
|
private |
Definition at line 171 of file JPTJetAnalyzer.h.
Referenced by analyze(), and bookHistograms().
|
staticprivate |
String constant for message logger category.
Definition at line 139 of file JPTJetAnalyzer.h.
Referenced by analyze(), book2DHistogram(), bookHistogram(), bookProfile(), getConfigForHistogram(), and JPTJetAnalyzer().
|
private |
|
private |
Definition at line 178 of file JPTJetAnalyzer.h.
Referenced by analyze(), and bookHistograms().
|
private |
Definition at line 178 of file JPTJetAnalyzer.h.
Referenced by analyze(), and bookHistograms().
|
private |
Definition at line 178 of file JPTJetAnalyzer.h.
Referenced by analyze(), and bookHistograms().
|
private |
Definition at line 185 of file JPTJetAnalyzer.h.
Referenced by analyze(), and bookHistograms().
|
private |
Definition at line 184 of file JPTJetAnalyzer.h.
Referenced by analyze(), and bookHistograms().
|
private |
Definition at line 183 of file JPTJetAnalyzer.h.
Referenced by analyze(), and bookHistograms().
|
private |
Definition at line 176 of file JPTJetAnalyzer.h.
Referenced by bookHistograms().
|
private |
Definition at line 177 of file JPTJetAnalyzer.h.
Referenced by bookHistograms().
|
private |
Definition at line 157 of file JPTJetAnalyzer.h.
Referenced by analyze().
|
private |
Helper object to calculate strip SoN for tracks.
Definition at line 163 of file JPTJetAnalyzer.h.
Referenced by analyze().
|
private |
Helper object to propagate tracks to the calo surface.
Definition at line 161 of file JPTJetAnalyzer.h.
Referenced by analyze(), and fillTrackHistograms().
|
private |
Create verbose debug messages.
Definition at line 145 of file JPTJetAnalyzer.h.
Referenced by JPTJetAnalyzer().
|
private |
Write DQM store to a file?
Definition at line 150 of file JPTJetAnalyzer.h.
Referenced by endJob(), and JPTJetAnalyzer().