CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
HigPhotonJetHLTOfflineSource Class Reference
Inheritance diagram for HigPhotonJetHLTOfflineSource:
DQMOneEDAnalyzer<> edm::one::EDProducer< edm::EndRunProducer, edm::one::WatchRuns, edm::Accumulator, Args... > edm::one::EDProducerBase edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper

Public Member Functions

 HigPhotonJetHLTOfflineSource (const edm::ParameterSet &)
 
- Public Member Functions inherited from DQMOneEDAnalyzer<>
void accumulate (edm::Event const &event, edm::EventSetup const &setup) override
 
void beginRun (edm::Run const &run, edm::EventSetup const &setup) final
 
 DQMOneEDAnalyzer ()
 
void endRun (edm::Run const &, edm::EventSetup const &) final
 
void endRunProduce (edm::Run &run, edm::EventSetup const &setup) final
 
virtual bool getCanSaveByLumi ()
 
- Public Member Functions inherited from edm::one::EDProducer< edm::EndRunProducer, edm::one::WatchRuns, edm::Accumulator, Args... >
 EDProducer ()=default
 
SerialTaskQueueglobalLuminosityBlocksQueue () final
 
SerialTaskQueueglobalRunsQueue () final
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginProcessBlocks () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndProcessBlocks () const final
 
bool hasAbilityToProduceInEndRuns () const final
 
bool wantsGlobalLuminosityBlocks () const final
 
bool wantsGlobalRuns () const final
 
bool wantsInputProcessBlocks () const final
 
bool wantsProcessBlocks () const final
 
- Public Member Functions inherited from edm::one::EDProducerBase
 EDProducerBase ()
 
ModuleDescription const & moduleDescription () const
 
bool wantsStreamLuminosityBlocks () const
 
bool wantsStreamRuns () const
 
 ~EDProducerBase () override
 
- Public Member Functions inherited from edm::ProducerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
std::vector< edm::ProductResolverIndex > const & indiciesForPutProducts (BranchType iBranchType) const
 
 ProducerBase ()
 
std::vector< edm::ProductResolverIndex > const & putTokenIndexToProductResolverIndex () const
 
std::vector< bool > const & recordProvenanceList () const
 
void registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &)
 
std::function< void(BranchDescription const &)> registrationCallback () const
 used by the fwk to register list of products More...
 
void resolvePutIndicies (BranchType iBranchType, ModuleToResolverIndicies const &iIndicies, std::string const &moduleLabel)
 
TypeLabelList const & typeLabelList () const
 used by the fwk to register the list of products of this module More...
 
 ~ProducerBase () noexcept(false) 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 &&)=default
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
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::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
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 (const edm::Event &, const edm::EventSetup &) override
 
void bookHistograms (DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
 
void dqmBeginRun (const edm::Run &, const edm::EventSetup &) override
 
void dqmEndRun (const edm::Run &, const edm::EventSetup &) override
 
bool isMonitoredTriggerAccepted (const edm::TriggerNames &, const edm::Handle< edm::TriggerResults > &)
 

Private Attributes

MonitorElementdeletajj_
 
MonitorElementdeletajj_reco_
 
MonitorElementdelphijetmet_
 
MonitorElementdelphijetmet_reco_
 
MonitorElementdelphiphomet_
 
MonitorElementdelphiphomet_reco_
 
std::string dirname_
 
double evtsrun_
 
std::vector< std::string > hltPathsToCheck_
 
std::string hltProcessName_
 
MonitorElementinvmassjj_
 
MonitorElementinvmassjj_reco_
 
MonitorElementnpfjets_
 
MonitorElementnpfjets_reco_
 
MonitorElementnphotons_
 
MonitorElementnphotons_reco_
 
MonitorElementnvertices_
 
MonitorElementnvertices_reco_
 
double pfjetMinPt_
 
edm::EDGetTokenT< reco::PFJetCollectionpfJetsToken_
 
MonitorElementpfmet_
 
MonitorElementpfmet_reco_
 
MonitorElementpfmetphi_
 
MonitorElementpfmetphi_reco_
 
edm::EDGetTokenT< reco::PFMETCollectionpfMetToken_
 
double photonMinPt_
 
MonitorElementphotonpt_
 
MonitorElementphotonpt_reco_
 
MonitorElementphotonrapidity_
 
MonitorElementphotonrapidity_reco_
 
edm::EDGetTokenT< reco::PhotonCollectionphotonsToken_
 
edm::ParameterSet pset_
 
edm::EDGetTokenT< reco::VertexCollectionpvToken_
 
bool triggerAccept_
 
edm::EDGetTokenT< edm::TriggerResultstriggerResultsToken_
 
MonitorElementtriggers_
 
MonitorElementtriggers_reco_
 
MonitorElementtrigvsnvtx_
 
MonitorElementtrigvsnvtx_reco_
 
bool verbose_
 

Additional Inherited Members

- Public Types inherited from DQMOneEDAnalyzer<>
typedef dqm::reco::DQMStore DQMStore
 
typedef dqm::reco::MonitorElement MonitorElement
 
- Public Types inherited from edm::one::EDProducerBase
typedef EDProducerBase ModuleType
 
- Public Types inherited from edm::ProducerBase
using ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex > >
 
typedef ProductRegistryHelper::TypeLabelList TypeLabelList
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from edm::one::EDProducerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 
- Protected Member Functions inherited from edm::ProducerBase
template<class ProductType >
BranchAliasSetterT< ProductType > produces ()
 declare what type of product will make and with which optional label More...
 
template<typename ProductType , BranchType B>
BranchAliasSetterT< ProductType > produces ()
 
template<typename ProductType , Transition B>
BranchAliasSetterT< ProductType > produces ()
 
BranchAliasSetter produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true)
 
