CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
JetValidation Class Reference

#include <JetValidation.h>

Inheritance diagram for JetValidation:
edm::one::EDAnalyzer<> edm::one::EDAnalyzerBase edm::EDConsumerBase

Public Member Functions

 JetValidation (edm::ParameterSet const &cfg)
 
- Public Member Functions inherited from edm::one::EDAnalyzer<>
 EDAnalyzer ()=default
 
 EDAnalyzer (const EDAnalyzer &)=delete
 
SerialTaskQueueglobalLuminosityBlocksQueue () final
 
SerialTaskQueueglobalRunsQueue () final
 
const EDAnalyzeroperator= (const EDAnalyzer &)=delete
 
bool wantsGlobalLuminosityBlocks () const final
 
bool wantsGlobalRuns () const final
 
bool wantsInputProcessBlocks () const final
 
bool wantsProcessBlocks () const final
 
- Public Member Functions inherited from edm::one::EDAnalyzerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzerBase ()
 
ModuleDescription const & moduleDescription () const
 
bool wantsStreamLuminosityBlocks () const
 
bool wantsStreamRuns () const
 
 ~EDAnalyzerBase () override
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
void convertCurrentProcessAlias (std::string const &processName)
 Convert "@currentProcess" in InputTag process names to the actual current process name. More...
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
 EDConsumerBase (EDConsumerBase &&)=default
 
ESProxyIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
std::vector< ESProxyIndex > const & esGetTokenIndicesVector (edm::Transition iTrans) const
 
std::vector< ESRecordIndex > const & esGetTokenRecordIndicesVector (edm::Transition iTrans) const
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFrom (BranchType iType) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::array< std::vector< ModuleDescription const *> *, NumBranchTypes > &modulesAll, std::vector< ModuleProcessName > &modulesInPreviousProcesses, ProductRegistry const &preg, std::map< std::string, ModuleDescription const *> const &labelsToDesc, std::string const &processName) const
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void selectInputProcessBlocks (ProductRegistry const &productRegistry, ProcessBlockHelperBase const &processBlockHelperBase)
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 

Private Member Functions

void analyze (edm::Event const &e, edm::EventSetup const &iSetup) override
 
void beginJob () override
 
void endJob () override
 
void FillHist1D (const TString &histName, const Double_t &x)
 
void FillHist2D (const TString &histName, const Double_t &x, const Double_t &y)
 
void FillHistProfile (const TString &histName, const Double_t &x, const Double_t &y)
 

Private Attributes

std::string calAlgo
 
double dRmatch
 
std::string genAlgo
 
std::string histoFileName
 
std::string jetTracksAssociator
 
TFile * m_file
 
std::map< TString, TH1 * > m_HistNames1D
 
std::map< TString, TH2 * > m_HistNames2D
 
std::map< TString, TProfile * > m_HistNamesProfile
 
bool MCarlo
 
int Njets
 
double PtMin
 

Additional Inherited Members

- Public Types inherited from edm::one::EDAnalyzerBase
typedef EDAnalyzerBase ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from edm::one::EDAnalyzerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
template<BranchType B = InEvent>
EDConsumerBaseAdaptor< Bconsumes (edm::InputTag tag) noexcept
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<Transition Tr = Transition::Event>
constexpr auto esConsumes ()
 
template<Transition Tr = Transition::Event>
auto esConsumes (ESInputTag tag)
 
template<Transition Tr = Transition::Event>
ESGetTokenGeneric esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey)
 Used with EventSetupRecord::doGet. More...
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
void resetItemsToGetFrom (BranchType iType)
 

Detailed Description

Definition at line 17 of file JetValidation.h.

Constructor & Destructor Documentation

◆ JetValidation()

JetValidation::JetValidation ( edm::ParameterSet const &  cfg)

Definition at line 24 of file JetValidation.cc.

References looper::cfg, mix_2012_lumiLevel_15_20_50ns_PoissonOOTPU_cfi::histoFileName, ECF_cff::Njets, and HLT_2023v12_cff::PtMin.

