CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Attributes
HotlineDQM Class Reference

#include <HotlineDQM.h>

Inheritance diagram for HotlineDQM:
DQMEDAnalyzer edm::one::EDProducer< edm::EndRunProducer, edm::one::WatchRuns, edm::EndLuminosityBlockProducer, edm::one::WatchLuminosityBlocks, edm::Accumulator > edm::one::EDProducerBase edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper

Public Member Functions

 HotlineDQM (const edm::ParameterSet &ps)
 
 ~HotlineDQM () override
 
- Public Member Functions inherited from DQMEDAnalyzer
void accumulate (edm::Event const &event, edm::EventSetup const &setup) final
 
void beginLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) final
 
void beginRun (edm::Run const &run, edm::EventSetup const &setup) final
 
virtual void dqmBeginLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &)
 
virtual void dqmBeginRun (edm::Run const &, edm::EventSetup const &)
 
 DQMEDAnalyzer ()
 
virtual void dqmEndLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &)
 
virtual void dqmEndRun (edm::Run const &, edm::EventSetup const &)
 
void endLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) final
 
void endLuminosityBlockProduce (edm::LuminosityBlock &lumi, edm::EventSetup const &setup) final
 
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::EndLuminosityBlockProducer, edm::one::WatchLuminosityBlocks, edm::Accumulator >
 EDProducer ()=default
 
SerialTaskQueueglobalLuminosityBlocksQueue () final
 
SerialTaskQueueglobalRunsQueue () final
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndRuns () const final
 
bool wantsGlobalLuminosityBlocks () const final
 
bool wantsGlobalRuns () 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
 
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)
 
 ~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 const &)=delete
 
 EDConsumerBase (EDConsumerBase &&)=default
 
ESProxyIndex const * esGetTokenIndices (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
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
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)
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &descriptions)
 
- 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

void analyze (edm::Event const &e, edm::EventSetup const &eSetup) override
 
void bookHistograms (DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
 
- Protected Member Functions inherited from edm::ProducerBase
ProducesCollector producesCollector ()
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
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<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)
 

Private Attributes

MonitorElementh_HT
 
MonitorElementh_MetPt
 
MonitorElementh_MuPt
 
MonitorElementh_OnlineHT
 
MonitorElementh_OnlineMetPt
 
MonitorElementh_OnlineMuPt
 
MonitorElementh_OnlinePFMetPt
 
MonitorElementh_OnlinePhotonPt
 
MonitorElementh_PFMetPt
 
MonitorElementh_PhotonPt
 
edm::EDGetTokenT< reco::CaloJetCollectiontheCaloJetCollection_
 
edm::EDGetTokenT< reco::CaloMETCollectiontheMETCollection_
 
edm::EDGetTokenT< reco::MuonCollectiontheMuonCollection_
 
edm::EDGetTokenT< reco::PFMETCollectionthePfMETCollection_
 
edm::EDGetTokenT< reco::PhotonCollectionthePhotonCollection_
 
edm::EDGetTokenT< trigger::TriggerEventtheTrigSummary_
 
edm::InputTag triggerFilter_
 
std::string triggerPath_
 
edm::EDGetTokenT< edm::TriggerResultstriggerResults_
 
bool useHT
 
bool useMet
 
bool useMuons
 
bool usePFMet
 
bool usePhotons
 

Additional Inherited Members

- Public Types inherited from DQMEDAnalyzer
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
 
- Protected Attributes inherited from DQMEDAnalyzer
edm::EDPutTokenT< DQMTokenlumiToken_
 
edm::EDPutTokenT< DQMTokenrunToken_
 

Detailed Description

Definition at line 38 of file HotlineDQM.h.

Constructor & Destructor Documentation

HotlineDQM::HotlineDQM ( const edm::ParameterSet ps)

Definition at line 8 of file HotlineDQM.cc.