template<BranchType B>
BranchAliasSetter produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true)
 
template<Transition B>
BranchAliasSetter produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true)
 
template<typename ProductType , Transition B>
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
template<class ProductType >
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
template<typename ProductType , BranchType B>
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
ProducesCollector producesCollector ()
 
- Protected Member Functions inherited from edm::EDConsumerBase
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
template<BranchType B = InEvent>
EDConsumerBaseAdaptor< B > consumes (edm::InputTag tag) noexcept
 
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<Transition Tr = Transition::Event>
constexpr auto esConsumes () noexcept
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<Transition Tr = Transition::Event>
auto esConsumes (ESInputTag tag) noexcept
 
template<Transition Tr = Transition::Event>
ESGetTokenGeneric esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey)
 Used with EventSetupRecord::doGet. More...
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
- Protected Attributes inherited from DQMOneEDAnalyzer<>
edm::EDPutTokenT< DQMTokenrunToken_
 

Detailed Description

Definition at line 45 of file HigPhotonJetHLTOfflineSource.cc.

Constructor & Destructor Documentation

◆ HigPhotonJetHLTOfflineSource()

HigPhotonJetHLTOfflineSource::HigPhotonJetHLTOfflineSource ( const edm::ParameterSet pset)
explicit

Definition at line 108 of file HigPhotonJetHLTOfflineSource.cc.

108  : pset_(pset) {
109  hltProcessName_ = pset.getParameter<std::string>("hltProcessName");
110  hltPathsToCheck_ = pset.getParameter<std::vector<std::string>>("hltPathsToCheck");
111  verbose_ = pset.getUntrackedParameter<bool>("verbose", false);
112  triggerAccept_ = pset.getUntrackedParameter<bool>("triggerAccept", true);
113  triggerResultsToken_ = consumes<edm::TriggerResults>(pset.getParameter<edm::InputTag>("triggerResultsToken"));
114  dirname_ = pset.getUntrackedParameter<std::string>("dirname", std::string("HLT/Higgs/PhotonJet/"));
115  pvToken_ = consumes<reco::VertexCollection>(pset.getParameter<edm::InputTag>("pvToken"));
116  photonsToken_ = consumes<reco::PhotonCollection>(pset.getParameter<edm::InputTag>("photonsToken"));
117  pfMetToken_ = consumes<reco::PFMETCollection>(pset.getParameter<edm::InputTag>("pfMetToken"));
118  pfJetsToken_ = consumes<reco::PFJetCollection>(pset.getParameter<edm::InputTag>("pfJetsToken"));
119  pfjetMinPt_ = pset.getUntrackedParameter<double>("pfjetMinPt", 0.0);
120  photonMinPt_ = pset.getUntrackedParameter<double>("photonMinPt", 0.0);
121 }

References dirname_, hltPathsToCheck_, hltProcessName_, pfjetMinPt_, pfJetsToken_, pfMetToken_, photonMinPt_, photonsToken_, muonDTDigis_cfi::pset, pvToken_, AlCaHLTBitMon_QueryRunRegistry::string, triggerAccept_, triggerResultsToken_, and verbose_.

Member Function Documentation

◆ analyze()

void HigPhotonJetHLTOfflineSource::analyze ( const edm::Event iEvent,
const edm::EventSetup iSetup 
)
overrideprivatevirtual

Reimplemented from DQMOneEDAnalyzer<>.

Definition at line 184 of file HigPhotonJetHLTOfflineSource.cc.