24  {
25  dRmatch = cfg.getParameter<double>("dRmatch");
26  PtMin = cfg.getParameter<double>("PtMin");
27  Njets = cfg.getParameter<int>("Njets");
28  MCarlo = cfg.getParameter<bool>("MCarlo");
29  genAlgo = cfg.getParameter<string>("genAlgo");
30  calAlgo = cfg.getParameter<string>("calAlgo");
31  jetTracksAssociator = cfg.getParameter<string>("jetTracksAssociator");
32  histoFileName = cfg.getParameter<string>("histoFileName");
33 }
std::string histoFileName
Definition: JetValidation.h:38
std::string jetTracksAssociator
Definition: JetValidation.h:41
std::string calAlgo
Definition: JetValidation.h:40
std::string genAlgo
Definition: JetValidation.h:39

Member Function Documentation

◆ analyze()

void JetValidation::analyze ( edm::Event const &  e,
edm::EventSetup const &  iSetup 
)
overrideprivatevirtual

Implements edm::one::EDAnalyzerBase.

Definition at line 82 of file JetValidation.cc.

References gather_cfg::cout, PbPb_ZMuSkimMuonDPG_cff::deltaR, HGC3DClusterGenMatchSelector_cfi::dR, HLT_2023v12_cff::dRmin, MillePedeFileConverter_cfg::e, reco::CaloJet::emEnergyInEB(), reco::CaloJet::emEnergyInEE(), reco::CaloJet::emEnergyInHF(), reco::LeafCandidate::energy(), PVValHelper::eta, reco::LeafCandidate::eta(), edm::EventID::event(), edm::Event::getByLabel(), reco::CaloJet::hadEnergyInHB(), reco::CaloJet::hadEnergyInHE(), reco::CaloJet::hadEnergyInHF(), reco::CaloJet::hadEnergyInHO(), edm::EventBase::id(), HLT_2023v12_cff::jetTracks, EgHLTOffHistBins_cfi::mass, ECF_cff::Njets, BeamSpotPI::nTracks, DiDispStaMuonMonitor_cfi::pt, reco::LeafCandidate::pt(), HLT_2023v12_cff::PtMin, edm::EventID::run(), reco::JetTracksAssociation::tracksNumber(), and reco::JetTracksAssociation::tracksP4().