References edm::ParameterSet::getParameter(), AlCaHLTBitMon_QueryRunRegistry::string, theCaloJetCollection_, theMETCollection_, theMuonCollection_, thePfMETCollection_, thePhotonCollection_, theTrigSummary_, triggerFilter_, triggerPath_, triggerResults_, useHT, useMet, useMuons, usePFMet, and usePhotons.

8  {
9  edm::LogInfo("HotlineDQM") << "Constructor HotlineDQM::HotlineDQM " << std::endl;
10  // Get parameters from configuration file
11  theMuonCollection_ = consumes<reco::MuonCollection>(ps.getParameter<edm::InputTag>("muonCollection"));
12  thePfMETCollection_ = consumes<reco::PFMETCollection>(ps.getParameter<edm::InputTag>("pfMetCollection"));
13  theMETCollection_ = consumes<reco::CaloMETCollection>(ps.getParameter<edm::InputTag>("caloMetCollection"));
14  theCaloJetCollection_ = consumes<reco::CaloJetCollection>(ps.getParameter<edm::InputTag>("caloJetCollection"));
15  thePhotonCollection_ = consumes<reco::PhotonCollection>(ps.getParameter<edm::InputTag>("photonCollection"));
16  theTrigSummary_ = consumes<trigger::TriggerEvent>(ps.getParameter<edm::InputTag>("trigSummary"));
17  triggerResults_ = consumes<edm::TriggerResults>(ps.getParameter<edm::InputTag>("triggerResults"));
18  triggerPath_ = ps.getParameter<std::string>("triggerPath");
19  triggerFilter_ = ps.getParameter<edm::InputTag>("triggerFilter");
20  useMuons = ps.getParameter<bool>("useMuons");
21  useMet = ps.getParameter<bool>("useMet");
22  usePFMet = ps.getParameter<bool>("usePFMet");
23  useHT = ps.getParameter<bool>("useHT");
24  usePhotons = ps.getParameter<bool>("usePhotons");
25 }
T getParameter(std::string const &) const
edm::EDGetTokenT< reco::PhotonCollection > thePhotonCollection_
Definition: HotlineDQM.h:55
bool usePhotons
Definition: HotlineDQM.h:62
edm::EDGetTokenT< reco::MuonCollection > theMuonCollection_
Definition: HotlineDQM.h:51
edm::EDGetTokenT< reco::CaloJetCollection > theCaloJetCollection_
Definition: HotlineDQM.h:54
std::string triggerPath_
Definition: HotlineDQM.h:59
edm::EDGetTokenT< edm::TriggerResults > triggerResults_
Definition: HotlineDQM.h:56
edm::EDGetTokenT< reco::PFMETCollection > thePfMETCollection_
Definition: HotlineDQM.h:52
bool useMuons
Definition: HotlineDQM.h:62
edm::InputTag triggerFilter_
Definition: HotlineDQM.h:60
edm::EDGetTokenT< trigger::TriggerEvent > theTrigSummary_
Definition: HotlineDQM.h:57
edm::EDGetTokenT< reco::CaloMETCollection > theMETCollection_
Definition: HotlineDQM.h:53
bool useHT
Definition: HotlineDQM.h:62
bool useMet
Definition: HotlineDQM.h:62
bool usePFMet
Definition: HotlineDQM.h:62
HotlineDQM::~HotlineDQM ( )
override

Definition at line 27 of file HotlineDQM.cc.

27 { edm::LogInfo("HotlineDQM") << "Destructor HotlineDQM::~HotlineDQM " << std::endl; }

Member Function Documentation

void HotlineDQM::analyze ( edm::Event const &  e,
edm::EventSetup const &  eSetup 
)
overrideprotectedvirtual

Reimplemented from DQMEDAnalyzer.

Definition at line 56 of file HotlineDQM.cc.