184  {
185  // Count total number of events in one run
186  evtsrun_++;
187 
190  if (!triggerResults.isValid()) {
191  edm::LogError("HigPhotonJetHLT") << "Missing triggerResults collection" << std::endl;
192  return;
193  }
194 
195  // Check whether contains monitored trigger and accepted
196  const edm::TriggerNames& triggerNames = iEvent.triggerNames(*triggerResults);
198 
199  // if (!triggered) return;
200 
201  // Test scale
202  // if (evtsrun_ > 10) return;
203 
204  // N Vertices
206  iEvent.getByToken(pvToken_, vertices);
207  if (!vertices.isValid())
208  return;
209  if (verbose_)
210  std::cout << "xshi:: N vertices : " << vertices->size() << std::endl;
211 
212  // Set trigger name labels
213  for (size_t i = 0; i < hltPathsToCheck_.size(); i++) {
215  }
216 
217  // Fill trigger info
218  for (unsigned int itrig = 0; itrig < triggerResults->size(); itrig++) {
219  const std::string& triggername = triggerNames.triggerName(itrig);
220  for (size_t i = 0; i < hltPathsToCheck_.size(); i++) {
221  if (triggername.find(hltPathsToCheck_[i]) != std::string::npos) {
223  trigvsnvtx_reco_->Fill(vertices->size(), i);
224  if (triggered)
225  triggers_->Fill(i);
226  if (triggered)
227  trigvsnvtx_->Fill(vertices->size(), i);
228  }
229  }
230  }
231 
232  nvertices_reco_->Fill(vertices->size());
233  if (triggered)
234  nvertices_->Fill(vertices->size());
235 
236  // PF MET
238  iEvent.getByToken(pfMetToken_, pfmets);
239  if (!pfmets.isValid())
240  return;
241  const reco::PFMET pfmet = pfmets->front();
242  pfmet_reco_->Fill(pfmet.et());
243  if (triggered)
244  pfmet_->Fill(pfmet.et());
245  if (verbose_)
246  std::cout << "xshi:: number of pfmets: " << pfmets->size() << std::endl;
247 
248  pfmetphi_reco_->Fill(pfmet.phi());
249  if (triggered)
250  pfmetphi_->Fill(pfmet.phi());
251 
252  // Photons
254  iEvent.getByToken(photonsToken_, photons);
255  if (!photons.isValid())
256  return;
257  int nphotons = 0;
258  for (auto const& phoIter : *photons) {
259  if (phoIter.pt() < photonMinPt_)
260  continue;
261  nphotons++;
262  photonpt_reco_->Fill(phoIter.pt());
263  photonrapidity_reco_->Fill(phoIter.rapidity());
264  if (triggered)
265  photonpt_->Fill(phoIter.pt());
266  if (triggered)
267  photonrapidity_->Fill(phoIter.rapidity());
268  double tmp_delphiphomet = fabs(deltaPhi(phoIter.phi(), pfmet.phi()));
269  delphiphomet_reco_->Fill(tmp_delphiphomet);
270  if (triggered)
271  delphiphomet_->Fill(tmp_delphiphomet);
272  }
274  if (triggered)
276 
277  // PF Jet
279  iEvent.getByToken(pfJetsToken_, pfjets);
280  if (!pfjets.isValid())
281  return;
282  if (verbose_)
283  std::cout << "xshi:: N pfjets : " << pfjets->size() << std::endl;
284 
285  double min_delphijetmet = 6.0;
286  TLorentzVector p4jet1, p4jet2, p4jj;
287  // Two leading jets eta
288  double etajet1(0), etajet2(0);
289  int njet = 0;
290  for (auto const& jetIter : *pfjets) {
291  if (jetIter.pt() < pfjetMinPt_)
292  continue;
293  njet++;
294 
295  double tmp_delphijetmet = fabs(deltaPhi(jetIter.phi(), pfmet.phi()));
296  if (tmp_delphijetmet < min_delphijetmet)
297  min_delphijetmet = tmp_delphijetmet;
298 
299  if (njet == 1) {
300  p4jet1.SetXYZM(jetIter.px(), jetIter.py(), jetIter.pz(), jetIter.mass());
301  etajet1 = jetIter.eta();
302  }
303  if (njet == 2) {
304  p4jet2.SetXYZM(jetIter.px(), jetIter.py(), jetIter.pz(), jetIter.mass());
305  etajet2 = jetIter.eta();
306  }
307  }
309  if (triggered)
310  npfjets_->Fill(njet);
311 
312  delphijetmet_reco_->Fill(min_delphijetmet);
313  if (triggered)
314  delphijetmet_->Fill(min_delphijetmet);
315  p4jj = p4jet1 + p4jet2;
316  double deletajj = etajet1 - etajet2;
317  if (verbose_)
318  std::cout << "xshi:: invmass jj " << p4jj.M() << std::endl;
319 
320  invmassjj_reco_->Fill(p4jj.M());
321  deletajj_reco_->Fill(deletajj);
322  if (triggered)
323  invmassjj_->Fill(p4jj.M());
324  if (triggered)
325  deletajj_->Fill(deletajj);
326 }

References gather_cfg::cout, deletajj_, deletajj_reco_, delphijetmet_, delphijetmet_reco_, delphiphomet_, delphiphomet_reco_, SiPixelRawToDigiRegional_cfi::deltaPhi, reco::LeafCandidate::et(), evtsrun_, dqm::impl::MonitorElement::Fill(), hltPathsToCheck_, mps_fire::i, iEvent, invmassjj_, invmassjj_reco_, isMonitoredTriggerAccepted(), edm::HandleBase::isValid(), njet, npfjets_, npfjets_reco_, HMesonGammaMonitor_cff::nphotons, nphotons_, nphotons_reco_, nvertices_, nvertices_reco_, pfjetMinPt_, pfJetsToken_, pfmet_, pfmet_reco_, pfmetphi_, pfmetphi_reco_, pfMetToken_, reco::LeafCandidate::phi(), photonMinPt_, photonpt_, photonpt_reco_, photonrapidity_, photonrapidity_reco_, BPHMonitor_cfi::photons, photonsToken_, pvToken_, dqm::impl::MonitorElement::setBinLabel(), AlCaHLTBitMon_QueryRunRegistry::string, L1TEGammaOffline_cfi::triggerNames, triggerResults, triggerResultsToken_, triggers_, triggers_reco_, trigvsnvtx_, trigvsnvtx_reco_, verbose_, and pwdgSkimBPark_cfi::vertices.

◆ bookHistograms()

void HigPhotonJetHLTOfflineSource::bookHistograms ( DQMStore::IBooker iBooker,
edm::Run const &  iRun,
edm::EventSetup const &  iSetup 
)
overrideprivatevirtual

Implements DQMOneEDAnalyzer<>.

Definition at line 135 of file HigPhotonJetHLTOfflineSource.cc.

