11 edm::LogInfo(
"SUSY_HLT_InclusiveHT") <<
"Constructor SUSY_HLT_InclusiveHT::SUSY_HLT_InclusiveHT " << std::endl;
27 edm::LogInfo(
"SUSY_HLT_InclusiveHT") <<
"Destructor SUSY_HLT_InclusiveHT::~SUSY_HLT_InclusiveHT " << std::endl;
32 edm::LogInfo(
"SUSY_HLT_InclusiveHT") <<
"SUSY_HLT_InclusiveHT::beginRun" << std::endl;
37 edm::LogInfo(
"SUSY_HLT_InclusiveHT") <<
"SUSY_HLT_InclusiveHT::bookHistograms" << std::endl;
45 edm::LogInfo(
"SUSY_HLT_InclusiveHT") <<
"SUSY_HLT_InclusiveHT::beginLuminosityBlock" << std::endl;
49 edm::LogInfo(
"SUSY_HLT_InclusiveHT") <<
"SUSY_HLT_InclusiveHT::analyze" << std::endl;
57 if ( !pfMETCollection.
isValid() ){
58 edm::LogError (
"SUSY_HLT_InclusiveHT") <<
"invalid collection: PFMET" <<
"\n";
66 if ( !pfJetCollection.
isValid() ){
67 edm::LogError (
"SUSY_HLT_InclusiveHT") <<
"invalid collection: PFJets" <<
"\n";
72 if ( !caloJetCollection.
isValid() ){
73 edm::LogError (
"SUSY_HLT_InclusiveHT") <<
"invalid collection: CaloJets" <<
"\n";
81 edm::LogError (
"SUSY_HLT_InclusiveHT") <<
"invalid collection: TriggerResults" <<
"\n";
91 edm::LogError (
"SUSY_HLT_InclusiveHT") <<
"invalid collection: TriggerSummary" <<
"\n";
96 size_t filterIndex = triggerSummary->filterIndex(
triggerFilter_ );
98 if( !(filterIndex >= triggerSummary->sizeFilters()) ){
100 for(
size_t j = 0;
j < keys.size(); ++
j ){
107 if(foundObject.
id() == 87){
111 if(foundObject.
id() == 89){
117 bool hasFired =
false, hasFiredAuxiliaryForHadronicLeg=
false;
119 unsigned int numTriggers = trigNames.
size();
120 for(
unsigned int hltIndex=0; hltIndex<numTriggers; ++hltIndex ){
121 if (trigNames.
triggerName(hltIndex).find(
triggerPath_) != std::string::npos && hltresults->wasrun(hltIndex) && hltresults->accept(hltIndex)) hasFired =
true;
125 if(hasFiredAuxiliaryForHadronicLeg || !e.
isRealData()) {
128 for (reco::PFJetCollection::const_iterator i_pfjet = pfJetCollection->begin(); i_pfjet != pfJetCollection->end(); ++i_pfjet){
130 if (fabs(i_pfjet->eta()) >
etaThrJet_)
continue;
131 pfHT += i_pfjet->pt();
135 for (reco::CaloJetCollection::const_iterator i_calojet = caloJetCollection->begin(); i_calojet != caloJetCollection->end(); ++i_calojet){
136 if (i_calojet->pt() <
ptThrJet_)
continue;
137 if (fabs(i_calojet->eta()) >
etaThrJet_)
continue;
141 caloHT += i_calojet->pt();
143 for (reco::PFJetCollection::const_iterator i_pfjet = pfJetCollection->begin(); i_pfjet != pfJetCollection->end(); ++i_pfjet){
145 if (fabs(i_pfjet->eta()) >
etaThrJet_)
continue;
167 edm::LogInfo(
"SUSY_HLT_InclusiveHT") <<
"SUSY_HLT_InclusiveHT::endLuminosityBlock" << std::endl;
173 edm::LogInfo(
"SUSY_HLT_InclusiveHT") <<
"SUSY_HLT_InclusiveHT::endRun" << std::endl;
182 h_pfMet = ibooker_.
book1D(
"pfMet",
"PF Missing E_{T}; GeV", 20, 0.0, 500.0 );
184 h_pfHT = ibooker_.
book1D(
"pfHT",
"PF H_{T}; GeV", 30, 0.0, 1500.0);
185 h_caloHT = ibooker_.
book1D(
"caloHT",
"Calo H_{T}; GeV", 30, 0.0, 1500.0);
186 h_pfJetPt = ibooker_.
book1D(
"pfJetPt",
"PFJet P_{T}; GeV", 20, 0.0, 500.0 );
189 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
virtual edm::TriggerNames const & triggerNames(edm::TriggerResults const &triggerResults) const
std::string triggerPathAuxiliaryForHadronic_
MonitorElement * h_caloHT
bool getByToken(EDGetToken token, Handle< PROD > &result) const
void beginLuminosityBlock(edm::LuminosityBlock const &lumi, edm::EventSetup const &eSetup)
#define DEFINE_FWK_MODULE(type)
MonitorElement * h_pfJetEta
MonitorElement * h_pfHTTurnOn_den
Strings::size_type size() const
edm::EDGetTokenT< reco::PFJetCollection > thePfJetCollection_
Single trigger physics object (e.g., an isolated muon)
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
MonitorElement * book1D(Args &&...args)
edm::InputTag triggerFilter_
edm::EDGetTokenT< trigger::TriggerEvent > theTrigSummary_
void endRun(edm::Run const &run, edm::EventSetup const &eSetup)
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
void setCurrentFolder(const std::string &fullpath)
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
void analyze(edm::Event const &e, edm::EventSetup const &eSetup)
MonitorElement * h_pfJetPhi
edm::EDGetTokenT< reco::CaloJetCollection > theCaloJetCollection_
edm::EDGetTokenT< reco::PFMETCollection > thePfMETCollection_
void endLuminosityBlock(edm::LuminosityBlock const &lumi, edm::EventSetup const &eSetup)
virtual ~SUSY_HLT_InclusiveHT()