References edm::HLTGlobalStatus::accept(), pdwgLeptonRecoSkim_cfi::caloJetCollection, ewkDQM_cfi::caloMETCollection, dqm::impl::MonitorElement::Fill(), trigger::TriggerEvent::filterIndex(), trigger::TriggerEvent::filterKeys(), edm::Event::getByToken(), trigger::TriggerEvent::getObjects(), h_HT, h_MetPt, h_MuPt, h_OnlineHT, h_OnlineMetPt, h_OnlineMuPt, h_OnlinePFMetPt, h_OnlinePhotonPt, h_PFMetPt, h_PhotonPt, HLTBitAnalyser_cfi::hltresults, trigger::TriggerObject::id(), edm::HandleBase::isValid(), crabWrapper::key, relativeConstraints::keys, BTaggingMonitor_cfi::met, amptDefaultParameters_cff::mu, RecoPFMET_cff::pfMet, B2GDQM_cfi::pfMETCollection, trigger::TriggerObject::pt(), edm::TriggerNames::size(), trigger::TriggerEvent::sizeFilters(), theCaloJetCollection_, theMETCollection_, theMuonCollection_, thePfMETCollection_, thePhotonCollection_, theTrigSummary_, triggerFilter_, edm::TriggerNames::triggerName(), edm::Event::triggerNames(), triggerMatchMonitor_cfi::triggerObjects, triggerPath_, triggerResults_, HLTMuonOfflineAnalyzer_cfi::triggerSummary, trigNames, useHT, useMet, useMuons, usePFMet, usePhotons, and edm::HLTGlobalStatus::wasrun().