82  {
83  math::XYZTLorentzVector p4jet[2];
84  int jetInd, jetCounter, nTracks;
85  double dRmin, dR, e, eta, emEB, emEE, emHF, hadHB, hadHE, hadHO, hadHF, pt, phi, pthat, chf;
88  Handle<double> genEventScale;
90  CaloJetCollection::const_iterator i_caljet;
91  GenJetCollection::const_iterator i_genjet;
92  evt.getByLabel(calAlgo, caljets);
93  evt.getByLabel(jetTracksAssociator, jetTracks);
94  jetInd = 0;
95  jetCounter = 0;
96  if (caljets->empty())
97  cout << "WARNING: NO calo jets in event " << evt.id().event() << ", Run " << evt.id().run() << " !!!!" << endl;
98  for (i_caljet = caljets->begin(); i_caljet != caljets->end() && jetInd < Njets; ++i_caljet) {
99  e = i_caljet->energy();
100  pt = i_caljet->pt();
101  phi = i_caljet->phi();
102  eta = i_caljet->eta();
103  emEB = i_caljet->emEnergyInEB();
104  emEE = i_caljet->emEnergyInEE();
105  emHF = i_caljet->emEnergyInHF();
106  hadHB = i_caljet->hadEnergyInHB();
107  hadHE = i_caljet->hadEnergyInHE();
108  hadHO = i_caljet->hadEnergyInHO();
109  hadHF = i_caljet->hadEnergyInHF();
111  chf = (JetTracksAssociation::tracksP4(*jetTracks, *i_caljet)).pt() / pt;
112  if (jetInd < 2)
113  p4jet[jetInd] = i_caljet->p4();
114  if (pt > PtMin) {
115  FillHist1D("ptCalo", pt);
116  FillHist1D("etaCalo", eta);
117  FillHist1D("phiCalo", phi);
118  FillHist1D("emEnergyFraction", i_caljet->emEnergyFraction());
119  FillHist1D("nTracks", nTracks);
120  FillHist1D("chargeFraction", chf);
121  FillHist1D("emEnergyInEB", emEB);
122  FillHist1D("emEnergyInEE", emEE);
123  FillHist1D("emEnergyInHF", emHF);
124  FillHist1D("hadEnergyInHB", hadHB);
125  FillHist1D("hadEnergyInHE", hadHE);
126  FillHist1D("hadEnergyInHF", hadHF);
127  FillHist1D("hadEnergyInHO", hadHO);
128  FillHistProfile("EBfractionVsEta", eta, emEB / e);
129  FillHistProfile("EEfractionVsEta", eta, emEE / e);
130  FillHistProfile("HBfractionVsEta", eta, hadHB / e);
131  FillHistProfile("HOfractionVsEta", eta, hadHO / e);
132  FillHistProfile("HEfractionVsEta", eta, hadHE / e);
133  FillHistProfile("HFfractionVsEta", eta, (hadHF + emHF) / e);
134  FillHistProfile("CaloEnergyVsEta", eta, e);
135  FillHistProfile("emEnergyVsEta", eta, emEB + emEE + emHF);
136  FillHistProfile("hadEnergyVsEta", eta, hadHB + hadHO + hadHE + hadHF);
137  jetCounter++;
138  }
139  jetInd++;
140  }
141  FillHist1D("CaloJetMulti", jetCounter);
142  if (jetInd > 1)
143  FillHist1D("m2jCalo", (p4jet[0] + p4jet[1]).mass());
144  if (MCarlo) {
145  evt.getByLabel(genAlgo, genjets);
146  evt.getByLabel("genEventScale", genEventScale);
147  pthat = *genEventScale;
148  FillHist1D("ptHat", pthat);
149  CaloJet MatchedJet;
150  jetInd = 0;
151  if (genjets->empty())
152  cout << "WARNING: NO gen jets in event " << evt.id().event() << ", Run " << evt.id().run() << " !!!!" << endl;
153  for (i_genjet = genjets->begin(); i_genjet != genjets->end() && jetInd < Njets; ++i_genjet) {
154  if (jetInd < 2)
155  p4jet[jetInd] = i_genjet->p4();
156  FillHist1D("ptGen", i_genjet->pt());
157  FillHist1D("etaGen", i_genjet->eta());
158  FillHist1D("phiGen", i_genjet->phi());
159  FillHistProfile("GenEnergyVsEta", i_genjet->eta(), i_genjet->energy());
160  dRmin = 1000.0;
161  for (i_caljet = caljets->begin(); i_caljet != caljets->end(); ++i_caljet) {
162  dR = deltaR(i_caljet->eta(), i_caljet->phi(), i_genjet->eta(), i_genjet->phi());
163  if (dR < dRmin) {
164  dRmin = dR;
165  MatchedJet = *i_caljet;
166  }
167  }
168  FillHist1D("dR", dRmin);
169  e = MatchedJet.energy();
170  pt = MatchedJet.pt();
171  eta = MatchedJet.eta();
172  emEB = MatchedJet.emEnergyInEB();
173  emEE = MatchedJet.emEnergyInEE();
174  emHF = MatchedJet.emEnergyInHF();
175  hadHB = MatchedJet.hadEnergyInHB();
176  hadHE = MatchedJet.hadEnergyInHE();
177  hadHO = MatchedJet.hadEnergyInHO();
178  hadHF = MatchedJet.hadEnergyInHF();
179  if (dRmin < dRmatch && pt > PtMin) {
180  FillHistProfile("CaloErespVsEta", eta, e / i_genjet->energy());
181  FillHistProfile("emErespVsEta", eta, (emEB + emEE + emHF) / i_genjet->energy());
182  FillHistProfile("hadErespVsEta", eta, (hadHB + hadHO + hadHE + hadHF) / i_genjet->energy());
183  if (fabs(i_genjet->eta()) < 1.)
184  FillHistProfile("respVsPtBarrel", i_genjet->pt(), pt / i_genjet->pt());
185  }
186  jetInd++;
187  }
188  FillHist1D("GenJetMulti", jetInd);
189  if (jetInd > 1)
190  FillHist1D("m2jGen", (p4jet[0] + p4jet[1]).mass());
191  }
192 }
Jets made from CaloTowers.
Definition: CaloJet.h:27
float emEnergyInHF() const
Definition: CaloJet.h:111
double pt() const final
transverse momentum
float emEnergyInEE() const
Definition: CaloJet.h:109
void FillHist1D(const TString &histName, const Double_t &x)
void FillHistProfile(const TString &histName, const Double_t &x, const Double_t &y)
float emEnergyInEB() const
Definition: CaloJet.h:107
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
Definition: LorentzVector.h:29
float hadEnergyInHO() const
Definition: CaloJet.h:101
float hadEnergyInHF() const
Definition: CaloJet.h:105
float hadEnergyInHE() const
Definition: CaloJet.h:103
float hadEnergyInHB() const
Definition: CaloJet.h:99
std::string jetTracksAssociator
Definition: JetValidation.h:41
LorentzVector tracksP4(const Container &, const reco::JetBaseRef)
Get LorentzVector as sum of all tracks associated with jet.
std::string calAlgo
Definition: JetValidation.h:40
std::string genAlgo
Definition: JetValidation.h:39
int tracksNumber(const Container &, const reco::JetBaseRef)
Get number of tracks associated with jet.
double energy() const final
energy
double eta() const final
momentum pseudorapidity