137  {
138  iBooker.setCurrentFolder(dirname_);
139  nvertices_reco_ = iBooker.book1D("nvertices_reco", "Reco: Number of vertices", 100, 0, 100);
140  nvertices_ = iBooker.book1D("nvertices", "Number of vertices", 100, 0, 100);
141  nphotons_reco_ = iBooker.book1D("nphotons_reco", "Reco: Number of photons", 100, 0, 10);
142  nphotons_ = iBooker.book1D("nphotons", "Number of photons", 100, 0, 10);
143  photonpt_reco_ = iBooker.book1D("photonpt_reco", "Reco: Photons pT", 100, 0, 500);
144  photonpt_ = iBooker.book1D("photonpt", "Photons pT", 100, 0, 500);
145  photonrapidity_reco_ = iBooker.book1D("photonrapidity_reco", "Reco: Photons rapidity;y_{#gamma}", 100, -2.5, 2.5);
146  photonrapidity_ = iBooker.book1D("photonrapidity", "Photons rapidity;y_{#gamma}", 100, -2.5, 2.5);
147  pfmet_reco_ = iBooker.book1D("pfmet_reco", "Reco: PF MET", 100, 0, 250);
148  pfmet_ = iBooker.book1D("pfmet", "PF MET", 100, 0, 250);
149  pfmetphi_reco_ = iBooker.book1D("pfmetphi_reco", "Reco: PF MET phi;#phi_{PFMET}", 100, -4, 4);
150  pfmetphi_ = iBooker.book1D("pfmetphi", "PF MET phi;#phi_{PFMET}", 100, -4, 4);
152  iBooker.book1D("delphiphomet_reco", "Reco: #Delta#phi(photon, MET);#Delta#phi(#gamma,MET)", 100, 0, 4);
153  delphiphomet_ = iBooker.book1D("delphiphomet", "#Delta#phi(photon, MET);#Delta#phi(#gamma,MET)", 100, 0, 4);
154  npfjets_reco_ = iBooker.book1D("npfjets_reco", "Reco: Number of PF Jets", 100, 0, 20);
155  npfjets_ = iBooker.book1D("npfjets", "Number of PF Jets", 100, 0, 20);
157  iBooker.book1D("delphijetmet_reco", "Reco: #Delta#phi(PFJet, MET);#Delta#phi(Jet,MET)", 100, 0, 4);
158  delphijetmet_ = iBooker.book1D("delphijetmet", "#Delta#phi(PFJet, MET);#Delta#phi(Jet,MET)", 100, 0, 4);
159  invmassjj_reco_ = iBooker.book1D("invmassjj_reco", "Reco: Inv mass two leading jets;M_{jj}[GeV]", 100, 0, 2000);
160  invmassjj_ = iBooker.book1D("invmassjj", "Inv mass two leading jets;M_{jj}[GeV]", 100, 0, 2000);
161  deletajj_reco_ = iBooker.book1D("deletajj_reco", "Reco: #Delta#eta(jj);|#Delta#eta_{jj}|", 100, 0, 6);
162  deletajj_ = iBooker.book1D("deletajj", "#Delta#eta(jj);|#Delta#eta_{jj}|", 100, 0, 6);
164  iBooker.book1D("triggers_reco", "Reco: Triggers", hltPathsToCheck_.size(), 0, hltPathsToCheck_.size());
165  triggers_ = iBooker.book1D("triggers", "Triggers", hltPathsToCheck_.size(), 0, hltPathsToCheck_.size());
166  trigvsnvtx_reco_ = iBooker.book2D("trigvsnvtx_reco",
167  "Reco: Trigger vs. # vertices;N_{vertices};Trigger",
168  100,
169  0,
170  100,
171  hltPathsToCheck_.size(),
172  0,
173  hltPathsToCheck_.size());
174  trigvsnvtx_ = iBooker.book2D("trigvsnvtx",
175  "Trigger vs. # vertices;N_{vertices};Trigger",
176  100,
177  0,
178  100,
179  hltPathsToCheck_.size(),
180  0,
181  hltPathsToCheck_.size());
182 }

References dqm::implementation::IBooker::book1D(), dqm::implementation::IBooker::book2D(), deletajj_, deletajj_reco_, delphijetmet_, delphijetmet_reco_, delphiphomet_, delphiphomet_reco_, dirname_, hltPathsToCheck_, invmassjj_, invmassjj_reco_, npfjets_, npfjets_reco_, nphotons_, nphotons_reco_, nvertices_, nvertices_reco_, pfmet_, pfmet_reco_, pfmetphi_, pfmetphi_reco_, photonpt_, photonpt_reco_, photonrapidity_, photonrapidity_reco_, dqm::implementation::NavigatorBase::setCurrentFolder(), triggers_, triggers_reco_, trigvsnvtx_, and trigvsnvtx_reco_.

◆ dqmBeginRun()

void HigPhotonJetHLTOfflineSource::dqmBeginRun ( const edm::Run iRun,
const edm::EventSetup iSetup 
)
overrideprivatevirtual

Reimplemented from DQMOneEDAnalyzer<>.

Definition at line 123 of file HigPhotonJetHLTOfflineSource.cc.

124  { // Initialize hltConfig
126  bool changedConfig;
127  if (!hltConfig.init(iRun, iSetup, hltProcessName_, changedConfig)) {
128  edm::LogError("HLTPhotonJetVal") << "Initialization of HLTConfigProvider failed!!";
129  return;
130  }
131 
132  evtsrun_ = 0;
133 }

References evtsrun_, HltComparatorCreateWorkflow::hltConfig, and hltProcessName_.