56  {
57  edm::LogInfo("HotlineDQM") << "HotlineDQM::analyze" << std::endl;
58 
59  //-------------------------------
60  //--- MET
61  //-------------------------------
63  e.getByToken(thePfMETCollection_, pfMETCollection);
64  if (!pfMETCollection.isValid()) {
65  edm::LogError("HotlineDQM") << "invalid collection: PFMET"
66  << "\n";
67  return;
68  }
70  e.getByToken(theMETCollection_, caloMETCollection);
71  if (!caloMETCollection.isValid()) {
72  edm::LogError("HotlineDQM") << "invalid collection: CaloMET"
73  << "\n";
74  return;
75  }
76 
77  //-------------------------------
78  //--- Jets
79  //-------------------------------
81  e.getByToken(theCaloJetCollection_, caloJetCollection);
82  if (!caloJetCollection.isValid()) {
83  edm::LogError("HotlineDQM") << "invalid collection: CaloJets"
84  << "\n";
85  return;
86  }
87 
88  //-------------------------------
89  //--- Muon
90  //-------------------------------
92  e.getByToken(theMuonCollection_, MuonCollection);
93  if (!MuonCollection.isValid()) {
94  edm::LogError("HotlineDQM") << "invalid collection: Muons "
95  << "\n";
96  return;
97  }
98 
99  //-------------------------------
100  //--- Photon
101  //-------------------------------
103  e.getByToken(thePhotonCollection_, PhotonCollection);
104  if (!PhotonCollection.isValid()) {
105  edm::LogError("HotlineDQM") << "invalid collection: Photons "
106  << "\n";
107  return;
108  }
109 
110  //-------------------------------
111  //--- Trigger
112  //-------------------------------
114  e.getByToken(triggerResults_, hltresults);
115  if (!hltresults.isValid()) {
116  edm::LogError("HotlineDQM") << "invalid collection: TriggerResults"
117  << "\n";
118  return;
119  }
121  e.getByToken(theTrigSummary_, triggerSummary);
122  if (!triggerSummary.isValid()) {
123  edm::LogError("HotlineDQM") << "invalid collection: TriggerSummary"
124  << "\n";
125  return;
126  }
127 
128  bool hasFired = false;
129  const edm::TriggerNames& trigNames = e.triggerNames(*hltresults);
130  unsigned int numTriggers = trigNames.size();
131  for (unsigned int hltIndex = 0; hltIndex < numTriggers; ++hltIndex) {
132  if (trigNames.triggerName(hltIndex).find(triggerPath_) != std::string::npos && hltresults->wasrun(hltIndex) &&
133  hltresults->accept(hltIndex)) {
134  hasFired = true;
135  }
136  }
137 
138  //get online objects
139  float ptMuon = -1, ptPhoton = -1, met = -1, pfMet = -1, ht = 0;
140  size_t filterIndex = triggerSummary->filterIndex(triggerFilter_);
142  if (!(filterIndex >= triggerSummary->sizeFilters())) {
143  const trigger::Keys& keys = triggerSummary->filterKeys(filterIndex);
144  for (unsigned short key : keys) {
145  trigger::TriggerObject foundObject = triggerObjects[key];
146  if (useMuons && fabs(foundObject.id()) == 13) { //muon
147  if (foundObject.pt() > ptMuon)
148  ptMuon = foundObject.pt();
149  } else if (usePhotons && fabs(foundObject.id()) == 0) { //photon
150  if (foundObject.pt() > ptPhoton)
151  ptPhoton = foundObject.pt();
152  } else if (useMet && fabs(foundObject.id()) == 0) { //MET
153  met = foundObject.pt();
154  } else if (usePFMet && fabs(foundObject.id()) == 0) { //PFMET
155  pfMet = foundObject.pt();
156  } else if (useHT && fabs(foundObject.id()) == 89) { //HT
157  ht = foundObject.pt();
158  }
159  }
160  }
161 
162  if (hasFired) {
163  //fill appropriate online histogram
164  if (useMuons)
165  h_OnlineMuPt->Fill(ptMuon);
166  if (usePhotons)
167  h_OnlinePhotonPt->Fill(ptPhoton);
168  if (useMet)
170  if (usePFMet)
172  if (useHT)
173  h_OnlineHT->Fill(ht);
174 
175  //fill muon pt histogram
176  if (!MuonCollection->empty()) {
177  float maxMuPt = -1.0;
178  for (auto& mu : *MuonCollection) {
179  if (mu.pt() > maxMuPt)
180  maxMuPt = mu.pt();
181  }
182  h_MuPt->Fill(maxMuPt);
183  }
184 
185  //fill photon pt histogram
186  if (!PhotonCollection->empty()) {
187  float maxPhoPt = -1.0;
188  for (auto& pho : *PhotonCollection) {
189  if (pho.pt() > maxPhoPt)
190  maxPhoPt = pho.pt();
191  }
192  h_PhotonPt->Fill(maxPhoPt);
193  }
194 
195  //fill HT histogram
196  float caloHT = 0.0;
197  for (auto const& i_calojet : *caloJetCollection) {
198  if (i_calojet.pt() < 40)
199  continue;
200  if (fabs(i_calojet.eta()) > 3.0)
201  continue;
202  caloHT += i_calojet.pt();
203  }
204  h_HT->Fill(caloHT);
205 
206  //fill CaloMET histogram
207  h_MetPt->Fill(caloMETCollection->front().et());
208 
209  //fill PFMET histogram
210  h_PFMetPt->Fill(pfMETCollection->front().et());
211  }
212 }
edm::EDGetTokenT< reco::PhotonCollection > thePhotonCollection_
Definition: HotlineDQM.h:55
bool wasrun() const
Was at least one path run?
bool usePhotons
Definition: HotlineDQM.h:62
MonitorElement * h_PhotonPt
Definition: HotlineDQM.h:66
edm::EDGetTokenT< reco::MuonCollection > theMuonCollection_
Definition: HotlineDQM.h:51
int id() const
getters
Definition: TriggerObject.h:51
trigger::size_type sizeFilters() const
Definition: TriggerEvent.h:146
edm::EDGetTokenT< reco::CaloJetCollection > theCaloJetCollection_
Definition: HotlineDQM.h:54
bool accept() const
Has at least one path accepted the event?
const Keys & filterKeys(trigger::size_type index) const
Definition: TriggerEvent.h:118
trigger::size_type filterIndex(const edm::InputTag &filterTag) const
find index of filter in data-member vector from filter tag
Definition: TriggerEvent.h:132
MonitorElement * h_MuPt
Definition: HotlineDQM.h:65
Strings::size_type size() const
Definition: TriggerNames.cc:31
MonitorElement * h_OnlinePhotonPt
Definition: HotlineDQM.h:72
std::string triggerPath_
Definition: HotlineDQM.h:59
std::vector< Muon > MuonCollection
collection of Muon objects
Definition: MuonFwd.h:9
void Fill(long long x)
Single trigger physics object (e.g., an isolated muon)
Definition: TriggerObject.h:21
edm::EDGetTokenT< edm::TriggerResults > triggerResults_
Definition: HotlineDQM.h:56
MonitorElement * h_OnlineMuPt
Definition: HotlineDQM.h:71
MonitorElement * h_OnlineHT
Definition: HotlineDQM.h:73
const TriggerObjectCollection & getObjects() const
Definition: TriggerEvent.h:101
MonitorElement * h_MetPt
Definition: HotlineDQM.h:68
edm::EDGetTokenT< reco::PFMETCollection > thePfMETCollection_
Definition: HotlineDQM.h:52
bool useMuons
Definition: HotlineDQM.h:62
bool isValid() const
Definition: HandleBase.h:70
MonitorElement * h_OnlineMetPt
Definition: HotlineDQM.h:74
edm::InputTag triggerFilter_
Definition: HotlineDQM.h:60
std::vector< TriggerObject > TriggerObjectCollection
collection of trigger physics objects (e.g., all isolated muons)
Definition: TriggerObject.h:75
MonitorElement * h_OnlinePFMetPt
Definition: HotlineDQM.h:75
static const char *const trigNames[]
Definition: EcalDumpRaw.cc:57
edm::EDGetTokenT< trigger::TriggerEvent > theTrigSummary_
Definition: HotlineDQM.h:57
std::string const & triggerName(unsigned int index) const
Definition: TriggerNames.cc:22
std::vector< size_type > Keys
std::vector< Photon > PhotonCollection
collectin of Photon objects
Definition: PhotonFwd.h:9
edm::EDGetTokenT< reco::CaloMETCollection > theMETCollection_
Definition: HotlineDQM.h:53
bool useHT
Definition: HotlineDQM.h:62
MonitorElement * h_HT
Definition: HotlineDQM.h:67
bool useMet
Definition: HotlineDQM.h:62
MonitorElement * h_PFMetPt
Definition: HotlineDQM.h:69
bool usePFMet
Definition: HotlineDQM.h:62
void HotlineDQM::bookHistograms ( DQMStore::IBooker ibooker_,
edm::Run const &  ,
edm::EventSetup const &   
)
overrideprotectedvirtual