◆ beginJob()

void JetValidation::beginJob ( void  )
overrideprivatevirtual

Reimplemented from edm::one::EDAnalyzerBase.

Definition at line 35 of file JetValidation.cc.

References mix_2012_lumiLevel_15_20_50ns_PoissonOOTPU_cfi::histoFileName, and M_PI.

35  {
36  m_file = new TFile(histoFileName.c_str(), "RECREATE");
37 
38  m_HistNames1D["CaloJetMulti"] = new TH1F("CaloJetMulti", "Multiplicity of CaloJets", 100, 0, 100);
39  m_HistNames1D["ptCalo"] = new TH1F("ptCalo", "p_{T} of CaloJets", 7000, 0, 7000);
40  m_HistNames1D["etaCalo"] = new TH1F("etaCalo", "#eta of CaloJets", 100, -5.0, 5.0);
41  m_HistNames1D["phiCalo"] = new TH1F("phiCalo", "#phi of CaloJets", 72, -M_PI, M_PI);
42  m_HistNames1D["m2jCalo"] = new TH1F("m2jCalo", "Dijet Mass of leading CaloJets", 7000, 0, 14000);
43  m_HistNames1D["nTracks"] = new TH1F("nTracks", "Number of tracks associated with a jet", 100, 0, 100);
44  m_HistNames1D["chargeFraction"] = new TH1F("chargeFraction", "Fraction of charged tracks pt", 500, 0, 5);
45  m_HistNames1D["emEnergyFraction"] = new TH1F("emEnergyFraction", "Jets EM Fraction", 110, 0, 1.1);
46  m_HistNames1D["emEnergyInEB"] = new TH1F("emEnergyInEB", "Jets emEnergyInEB", 7000, 0, 14000);
47  m_HistNames1D["emEnergyInEE"] = new TH1F("emEnergyInEE", "Jets emEnergyInEE", 7000, 0, 14000);
48  m_HistNames1D["emEnergyInHF"] = new TH1F("emEnergyInHF", "Jets emEnergyInHF", 7000, 0, 14000);
49  m_HistNames1D["hadEnergyInHB"] = new TH1F("hadEnergyInHB", "Jets hadEnergyInHB", 7000, 0, 14000);
50  m_HistNames1D["hadEnergyInHE"] = new TH1F("hadEnergyInHE", "Jets hadEnergyInHE", 7000, 0, 14000);
51  m_HistNames1D["hadEnergyInHF"] = new TH1F("hadEnergyInHF", "Jets hadEnergyInHF", 7000, 0, 14000);
52  m_HistNames1D["hadEnergyInHO"] = new TH1F("hadEnergyInHO", "Jets hadEnergyInHO", 7000, 0, 14000);
53  m_HistNamesProfile["EBfractionVsEta"] = new TProfile("EBfractionVsEta", "Jets EBfraction vs #eta", 100, -5.0, 5.0);
54  m_HistNamesProfile["EEfractionVsEta"] = new TProfile("EEfractionVsEta", "Jets EEfraction vs #eta", 100, -5.0, 5.0);
55  m_HistNamesProfile["HBfractionVsEta"] = new TProfile("HBfractionVsEta", "Jets HBfraction vs #eta", 100, -5.0, 5.0);
56  m_HistNamesProfile["HOfractionVsEta"] = new TProfile("HOfractionVsEta", "Jets HOfraction vs #eta", 100, -5.0, 5.0);
57  m_HistNamesProfile["HEfractionVsEta"] = new TProfile("HEfractionVsEta", "Jets HEfraction vs #eta", 100, -5.0, 5.0);
58  m_HistNamesProfile["HFfractionVsEta"] = new TProfile("HFfractionVsEta", "Jets HFfraction vs #eta", 100, -5.0, 5.0);
59  m_HistNamesProfile["CaloEnergyVsEta"] = new TProfile("CaloEnergyVsEta", "CaloJets Energy Vs. Eta", 100, -5.0, 5.0);
60  m_HistNamesProfile["emEnergyVsEta"] = new TProfile("emEnergyVsEta", "Jets EM Energy Vs. Eta", 100, -5.0, 5.0);
61  m_HistNamesProfile["hadEnergyVsEta"] = new TProfile("hadEnergyVsEta", "Jets HAD Energy Vs. Eta", 100, -5.0, 5.0);
62  if (MCarlo) {
63  m_HistNames1D["GenJetMulti"] = new TH1F("GenJetMulti", "Multiplicity of GenJets", 100, 0, 100);
64  m_HistNames1D["ptHat"] = new TH1F("ptHat", "p_{T}hat", 7000, 0, 7000);
65  m_HistNames1D["ptGen"] = new TH1F("ptGen", "p_{T} of GenJets", 7000, 0, 7000);
66  m_HistNames1D["etaGen"] = new TH1F("etaGen", "#eta of GenJets", 100, -5.0, 5.0);
67  m_HistNames1D["phiGen"] = new TH1F("phiGen", "#phi of GenJets", 72, -M_PI, M_PI);
68  m_HistNames1D["m2jGen"] = new TH1F("m2jGen", "Dijet Mass of leading GenJets", 7000, 0, 14000);
69  m_HistNames1D["dR"] = new TH1F("dR", "GenJets dR with matched CaloJet", 200, 0, 1);
70  m_HistNamesProfile["GenEnergyVsEta"] = new TProfile("GenEnergyVsEta", "GenJets Energy Vs. Eta", 100, -5.0, 5.0);
71  m_HistNamesProfile["respVsPtBarrel"] =
72  new TProfile("respVsPtBarrel", "CaloJet Response of GenJets in Barrel", 7000, 0, 7000);
73  m_HistNamesProfile["CaloErespVsEta"] =
74  new TProfile("CaloErespVsEta", "Jets Energy Response Vs. Eta", 100, -5.0, 5.0);
75  m_HistNamesProfile["emErespVsEta"] =
76  new TProfile("emErespVsEta", "Jets EM Energy Response Vs. Eta", 100, -5.0, 5.0);
77  m_HistNamesProfile["hadErespVsEta"] =
78  new TProfile("hadErespVsEta", "Jets HAD Energy Response Vs. Eta", 100, -5.0, 5.0);
79  }
80 }
std::map< TString, TH1 * > m_HistNames1D
Definition: JetValidation.h:29
std::map< TString, TProfile * > m_HistNamesProfile
Definition: JetValidation.h:31
#define M_PI
std::string histoFileName
Definition: JetValidation.h:38
TFile * m_file
Definition: JetValidation.h:32