◆ dqmEndRun()

void HigPhotonJetHLTOfflineSource::dqmEndRun ( const edm::Run iRun,
const edm::EventSetup iSetup 
)
overrideprivatevirtual

Reimplemented from DQMOneEDAnalyzer<>.

Definition at line 328 of file HigPhotonJetHLTOfflineSource.cc.

328  {
329  // Normalize to the total number of events in the run
330  TH2F* h = trigvsnvtx_->getTH2F();
331  double integral = h->Integral();
332  double norm = (integral > 0.) ? evtsrun_ * hltPathsToCheck_.size() / integral : 1.;
333  h->Scale(norm);
334  if (verbose_) {
335  std::cout << "xshi:: endRun total number of events: " << evtsrun_ << ", integral = " << h->Integral()
336  << ", norm = " << norm << std::endl;
337  }
338 }

References gather_cfg::cout, evtsrun_, dqm::impl::MonitorElement::getTH2F(), hltPathsToCheck_, funct::integral(), trigvsnvtx_, and verbose_.

◆ isMonitoredTriggerAccepted()

bool HigPhotonJetHLTOfflineSource::isMonitoredTriggerAccepted ( const edm::TriggerNames triggerNames,
const edm::Handle< edm::TriggerResults > &  triggerResults 
)
private

Definition at line 340 of file HigPhotonJetHLTOfflineSource.cc.

341  {
342  for (unsigned int itrig = 0; itrig < triggerResults->size(); itrig++) {
343  // Only consider the triggered case.
344  if (triggerAccept_ && ((*triggerResults)[itrig].accept() != 1))
345  continue;
346  const std::string& triggername = triggerNames.triggerName(itrig);
347  for (auto const& i : hltPathsToCheck_) {
348  if (triggername.find(i) != std::string::npos) {
349  return true;
350  }
351  }
352  }
353 
354  return false;
355 }

References accept(), hltPathsToCheck_, mps_fire::i, AlCaHLTBitMon_QueryRunRegistry::string, triggerAccept_, L1TEGammaOffline_cfi::triggerNames, and triggerResults.

Referenced by analyze().

Member Data Documentation

◆ deletajj_

MonitorElement* HigPhotonJetHLTOfflineSource::deletajj_
private

Definition at line 97 of file HigPhotonJetHLTOfflineSource.cc.

Referenced by analyze(), and bookHistograms().

◆ deletajj_reco_

MonitorElement* HigPhotonJetHLTOfflineSource::deletajj_reco_
private

Definition at line 96 of file HigPhotonJetHLTOfflineSource.cc.

Referenced by analyze(), and bookHistograms().

◆ delphijetmet_

MonitorElement* HigPhotonJetHLTOfflineSource::delphijetmet_
private

Definition at line 93 of file HigPhotonJetHLTOfflineSource.cc.

Referenced by analyze(), and bookHistograms().

◆ delphijetmet_reco_

MonitorElement* HigPhotonJetHLTOfflineSource::delphijetmet_reco_
private

Definition at line 92 of file HigPhotonJetHLTOfflineSource.cc.

Referenced by analyze(), and bookHistograms().

◆ delphiphomet_

MonitorElement* HigPhotonJetHLTOfflineSource::delphiphomet_
private

Definition at line 91 of file HigPhotonJetHLTOfflineSource.cc.

Referenced by analyze(), and bookHistograms().

◆ delphiphomet_reco_

MonitorElement* HigPhotonJetHLTOfflineSource::delphiphomet_reco_
private

Definition at line 90 of file HigPhotonJetHLTOfflineSource.cc.

Referenced by analyze(), and bookHistograms().

◆ dirname_

std::string HigPhotonJetHLTOfflineSource::dirname_
private

Definition at line 61 of file HigPhotonJetHLTOfflineSource.cc.

Referenced by bookHistograms(), and HigPhotonJetHLTOfflineSource().

◆ evtsrun_

double HigPhotonJetHLTOfflineSource::evtsrun_
private

Definition at line 103 of file HigPhotonJetHLTOfflineSource.cc.

Referenced by analyze(), dqmBeginRun(), and dqmEndRun().

◆ hltPathsToCheck_

std::vector<std::string> HigPhotonJetHLTOfflineSource::hltPathsToCheck_
private

◆ hltProcessName_

std::string HigPhotonJetHLTOfflineSource::hltProcessName_
private

Definition at line 59 of file HigPhotonJetHLTOfflineSource.cc.

Referenced by dqmBeginRun(), and HigPhotonJetHLTOfflineSource().

◆ invmassjj_

MonitorElement* HigPhotonJetHLTOfflineSource::invmassjj_
private

Definition at line 95 of file HigPhotonJetHLTOfflineSource.cc.

Referenced by analyze(), and bookHistograms().

◆ invmassjj_reco_

MonitorElement* HigPhotonJetHLTOfflineSource::invmassjj_reco_
private

Definition at line 94 of file HigPhotonJetHLTOfflineSource.cc.

Referenced by analyze(), and bookHistograms().

◆ npfjets_

MonitorElement* HigPhotonJetHLTOfflineSource::npfjets_
private

Definition at line 89 of file HigPhotonJetHLTOfflineSource.cc.

Referenced by analyze(), and bookHistograms().

◆ npfjets_reco_

MonitorElement* HigPhotonJetHLTOfflineSource::npfjets_reco_
private