Implements DQMEDAnalyzer.

Definition at line 29 of file HotlineDQM.cc.

References dqm::dqmstoreimpl::DQMStore::IBooker::book1D(), dqm::dqmstoreimpl::DQMStore::IBooker::cd(), h_HT, h_MetPt, h_MuPt, h_OnlineHT, h_OnlineMetPt, h_OnlineMuPt, h_OnlinePFMetPt, h_OnlinePhotonPt, h_PFMetPt, h_PhotonPt, dqm::dqmstoreimpl::DQMStore::IBooker::setCurrentFolder(), triggerPath_, useHT, useMet, useMuons, usePFMet, and usePhotons.

29  {
30  edm::LogInfo("HotlineDQM") << "HotlineDQM::bookHistograms" << std::endl;
31 
32  ibooker_.cd();
33  ibooker_.setCurrentFolder("HLT/Hotline/" + triggerPath_);
34 
35  //online quantities
36  h_MuPt = ibooker_.book1D("MuPt", "Muon Pt; GeV", 20, 0.0, 2000.0);
37  h_PhotonPt = ibooker_.book1D("PhotonPt", "Photon Pt; GeV", 20, 0.0, 4000.0);
38  h_HT = ibooker_.book1D("HT", "HT; GeV", 20, 0.0, 6000.0);
39  h_MetPt = ibooker_.book1D("MetPt", "Calo MET; GeV", 20, 0.0, 2000);
40  h_PFMetPt = ibooker_.book1D("PFMetPt", "PF MET; GeV", 20, 0.0, 2000);
41 
42  if (useMuons)
43  h_OnlineMuPt = ibooker_.book1D("OnlineMuPt", "Online Muon Pt; GeV", 20, 0.0, 2000.0);
44  if (usePhotons)
45  h_OnlinePhotonPt = ibooker_.book1D("OnlinePhotonPt", "Online Photon Pt; GeV", 20, 0.0, 4000.0);
46  if (useHT)
47  h_OnlineHT = ibooker_.book1D("OnlineHT", "Online HT; GeV", 20, 0.0, 6000.0);
48  if (useMet)
49  h_OnlineMetPt = ibooker_.book1D("OnlineMetPt", "Online Calo MET; GeV", 20, 0.0, 2000);
50  if (usePFMet)
51  h_OnlinePFMetPt = ibooker_.book1D("OnlinePFMetPt", "Online PF MET; GeV", 20, 0.0, 2000);
52 
53  ibooker_.cd();
54 }
bool usePhotons
Definition: HotlineDQM.h:62
MonitorElement * h_PhotonPt
Definition: HotlineDQM.h:66
MonitorElement * h_MuPt
Definition: HotlineDQM.h:65
MonitorElement * h_OnlinePhotonPt
Definition: HotlineDQM.h:72
std::string triggerPath_
Definition: HotlineDQM.h:59
MonitorElement * h_OnlineMuPt
Definition: HotlineDQM.h:71
MonitorElement * h_OnlineHT
Definition: HotlineDQM.h:73
MonitorElement * h_MetPt
Definition: HotlineDQM.h:68
bool useMuons
Definition: HotlineDQM.h:62
MonitorElement * h_OnlineMetPt
Definition: HotlineDQM.h:74
MonitorElement * h_OnlinePFMetPt
Definition: HotlineDQM.h:75
bool useHT
Definition: HotlineDQM.h:62
MonitorElement * h_HT
Definition: HotlineDQM.h:67
bool useMet
Definition: HotlineDQM.h:62
MonitorElement * h_PFMetPt
Definition: HotlineDQM.h:69
bool usePFMet
Definition: HotlineDQM.h:62
void HotlineDQM::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Definition at line 214 of file HotlineDQM.cc.

