9 edm::LogInfo(
"SUSY_HLT_InclusiveHT") <<
"Constructor SUSY_HLT_InclusiveHT::SUSY_HLT_InclusiveHT " << std::endl;
24 edm::LogInfo(
"SUSY_HLT_InclusiveHT") <<
"Destructor SUSY_HLT_InclusiveHT::~SUSY_HLT_InclusiveHT " << std::endl;
28 edm::LogInfo(
"SUSY_HLT_InclusiveHT") <<
"SUSY_HLT_InclusiveHT::beginRun" << std::endl;
32 edm::LogInfo(
"SUSY_HLT_InclusiveHT") <<
"SUSY_HLT_InclusiveHT::bookHistograms" << std::endl;
38 edm::LogInfo(
"SUSY_HLT_InclusiveHT") <<
"SUSY_HLT_InclusiveHT::analyze" << std::endl;
45 if (!pfMETCollection.
isValid()) {
46 edm::LogError(
"SUSY_HLT_InclusiveHT") <<
"invalid collection: PFMET" 55 if (!pfJetCollection.
isValid()) {
56 edm::LogError(
"SUSY_HLT_InclusiveHT") <<
"invalid collection: PFJets" 62 if (!caloJetCollection.
isValid()) {
63 edm::LogError(
"SUSY_HLT_InclusiveHT") <<
"invalid collection: CaloJets" 72 edm::LogError(
"SUSY_HLT_InclusiveHT") <<
"invalid collection: TriggerResults" 82 if (!triggerSummary.
isValid()) {
83 edm::LogError(
"SUSY_HLT_InclusiveHT") <<
"invalid collection: TriggerSummary" 91 if (!(filterIndex >= triggerSummary->
sizeFilters())) {
93 for (
size_t j = 0; j < keys.size(); ++j) {
101 if (foundObject.
id() == 87) {
105 if (foundObject.
id() == 89) {
111 bool hasFired =
false, hasFiredAuxiliaryForHadronicLeg =
false;
113 unsigned int numTriggers = trigNames.
size();
114 for (
unsigned int hltIndex = 0; hltIndex < numTriggers; ++hltIndex) {
116 hltresults->
accept(hltIndex))
119 hltresults->
wasrun(hltIndex) && hltresults->
accept(hltIndex))
120 hasFiredAuxiliaryForHadronicLeg =
true;
123 if (hasFiredAuxiliaryForHadronicLeg || !e.
isRealData()) {
126 for (reco::PFJetCollection::const_iterator i_pfjet = pfJetCollection->begin(); i_pfjet != pfJetCollection->end();
132 pfHT += i_pfjet->pt();
136 for (reco::CaloJetCollection::const_iterator i_calojet = caloJetCollection->begin();
137 i_calojet != caloJetCollection->end();
146 caloHT += i_calojet->pt();
148 for (reco::PFJetCollection::const_iterator i_pfjet = pfJetCollection->begin(); i_pfjet != pfJetCollection->end();
173 edm::LogInfo(
"SUSY_HLT_InclusiveHT") <<
"SUSY_HLT_InclusiveHT::endRun" << std::endl;
181 h_pfMet = ibooker_.
book1D(
"pfMet",
"PF Missing E_{T}; GeV", 20, 0.0, 500.0);
183 h_pfHT = ibooker_.
book1D(
"pfHT",
"PF H_{T}; GeV", 30, 0.0, 1500.0);
184 h_caloHT = ibooker_.
book1D(
"caloHT",
"Calo H_{T}; GeV", 30, 0.0, 1500.0);
185 h_pfJetPt = ibooker_.
book1D(
"pfJetPt",
"PFJet P_{T}; GeV", 20, 0.0, 500.0);
188 h_caloJetPt = ibooker_.
book1D(
"caloJetPt",
"CaloJet P_{T}; GeV", 20, 0.0, 500.0);
MonitorElement * h_pfHTTurnOn_num
SUSY_HLT_InclusiveHT(const edm::ParameterSet &ps)
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
bool wasrun() const
Was at least one path run?
trigger::size_type sizeFilters() const
std::string triggerPathAuxiliaryForHadronic_
MonitorElement * h_caloHT
bool getByToken(EDGetToken token, Handle< PROD > &result) const
~SUSY_HLT_InclusiveHT() override
bool accept() const
Has at least one path accepted the event?
const Keys & filterKeys(trigger::size_type index) const
trigger::size_type filterIndex(const edm::InputTag &filterTag) const
find index of filter in data-member vector from filter tag
MonitorElement * h_pfJetEta
MonitorElement * h_pfHTTurnOn_den
void endRun(edm::Run const &run, edm::EventSetup const &eSetup) override
Strings::size_type size() const
edm::EDGetTokenT< reco::PFJetCollection > thePfJetCollection_
Single trigger physics object (e.g., an isolated muon)
#define DEFINE_FWK_MODULE(type)
void setCurrentFolder(std::string const &fullpath)
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
const TriggerObjectCollection & getObjects() const
void analyze(edm::Event const &e, edm::EventSetup const &eSetup) override
MonitorElement * book1D(Args &&...args)
edm::InputTag triggerFilter_
edm::EDGetTokenT< trigger::TriggerEvent > theTrigSummary_
MonitorElement * h_pfMetPhi
MonitorElement * h_pfMetTurnOn_num
edm::EDGetTokenT< edm::TriggerResults > triggerResults_
MonitorElement * h_caloJetEta
std::vector< TriggerObject > TriggerObjectCollection
collection of trigger physics objects (e.g., all isolated muons)
MonitorElement * h_pfJetPt
static const char *const trigNames[]
MonitorElement * h_triggerMetPt
MonitorElement * h_triggerHT
void bookHistos(DQMStore::IBooker &)
std::string const & triggerName(unsigned int index) const
std::vector< size_type > Keys
MonitorElement * h_caloJetPt
MonitorElement * h_pfMetTurnOn_den
void dqmBeginRun(edm::Run const &, edm::EventSetup const &) override
MonitorElement * h_caloJetPhi
MonitorElement * h_triggerMetPhi
MonitorElement * h_pfJetPhi
edm::TriggerNames const & triggerNames(edm::TriggerResults const &triggerResults) const override
edm::EDGetTokenT< reco::CaloJetCollection > theCaloJetCollection_
edm::EDGetTokenT< reco::PFMETCollection > thePfMETCollection_