Definition at line 88 of file HigPhotonJetHLTOfflineSource.cc.

Referenced by analyze(), and bookHistograms().

◆ nphotons_

MonitorElement* HigPhotonJetHLTOfflineSource::nphotons_
private

Definition at line 79 of file HigPhotonJetHLTOfflineSource.cc.

Referenced by analyze(), and bookHistograms().

◆ nphotons_reco_

MonitorElement* HigPhotonJetHLTOfflineSource::nphotons_reco_
private

Definition at line 78 of file HigPhotonJetHLTOfflineSource.cc.

Referenced by analyze(), and bookHistograms().

◆ nvertices_

MonitorElement* HigPhotonJetHLTOfflineSource::nvertices_
private

Definition at line 77 of file HigPhotonJetHLTOfflineSource.cc.

Referenced by analyze(), and bookHistograms().

◆ nvertices_reco_

MonitorElement* HigPhotonJetHLTOfflineSource::nvertices_reco_
private

Definition at line 76 of file HigPhotonJetHLTOfflineSource.cc.

Referenced by analyze(), and bookHistograms().

◆ pfjetMinPt_

double HigPhotonJetHLTOfflineSource::pfjetMinPt_
private

Definition at line 71 of file HigPhotonJetHLTOfflineSource.cc.

Referenced by analyze(), and HigPhotonJetHLTOfflineSource().

◆ pfJetsToken_

edm::EDGetTokenT<reco::PFJetCollection> HigPhotonJetHLTOfflineSource::pfJetsToken_
private

Definition at line 69 of file HigPhotonJetHLTOfflineSource.cc.

Referenced by analyze(), and HigPhotonJetHLTOfflineSource().

◆ pfmet_

MonitorElement* HigPhotonJetHLTOfflineSource::pfmet_
private

Definition at line 85 of file HigPhotonJetHLTOfflineSource.cc.

Referenced by analyze(), and bookHistograms().

◆ pfmet_reco_

MonitorElement* HigPhotonJetHLTOfflineSource::pfmet_reco_
private

Definition at line 84 of file HigPhotonJetHLTOfflineSource.cc.

Referenced by analyze(), and bookHistograms().

◆ pfmetphi_

MonitorElement* HigPhotonJetHLTOfflineSource::pfmetphi_
private

Definition at line 87 of file HigPhotonJetHLTOfflineSource.cc.

Referenced by analyze(), and bookHistograms().

◆ pfmetphi_reco_

MonitorElement* HigPhotonJetHLTOfflineSource::pfmetphi_reco_
private

Definition at line 86 of file HigPhotonJetHLTOfflineSource.cc.

Referenced by analyze(), and bookHistograms().

◆ pfMetToken_

edm::EDGetTokenT<reco::PFMETCollection> HigPhotonJetHLTOfflineSource::pfMetToken_
private

Definition at line 68 of file HigPhotonJetHLTOfflineSource.cc.

Referenced by analyze(), and HigPhotonJetHLTOfflineSource().

◆ photonMinPt_

double HigPhotonJetHLTOfflineSource::photonMinPt_
private

Definition at line 72 of file HigPhotonJetHLTOfflineSource.cc.

Referenced by analyze(), and HigPhotonJetHLTOfflineSource().

◆ photonpt_

MonitorElement* HigPhotonJetHLTOfflineSource::photonpt_
private

Definition at line 81 of file HigPhotonJetHLTOfflineSource.cc.

Referenced by analyze(), and bookHistograms().

◆ photonpt_reco_

MonitorElement* HigPhotonJetHLTOfflineSource::photonpt_reco_
private

Definition at line 80 of file HigPhotonJetHLTOfflineSource.cc.

Referenced by analyze(), and bookHistograms().

◆ photonrapidity_

MonitorElement* HigPhotonJetHLTOfflineSource::photonrapidity_
private

Definition at line 83 of file HigPhotonJetHLTOfflineSource.cc.

Referenced by analyze(), and bookHistograms().

◆ photonrapidity_reco_

MonitorElement* HigPhotonJetHLTOfflineSource::photonrapidity_reco_
private

Definition at line 82 of file HigPhotonJetHLTOfflineSource.cc.

Referenced by analyze(), and bookHistograms().

◆ photonsToken_

edm::EDGetTokenT<reco::PhotonCollection> HigPhotonJetHLTOfflineSource::photonsToken_
private

Definition at line 67 of file HigPhotonJetHLTOfflineSource.cc.

Referenced by analyze(), and HigPhotonJetHLTOfflineSource().

◆ pset_

edm::ParameterSet HigPhotonJetHLTOfflineSource::pset_
private

Definition at line 58 of file HigPhotonJetHLTOfflineSource.cc.

◆ pvToken_

edm::EDGetTokenT<reco::VertexCollection> HigPhotonJetHLTOfflineSource::pvToken_
private

Definition at line 66 of file HigPhotonJetHLTOfflineSource.cc.

Referenced by analyze(), and HigPhotonJetHLTOfflineSource().

◆ triggerAccept_

bool HigPhotonJetHLTOfflineSource::triggerAccept_
private

◆ triggerResultsToken_

edm::EDGetTokenT<edm::TriggerResults> HigPhotonJetHLTOfflineSource::triggerResultsToken_
private

Definition at line 65 of file HigPhotonJetHLTOfflineSource.cc.

Referenced by analyze(), and HigPhotonJetHLTOfflineSource().

◆ triggers_