References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::add(), DEFINE_FWK_MODULE, HLT_2018_cff::InputTag, and AlCaHLTBitMon_QueryRunRegistry::string.

214  {
216  desc.add<edm::InputTag>("photonCollection", edm::InputTag("photons"));
217  desc.add<edm::InputTag>("muonCollection", edm::InputTag("muons"));
218  desc.add<edm::InputTag>("caloJetCollection", edm::InputTag("ak4CaloJets"));
219  desc.add<edm::InputTag>("pfMetCollection", edm::InputTag("pfMet"));
220  desc.add<edm::InputTag>("caloMetCollection", edm::InputTag("caloMet"));
221  desc.add<edm::InputTag>("triggerResults", edm::InputTag("TriggerResults", "", "HLT"));
222  desc.add<edm::InputTag>("trigSummary", edm::InputTag("hltTriggerSummaryAOD"));
223  desc.add<std::string>("triggerPath", "HLT_HT2000_v")->setComment("trigger path name");
224  desc.add<edm::InputTag>("triggerFilter", edm::InputTag("hltHt2000", "", "HLT"))
225  ->setComment("name of the last filter in the path");
226  desc.add<bool>("useMuons", false);
227  desc.add<bool>("usePhotons", false);
228  desc.add<bool>("useMet", false);
229  desc.add<bool>("usePFMet", false);
230  desc.add<bool>("useHT", false);
231  descriptions.add("HotlineDQM", desc);
232 }
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void add(std::string const &label, ParameterSetDescription const &psetDescription)