◆ endJob()

void JetValidation::endJob ( void  )
overrideprivatevirtual

Reimplemented from edm::one::EDAnalyzerBase.

Definition at line 194 of file JetValidation.cc.

194  {
196  if (m_file != nullptr) {
197  m_file->cd();
198  for (std::map<TString, TH1*>::iterator hid = m_HistNames1D.begin(); hid != m_HistNames1D.end(); hid++)
199  hid->second->Write();
200  for (std::map<TString, TH2*>::iterator hid = m_HistNames2D.begin(); hid != m_HistNames2D.end(); hid++)
201  hid->second->Write();
202  for (std::map<TString, TProfile*>::iterator hid = m_HistNamesProfile.begin(); hid != m_HistNamesProfile.end();
203  hid++)
204  hid->second->Write();
205  delete m_file;
206  m_file = nullptr;
207  }
208 }
std::map< TString, TH2 * > m_HistNames2D
Definition: JetValidation.h:30
std::map< TString, TH1 * > m_HistNames1D
Definition: JetValidation.h:29
std::map< TString, TProfile * > m_HistNamesProfile
Definition: JetValidation.h:31
TFile * m_file
Definition: JetValidation.h:32

◆ FillHist1D()

void JetValidation::FillHist1D ( const TString &  histName,
const Double_t &  x 
)
private