MonitorElement* HigPhotonJetHLTOfflineSource::triggers_
private

Definition at line 99 of file HigPhotonJetHLTOfflineSource.cc.

Referenced by analyze(), and bookHistograms().

◆ triggers_reco_

MonitorElement* HigPhotonJetHLTOfflineSource::triggers_reco_
private

Definition at line 98 of file HigPhotonJetHLTOfflineSource.cc.

Referenced by analyze(), and bookHistograms().

◆ trigvsnvtx_

MonitorElement* HigPhotonJetHLTOfflineSource::trigvsnvtx_
private

Definition at line 101 of file HigPhotonJetHLTOfflineSource.cc.

Referenced by analyze(), bookHistograms(), and dqmEndRun().

◆ trigvsnvtx_reco_

MonitorElement* HigPhotonJetHLTOfflineSource::trigvsnvtx_reco_
private

Definition at line 100 of file HigPhotonJetHLTOfflineSource.cc.

Referenced by analyze(), and bookHistograms().

◆ verbose_

bool HigPhotonJetHLTOfflineSource::verbose_
private
HigPhotonJetHLTOfflineSource::trigvsnvtx_
MonitorElement * trigvsnvtx_
Definition: HigPhotonJetHLTOfflineSource.cc:101
mps_fire.i
i
Definition: mps_fire.py:428
HigPhotonJetHLTOfflineSource::nphotons_reco_
MonitorElement * nphotons_reco_
Definition: HigPhotonJetHLTOfflineSource.cc:78
HigPhotonJetHLTOfflineSource::pfJetsToken_
edm::EDGetTokenT< reco::PFJetCollection > pfJetsToken_
Definition: HigPhotonJetHLTOfflineSource.cc:69
HigPhotonJetHLTOfflineSource::deletajj_reco_
MonitorElement * deletajj_reco_
Definition: HigPhotonJetHLTOfflineSource.cc:96
HigPhotonJetHLTOfflineSource::triggerResultsToken_
edm::EDGetTokenT< edm::TriggerResults > triggerResultsToken_
Definition: HigPhotonJetHLTOfflineSource.cc:65
HigPhotonJetHLTOfflineSource::verbose_
bool verbose_
Definition: HigPhotonJetHLTOfflineSource.cc:62
HigPhotonJetHLTOfflineSource::photonpt_
MonitorElement * photonpt_
Definition: HigPhotonJetHLTOfflineSource.cc:81
gather_cfg.cout
cout
Definition: gather_cfg.py:144
HigPhotonJetHLTOfflineSource::pfmetphi_reco_
MonitorElement * pfmetphi_reco_
Definition: HigPhotonJetHLTOfflineSource.cc:86
triggerResults
static const std::string triggerResults
Definition: EdmProvDump.cc:45
dqm::implementation::NavigatorBase::setCurrentFolder
virtual void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:32
HigPhotonJetHLTOfflineSource::pvToken_
edm::EDGetTokenT< reco::VertexCollection > pvToken_
Definition: HigPhotonJetHLTOfflineSource.cc:66
HigPhotonJetHLTOfflineSource::nvertices_reco_
MonitorElement * nvertices_reco_
Definition: HigPhotonJetHLTOfflineSource.cc:76
edm::Handle< edm::TriggerResults >
HigPhotonJetHLTOfflineSource::dirname_
std::string dirname_
Definition: HigPhotonJetHLTOfflineSource.cc:61
HigPhotonJetHLTOfflineSource::pfmetphi_
MonitorElement * pfmetphi_
Definition: HigPhotonJetHLTOfflineSource.cc:87
HigPhotonJetHLTOfflineSource::triggerAccept_
bool triggerAccept_
Definition: HigPhotonJetHLTOfflineSource.cc:63
HMesonGammaMonitor_cff.nphotons
nphotons
Definition: HMesonGammaMonitor_cff.py:12
accept
bool accept(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
Definition: TopDQMHelpers.h:30
HigPhotonJetHLTOfflineSource::triggers_reco_
MonitorElement * triggers_reco_
Definition: HigPhotonJetHLTOfflineSource.cc:98
dqm::impl::MonitorElement::getTH2F
virtual TH2F * getTH2F()
Definition: MonitorElement.cc:992
njet
int njet
Definition: HydjetWrapper.h:89
HigPhotonJetHLTOfflineSource::hltProcessName_
std::string hltProcessName_
Definition: HigPhotonJetHLTOfflineSource.cc:59
HigPhotonJetHLTOfflineSource::nvertices_
MonitorElement * nvertices_
Definition: HigPhotonJetHLTOfflineSource.cc:77
SiPixelRawToDigiRegional_cfi.deltaPhi
deltaPhi
Definition: SiPixelRawToDigiRegional_cfi.py:9
L1TEGammaOffline_cfi.triggerNames
triggerNames
Definition: L1TEGammaOffline_cfi.py:40
funct::integral
Integral< F, X >::type integral(const F &f)
Definition: Integral.h:70
HigPhotonJetHLTOfflineSource::isMonitoredTriggerAccepted
bool isMonitoredTriggerAccepted(const edm::TriggerNames &, const edm::Handle< edm::TriggerResults > &)
Definition: HigPhotonJetHLTOfflineSource.cc:340
dqm::impl::MonitorElement::Fill
void Fill(long long x)
Definition: MonitorElement.h:290
HigPhotonJetHLTOfflineSource::photonsToken_
edm::EDGetTokenT< reco::PhotonCollection > photonsToken_
Definition: HigPhotonJetHLTOfflineSource.cc:67
HigPhotonJetHLTOfflineSource::photonMinPt_
double photonMinPt_
Definition: HigPhotonJetHLTOfflineSource.cc:72
HigPhotonJetHLTOfflineSource::evtsrun_
double evtsrun_
Definition: HigPhotonJetHLTOfflineSource.cc:103
h
HigPhotonJetHLTOfflineSource::pfmet_
MonitorElement * pfmet_
Definition: HigPhotonJetHLTOfflineSource.cc:85
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
HigPhotonJetHLTOfflineSource::delphiphomet_
MonitorElement * delphiphomet_
Definition: HigPhotonJetHLTOfflineSource.cc:91
reco::PFMET
Definition: PFMET.h:18
HigPhotonJetHLTOfflineSource::pfmet_reco_
MonitorElement * pfmet_reco_
Definition: HigPhotonJetHLTOfflineSource.cc:84
HigPhotonJetHLTOfflineSource::invmassjj_reco_
MonitorElement * invmassjj_reco_
Definition: HigPhotonJetHLTOfflineSource.cc:94
HigPhotonJetHLTOfflineSource::triggers_
MonitorElement * triggers_
Definition: HigPhotonJetHLTOfflineSource.cc:99
HigPhotonJetHLTOfflineSource::npfjets_reco_
MonitorElement * npfjets_reco_
Definition: HigPhotonJetHLTOfflineSource.cc:88
iEvent
int iEvent
Definition: GenABIO.cc:224
dqm::impl::MonitorElement::setBinLabel
virtual 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)
Definition: MonitorElement.cc:771
HigPhotonJetHLTOfflineSource::pset_
edm::ParameterSet pset_
Definition: HigPhotonJetHLTOfflineSource.cc:58
HigPhotonJetHLTOfflineSource::delphijetmet_reco_
MonitorElement * delphijetmet_reco_
Definition: HigPhotonJetHLTOfflineSource.cc:92
HigPhotonJetHLTOfflineSource::nphotons_
MonitorElement * nphotons_
Definition: HigPhotonJetHLTOfflineSource.cc:79
BPHMonitor_cfi.photons
photons
Definition: BPHMonitor_cfi.py:91
edm::LogError
Log< level::Error, false > LogError
Definition: MessageLogger.h:123
HigPhotonJetHLTOfflineSource::delphiphomet_reco_
MonitorElement * delphiphomet_reco_
Definition: HigPhotonJetHLTOfflineSource.cc:90
HigPhotonJetHLTOfflineSource::delphijetmet_
MonitorElement * delphijetmet_
Definition: HigPhotonJetHLTOfflineSource.cc:93
HigPhotonJetHLTOfflineSource::trigvsnvtx_reco_
MonitorElement * trigvsnvtx_reco_
Definition: HigPhotonJetHLTOfflineSource.cc:100
reco::LeafCandidate::et
double et() const final
transverse energy
Definition: LeafCandidate.h:127
HLTConfigProvider
Definition: HLTConfigProvider.h:29
HigPhotonJetHLTOfflineSource::pfjetMinPt_
double pfjetMinPt_
Definition: HigPhotonJetHLTOfflineSource.cc:71
reco::LeafCandidate::phi
double phi() const final
momentum azimuthal angle
Definition: LeafCandidate.h:148
HigPhotonJetHLTOfflineSource::photonrapidity_reco_
MonitorElement * photonrapidity_reco_
Definition: HigPhotonJetHLTOfflineSource.cc:82
dqm::implementation::IBooker::book2D
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, FUNC onbooking=NOOP())
Definition: DQMStore.h:177
edm::TriggerNames
Definition: TriggerNames.h:55
HigPhotonJetHLTOfflineSource::photonpt_reco_
MonitorElement * photonpt_reco_
Definition: HigPhotonJetHLTOfflineSource.cc:80
HigPhotonJetHLTOfflineSource::photonrapidity_
MonitorElement * photonrapidity_
Definition: HigPhotonJetHLTOfflineSource.cc:83
HltComparatorCreateWorkflow.hltConfig
hltConfig
Definition: HltComparatorCreateWorkflow.py:161
HigPhotonJetHLTOfflineSource::invmassjj_
MonitorElement * invmassjj_
Definition: HigPhotonJetHLTOfflineSource.cc:95
HigPhotonJetHLTOfflineSource::deletajj_
MonitorElement * deletajj_
Definition: HigPhotonJetHLTOfflineSource.cc:97
HigPhotonJetHLTOfflineSource::hltPathsToCheck_
std::vector< std::string > hltPathsToCheck_
Definition: HigPhotonJetHLTOfflineSource.cc:60
edm::HandleBase::isValid
bool isValid() const
Definition: HandleBase.h:70
HigPhotonJetHLTOfflineSource::npfjets_
MonitorElement * npfjets_
Definition: HigPhotonJetHLTOfflineSource.cc:89
HigPhotonJetHLTOfflineSource::pfMetToken_
edm::EDGetTokenT< reco::PFMETCollection > pfMetToken_
Definition: HigPhotonJetHLTOfflineSource.cc:68
edm::InputTag
Definition: InputTag.h:15
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
dqm::implementation::IBooker::book1D
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
Definition: DQMStore.h:98
pwdgSkimBPark_cfi.vertices
vertices
Definition: pwdgSkimBPark_cfi.py:7