Member Data Documentation

MonitorElement* HotlineDQM::h_HT
private

Definition at line 67 of file HotlineDQM.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* HotlineDQM::h_MetPt
private

Definition at line 68 of file HotlineDQM.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* HotlineDQM::h_MuPt
private

Definition at line 65 of file HotlineDQM.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* HotlineDQM::h_OnlineHT
private

Definition at line 73 of file HotlineDQM.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* HotlineDQM::h_OnlineMetPt
private

Definition at line 74 of file HotlineDQM.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* HotlineDQM::h_OnlineMuPt
private

Definition at line 71 of file HotlineDQM.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* HotlineDQM::h_OnlinePFMetPt
private

Definition at line 75 of file HotlineDQM.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* HotlineDQM::h_OnlinePhotonPt
private

Definition at line 72 of file HotlineDQM.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* HotlineDQM::h_PFMetPt
private

Definition at line 69 of file HotlineDQM.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* HotlineDQM::h_PhotonPt
private

Definition at line 66 of file HotlineDQM.h.

Referenced by analyze(), and bookHistograms().

edm::EDGetTokenT<reco::CaloJetCollection> HotlineDQM::theCaloJetCollection_
private

Definition at line 54 of file HotlineDQM.h.

Referenced by analyze(), and HotlineDQM().

edm::EDGetTokenT<reco::CaloMETCollection> HotlineDQM::theMETCollection_
private

Definition at line 53 of file HotlineDQM.h.

Referenced by analyze(), and HotlineDQM().

edm::EDGetTokenT<reco::MuonCollection> HotlineDQM::theMuonCollection_
private

Definition at line 51 of file HotlineDQM.h.

Referenced by analyze(), and HotlineDQM().

edm::EDGetTokenT<reco::PFMETCollection> HotlineDQM::thePfMETCollection_
private

Definition at line 52 of file HotlineDQM.h.

Referenced by analyze(), and HotlineDQM().

edm::EDGetTokenT<reco::PhotonCollection> HotlineDQM::thePhotonCollection_
private

Definition at line 55 of file HotlineDQM.h.

Referenced by analyze(), and HotlineDQM().

edm::EDGetTokenT<trigger::TriggerEvent> HotlineDQM::theTrigSummary_
private

Definition at line 57 of file HotlineDQM.h.

Referenced by analyze(), and HotlineDQM().

edm::InputTag HotlineDQM::triggerFilter_
private

Definition at line 60 of file HotlineDQM.h.

Referenced by analyze(), and HotlineDQM().

std::string HotlineDQM::triggerPath_
private

Definition at line 59 of file HotlineDQM.h.

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

edm::EDGetTokenT<edm::TriggerResults> HotlineDQM::triggerResults_
private

Definition at line 56 of file HotlineDQM.h.

Referenced by analyze(), and HotlineDQM().

bool HotlineDQM::useHT
private

Definition at line 62 of file HotlineDQM.h.

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

bool HotlineDQM::useMet
private

Definition at line 62 of file HotlineDQM.h.

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

bool HotlineDQM::useMuons
private

Definition at line 62 of file HotlineDQM.h.

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

bool HotlineDQM::usePFMet
private

Definition at line 62 of file HotlineDQM.h.

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

bool HotlineDQM::usePhotons
private

Definition at line 62 of file HotlineDQM.h.

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