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;
44 edm::LogInfo(
"SUSY_HLT_InclusiveHT") <<
"SUSY_HLT_InclusiveHT::analyze" << std::endl;
52 if ( !pfMETCollection.
isValid() ){
53 edm::LogError (
"SUSY_HLT_InclusiveHT") <<
"invalid collection: PFMET" <<
"\n";
61 if ( !pfJetCollection.
isValid() ){
62 edm::LogError (
"SUSY_HLT_InclusiveHT") <<
"invalid collection: PFJets" <<
"\n";
67 if ( !caloJetCollection.
isValid() ){
68 edm::LogError (
"SUSY_HLT_InclusiveHT") <<
"invalid collection: CaloJets" <<
"\n";
76 edm::LogError (
"SUSY_HLT_InclusiveHT") <<
"invalid collection: TriggerResults" <<
"\n";
86 edm::LogError (
"SUSY_HLT_InclusiveHT") <<
"invalid collection: TriggerSummary" <<
"\n";
93 if( !(filterIndex >= triggerSummary->
sizeFilters()) ){
95 for(
size_t j = 0; j < keys.size(); ++j ){
102 if(foundObject.
id() == 87){
106 if(foundObject.
id() == 89){
112 bool hasFired =
false, hasFiredAuxiliaryForHadronicLeg=
false;
114 unsigned int numTriggers = trigNames.
size();
115 for(
unsigned int hltIndex=0; hltIndex<numTriggers; ++hltIndex ){
120 if(hasFiredAuxiliaryForHadronicLeg || !e.
isRealData()) {
123 for (reco::PFJetCollection::const_iterator i_pfjet = pfJetCollection->begin(); i_pfjet != pfJetCollection->end(); ++i_pfjet){
125 if (fabs(i_pfjet->eta()) >
etaThrJet_)
continue;
126 pfHT += i_pfjet->pt();
130 for (reco::CaloJetCollection::const_iterator i_calojet = caloJetCollection->begin(); i_calojet != caloJetCollection->end(); ++i_calojet){
131 if (i_calojet->pt() <
ptThrJet_)
continue;
132 if (fabs(i_calojet->eta()) >
etaThrJet_)
continue;
136 caloHT += i_calojet->pt();
138 for (reco::PFJetCollection::const_iterator i_pfjet = pfJetCollection->begin(); i_pfjet != pfJetCollection->end(); ++i_pfjet){
140 if (fabs(i_pfjet->eta()) >
etaThrJet_)
continue;
164 edm::LogInfo(
"SUSY_HLT_InclusiveHT") <<
"SUSY_HLT_InclusiveHT::endRun" << std::endl;
173 h_pfMet = ibooker_.
book1D(
"pfMet",
"PF Missing E_{T}; GeV", 20, 0.0, 500.0 );
175 h_pfHT = ibooker_.
book1D(
"pfHT",
"PF H_{T}; GeV", 30, 0.0, 1500.0);
176 h_caloHT = ibooker_.
book1D(
"caloHT",
"Calo H_{T}; GeV", 30, 0.0, 1500.0);
177 h_pfJetPt = ibooker_.
book1D(
"pfJetPt",
"PFJet P_{T}; GeV", 20, 0.0, 500.0 );
180 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
#define DEFINE_FWK_MODULE(type)
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)
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
const TriggerObjectCollection & getObjects() const
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
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
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
MonitorElement * h_pfJetPhi
edm::TriggerNames const & triggerNames(edm::TriggerResults const &triggerResults) const override
edm::EDGetTokenT< reco::CaloJetCollection > theCaloJetCollection_
edm::EDGetTokenT< reco::PFMETCollection > thePfMETCollection_