Definition at line 210 of file JetValidation.cc.

References gather_cfg::cout.

210  {
211  std::map<TString, TH1*>::iterator hid = m_HistNames1D.find(histName);
212  if (hid == m_HistNames1D.end())
213  std::cout << "%fillHist -- Could not find histogram with name: " << histName << std::endl;
214  else
215  hid->second->Fill(value);
216 }
std::map< TString, TH1 * > m_HistNames1D
Definition: JetValidation.h:29
Definition: value.py:1

◆ FillHist2D()

void JetValidation::FillHist2D ( const TString &  histName,
const Double_t &  x,
const Double_t &  y 
)
private

Definition at line 218 of file JetValidation.cc.

References gather_cfg::cout.

218  {
219  std::map<TString, TH2*>::iterator hid = m_HistNames2D.find(histName);
220  if (hid == m_HistNames2D.end())
221  std::cout << "%fillHist -- Could not find histogram with name: " << histName << std::endl;
222  else
223  hid->second->Fill(valuex, valuey);
224 }
std::map< TString, TH2 * > m_HistNames2D
Definition: JetValidation.h:30

◆ FillHistProfile()

void JetValidation::FillHistProfile ( const TString &  histName,
const Double_t &  x,
const Double_t &  y 
)
private

Definition at line 226 of file JetValidation.cc.

References gather_cfg::cout.

226  {
227  std::map<TString, TProfile*>::iterator hid = m_HistNamesProfile.find(histName);
228  if (hid == m_HistNamesProfile.end())
229  std::cout << "%fillHist -- Could not find histogram with name: " << histName << std::endl;
230  else
231  hid->second->Fill(valuex, valuey);
232 }
std::map< TString, TProfile * > m_HistNamesProfile
Definition: JetValidation.h:31

Member Data Documentation

◆ calAlgo

std::string JetValidation::calAlgo
private

Definition at line 40 of file JetValidation.h.

◆ dRmatch

double JetValidation::dRmatch
private

Definition at line 35 of file JetValidation.h.

◆ genAlgo

std::string JetValidation::genAlgo
private

Definition at line 39 of file JetValidation.h.

◆ histoFileName

std::string JetValidation::histoFileName
private

Definition at line 38 of file JetValidation.h.

◆ jetTracksAssociator

std::string JetValidation::jetTracksAssociator
private

Definition at line 41 of file JetValidation.h.

◆ m_file

TFile* JetValidation::m_file
private

Definition at line 32 of file JetValidation.h.

◆ m_HistNames1D

std::map<TString, TH1*> JetValidation::m_HistNames1D
private

Definition at line 29 of file JetValidation.h.

◆ m_HistNames2D

std::map<TString, TH2*> JetValidation::m_HistNames2D
private

Definition at line 30 of file JetValidation.h.

◆ m_HistNamesProfile

std::map<TString, TProfile*> JetValidation::m_HistNamesProfile
private

Definition at line 31 of file JetValidation.h.

◆ MCarlo

bool JetValidation::MCarlo
private

Definition at line 37 of file JetValidation.h.

◆ Njets

int JetValidation::Njets
private

Definition at line 36 of file JetValidation.h.

◆ PtMin

double JetValidation::PtMin
private

Definition at line 34 of file JetValidation.h.