CMS 3D CMS Logo

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

#include <SUSY_HLT_Muon_Hadronic.h>

Inheritance diagram for SUSY_HLT_Muon_Hadronic:
DQMEDAnalyzer edm::stream::EDAnalyzer< edm::RunSummaryCache< dqmDetails::NoCache >, edm::LuminosityBlockSummaryCache< dqmDetails::NoCache > > edm::stream::EDAnalyzerBase edm::EDConsumerBase

Public Member Functions

 SUSY_HLT_Muon_Hadronic (const edm::ParameterSet &ps)
 
virtual ~SUSY_HLT_Muon_Hadronic ()
 
- Public Member Functions inherited from DQMEDAnalyzer
virtual void beginRun (edm::Run const &, edm::EventSetup const &) final
 
virtual void beginStream (edm::StreamID id) final
 
 DQMEDAnalyzer (void)
 
virtual void endLuminosityBlockSummary (edm::LuminosityBlock const &, edm::EventSetup const &, dqmDetails::NoCache *) const final
 
virtual void endRunSummary (edm::Run const &, edm::EventSetup const &, dqmDetails::NoCache *) const final
 
uint32_t streamId () const
 
- Public Member Functions inherited from edm::stream::EDAnalyzer< edm::RunSummaryCache< dqmDetails::NoCache >, edm::LuminosityBlockSummaryCache< dqmDetails::NoCache > >
 EDAnalyzer ()=default
 
- Public Member Functions inherited from edm::stream::EDAnalyzerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzerBase ()
 
ModuleDescription const & moduleDescription () const
 
virtual ~EDAnalyzerBase ()
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
 EDConsumerBase ()
 
ProductHolderIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
std::vector
< ProductHolderIndexAndSkipBit >
const & 
itemsToGetFromEvent () const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesDependentUpon (const std::string &iProcessName, std::vector< const char * > &oModuleLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

Protected Member Functions

void analyze (edm::Event const &e, edm::EventSetup const &eSetup)
 
void beginLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &eSetup)
 
void bookHistograms (DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
 
void dqmBeginRun (edm::Run const &, edm::EventSetup const &) override
 
void endLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &eSetup)
 
void endRun (edm::Run const &run, edm::EventSetup const &eSetup)
 
- 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 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 Member Functions

void bookHistos (DQMStore::IBooker &)
 

Private Attributes

double etaMuonOffline_
 
double etaThrJet_
 
HLTConfigProvider fHltConfig
 
MonitorElementh_MuTurnOn_den
 
MonitorElementh_MuTurnOn_num
 
MonitorElementh_pfHTTurnOn_den
 
MonitorElementh_pfHTTurnOn_num
 
MonitorElementh_pfMetTurnOn_den
 
MonitorElementh_pfMetTurnOn_num
 
MonitorElementh_triggerMuEta
 
MonitorElementh_triggerMuPhi
 
MonitorElementh_triggerMuPt
 
std::string HLTProcess_
 
double HTOffline_
 
double METOffline_
 
double ptMuonOffline_
 
double ptThrJet_
 
edm::EDGetTokenT
< reco::CaloJetCollection
theCaloJetCollection_
 
edm::EDGetTokenT
< reco::MuonCollection
theMuonCollection_
 
edm::EDGetTokenT
< reco::PFJetCollection
thePfJetCollection_
 
edm::EDGetTokenT
< reco::PFMETCollection
thePfMETCollection_
 
edm::EDGetTokenT
< trigger::TriggerEvent
theTrigSummary_
 
edm::InputTag triggerFilter_
 
std::string triggerPath_
 
std::string triggerPathAuxiliaryForHadronic_
 
std::string triggerPathAuxiliaryForMuon_
 
edm::EDGetTokenT
< edm::TriggerResults
triggerResults_
 

Additional Inherited Members

- Public Types inherited from edm::stream::EDAnalyzer< edm::RunSummaryCache< dqmDetails::NoCache >, edm::LuminosityBlockSummaryCache< dqmDetails::NoCache > >
typedef CacheContexts< T...> CacheTypes
 
typedef CacheTypes::GlobalCache GlobalCache
 
typedef AbilityChecker< T...> HasAbility
 
typedef
CacheTypes::LuminosityBlockCache 
LuminosityBlockCache
 
typedef
LuminosityBlockContextT
< LuminosityBlockCache,
RunCache, GlobalCache
LuminosityBlockContext
 
typedef
CacheTypes::LuminosityBlockSummaryCache 
LuminosityBlockSummaryCache
 
typedef CacheTypes::RunCache RunCache
 
typedef RunContextT< RunCache,
GlobalCache
RunContext
 
typedef CacheTypes::RunSummaryCache RunSummaryCache
 
- Public Types inherited from edm::stream::EDAnalyzerBase
typedef EDAnalyzerAdaptorBase ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from DQMEDAnalyzer
static std::shared_ptr
< dqmDetails::NoCache
globalBeginLuminosityBlockSummary (edm::LuminosityBlock const &, edm::EventSetup const &, LuminosityBlockContext const *)
 
static std::shared_ptr
< dqmDetails::NoCache
globalBeginRunSummary (edm::Run const &, edm::EventSetup const &, RunContext const *)
 
static void globalEndLuminosityBlockSummary (edm::LuminosityBlock const &, edm::EventSetup const &, LuminosityBlockContext const *, dqmDetails::NoCache *)
 
static void globalEndRunSummary (edm::Run const &, edm::EventSetup const &, RunContext const *, dqmDetails::NoCache *)
 
- Static Public Member Functions inherited from edm::stream::EDAnalyzerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 

Detailed Description

Definition at line 39 of file SUSY_HLT_Muon_Hadronic.h.

Constructor & Destructor Documentation

SUSY_HLT_Muon_Hadronic::SUSY_HLT_Muon_Hadronic ( const edm::ParameterSet ps)

Definition at line 11 of file SUSY_HLT_Muon_Hadronic.cc.

References etaMuonOffline_, etaThrJet_, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), HLTProcess_, HTOffline_, METOffline_, ptMuonOffline_, ptThrJet_, AlCaHLTBitMon_QueryRunRegistry::string, theCaloJetCollection_, theMuonCollection_, thePfJetCollection_, thePfMETCollection_, theTrigSummary_, triggerFilter_, triggerPath_, triggerPathAuxiliaryForHadronic_, triggerPathAuxiliaryForMuon_, and triggerResults_.

12 {
13 
14  edm::LogInfo("SUSY_HLT_Muon_Hadronic") << "Constructor SUSY_HLT_Muon_Hadronic::SUSY_HLT_Muon_Hadronic " << std::endl;
15  // Get parameters from configuration file
16  theTrigSummary_ = consumes<trigger::TriggerEvent>(ps.getParameter<edm::InputTag>("trigSummary"));
17  theMuonCollection_ = consumes<reco::MuonCollection>(ps.getParameter<edm::InputTag>("MuonCollection"));
18  thePfMETCollection_ = consumes<reco::PFMETCollection>(ps.getParameter<edm::InputTag>("pfMETCollection"));
19  thePfJetCollection_ = consumes<reco::PFJetCollection>(ps.getParameter<edm::InputTag>("pfJetCollection"));
20  theCaloJetCollection_ = consumes<reco::CaloJetCollection>(ps.getParameter<edm::InputTag>("caloJetCollection"));
21  triggerResults_ = consumes<edm::TriggerResults>(ps.getParameter<edm::InputTag>("TriggerResults"));
22  HLTProcess_ = ps.getParameter<std::string>("HLTProcess");
23  triggerPath_ = ps.getParameter<std::string>("TriggerPath");
24  triggerPathAuxiliaryForMuon_ = ps.getParameter<std::string>("TriggerPathAuxiliaryForMuon");
25  triggerPathAuxiliaryForHadronic_ = ps.getParameter<std::string>("TriggerPathAuxiliaryForHadronic");
26  triggerFilter_ = ps.getParameter<edm::InputTag>("TriggerFilter");
27  ptMuonOffline_ = ps.getUntrackedParameter<double>("ptMuonOffline");
28  etaMuonOffline_ = ps.getUntrackedParameter<double>("etaMuonOffline");
29  HTOffline_ = ps.getUntrackedParameter<double>("HTOffline");
30  METOffline_ = ps.getUntrackedParameter<double>("METOffline");
31  ptThrJet_ = ps.getUntrackedParameter<double>("PtThrJet");
32  etaThrJet_ = ps.getUntrackedParameter<double>("EtaThrJet");
33 }
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
edm::EDGetTokenT< trigger::TriggerEvent > theTrigSummary_
std::string triggerPathAuxiliaryForHadronic_
edm::EDGetTokenT< reco::PFJetCollection > thePfJetCollection_
edm::EDGetTokenT< reco::CaloJetCollection > theCaloJetCollection_
edm::EDGetTokenT< edm::TriggerResults > triggerResults_
edm::EDGetTokenT< reco::MuonCollection > theMuonCollection_
edm::EDGetTokenT< reco::PFMETCollection > thePfMETCollection_
SUSY_HLT_Muon_Hadronic::~SUSY_HLT_Muon_Hadronic ( )
virtual

Definition at line 35 of file SUSY_HLT_Muon_Hadronic.cc.

36 {
37  edm::LogInfo("SUSY_HLT_Muon_Hadronic") << "Destructor SUSY_HLT_Muon_Hadronic::~SUSY_HLT_Muon_Hadronic " << std::endl;
38 }

Member Function Documentation

void SUSY_HLT_Muon_Hadronic::analyze ( edm::Event const &  e,
edm::EventSetup const &  eSetup 
)
protectedvirtual

Implements edm::stream::EDAnalyzerBase.

Definition at line 84 of file SUSY_HLT_Muon_Hadronic.cc.

References comparePt(), trigger::TriggerObject::eta(), Lepton::eta, etaMuonOffline_, etaThrJet_, MonitorElement::Fill(), HcalObjRepresent::Fill(), edm::Event::getByToken(), h_MuTurnOn_den, h_MuTurnOn_num, h_pfHTTurnOn_den, h_pfHTTurnOn_num, h_pfMetTurnOn_den, h_pfMetTurnOn_num, h_triggerMuEta, h_triggerMuPhi, h_triggerMuPt, HTOffline_, trigger::TriggerObject::id(), edm::EventBase::isRealData(), edm::HandleBase::isValid(), j, relativeConstraints::keys, METOffline_, metsig::muon, trigger::TriggerObject::phi(), Lepton::phi, trigger::TriggerObject::pt(), Lepton::pt, ptMuonOffline_, ptThrJet_, edm::TriggerNames::size(), python.multivaluedict::sort(), mathSSE::sqrt(), theCaloJetCollection_, theMuonCollection_, thePfJetCollection_, thePfMETCollection_, theTrigSummary_, triggerFilter_, edm::TriggerNames::triggerName(), edm::Event::triggerNames(), triggerPath_, triggerPathAuxiliaryForHadronic_, triggerPathAuxiliaryForMuon_, triggerResults_, and trigNames.

84  {
85  edm::LogInfo("SUSY_HLT_Muon_Hadronic") << "SUSY_HLT_Muon_Hadronic::analyze" << std::endl;
86 
87 
88  //-------------------------------
89  //--- MET
90  //-------------------------------
91  edm::Handle<reco::PFMETCollection> pfMETCollection;
92  e.getByToken(thePfMETCollection_, pfMETCollection);
93  if ( !pfMETCollection.isValid() ){
94  edm::LogError ("SUSY_HLT_Muon_Hadronic") << "invalid collection: PFMET" << "\n";
95  return;
96  }
97  //-------------------------------
98  //--- Jets
99  //-------------------------------
100  edm::Handle<reco::PFJetCollection> pfJetCollection;
101  e.getByToken (thePfJetCollection_,pfJetCollection);
102  if ( !pfJetCollection.isValid() ){
103  edm::LogError ("SUSY_HLT_Muon_Hadronic") << "invalid collection: PFJets" << "\n";
104  return;
105  }
106  edm::Handle<reco::CaloJetCollection> caloJetCollection;
107  e.getByToken (theCaloJetCollection_,caloJetCollection);
108  if ( !caloJetCollection.isValid() ){
109  edm::LogError ("SUSY_HLT_Muon_Hadronic") << "invalid collection: CaloJets" << "\n";
110  return;
111  }
112 
113  //-------------------------------
114  //--- Muon
115  //-------------------------------
117  e.getByToken (theMuonCollection_, MuonCollection);
118  if ( !MuonCollection.isValid() ){
119  edm::LogError ("SUSY_HLT_Mu_Hadronic") << "invalid collection: Muons " << "\n";
120  return;
121  }
122 
123 
124  //-------------------------------
125  //--- Trigger
126  //-------------------------------
128  e.getByToken(triggerResults_,hltresults);
129  if(!hltresults.isValid()){
130  edm::LogError ("SUSY_HLT_Muon_Hadronic") << "invalid collection: TriggerResults" << "\n";
131  return;
132  }
133  edm::Handle<trigger::TriggerEvent> triggerSummary;
134  e.getByToken(theTrigSummary_, triggerSummary);
135  if(!triggerSummary.isValid()) {
136  edm::LogError ("SUSY_HLT_Muon_Hadronic") << "invalid collection: TriggerSummary" << "\n";
137  return;
138  }
139 
140 
141  //get online objects
142  std::vector<Lepton> onlineMuons;
143  size_t filterIndex = triggerSummary->filterIndex( triggerFilter_ );
144  trigger::TriggerObjectCollection triggerObjects = triggerSummary->getObjects();
145  if( !(filterIndex >= triggerSummary->sizeFilters()) ){
146  const trigger::Keys& keys = triggerSummary->filterKeys( filterIndex );
147  for( size_t j = 0; j < keys.size(); ++j ){
148  trigger::TriggerObject foundObject = triggerObjects[keys[j]];
149  if(fabs(foundObject.id()) == 13){ //It's a muon
150  h_triggerMuPt->Fill(foundObject.pt());
151  h_triggerMuEta->Fill(foundObject.eta());
152  h_triggerMuPhi->Fill(foundObject.phi());
153  Lepton theMuon; theMuon.pt = foundObject.pt(); theMuon.phi = foundObject.phi(); theMuon.eta = foundObject.eta();
154  onlineMuons.push_back(theMuon);
155  }
156  }
157  }
158 
159 
160  bool hasFired = false;
161  bool hasFiredAuxiliaryForMuonLeg = false;
162  bool hasFiredAuxiliaryForHadronicLeg = false;
163  const edm::TriggerNames& trigNames = e.triggerNames(*hltresults);
164  unsigned int numTriggers = trigNames.size();
165  for( unsigned int hltIndex=0; hltIndex<numTriggers; ++hltIndex ){
166  if (trigNames.triggerName(hltIndex).find(triggerPath_) != std::string::npos && hltresults->wasrun(hltIndex) && hltresults->accept(hltIndex)) hasFired = true;
167  if (trigNames.triggerName(hltIndex).find(triggerPathAuxiliaryForMuon_) != std::string::npos && hltresults->wasrun(hltIndex) && hltresults->accept(hltIndex)) hasFiredAuxiliaryForMuonLeg = true;
168  if (trigNames.triggerName(hltIndex).find(triggerPathAuxiliaryForHadronic_) != std::string::npos && hltresults->wasrun(hltIndex) && hltresults->accept(hltIndex)) hasFiredAuxiliaryForHadronicLeg = true;
169  }
170 
171 
172 
173  if(hasFiredAuxiliaryForMuonLeg || hasFiredAuxiliaryForHadronicLeg || !e.isRealData()) {
174 
175  std::vector<Lepton> offlineMuons;
176  for(reco::MuonCollection::const_iterator muon = MuonCollection->begin(); muon != MuonCollection->end() ; ++muon) {
177  if(fabs(muon->eta())>etaMuonOffline_) continue;
178  Lepton theMuon; theMuon.pt = muon->pt(); theMuon.phi = muon->phi(); theMuon.eta = muon->eta();
179  offlineMuons.push_back(theMuon);
180  }
181 
182  std::sort(onlineMuons.begin(), onlineMuons.end(), comparePt);
183  std::sort(offlineMuons.begin(), offlineMuons.end(), comparePt);
184  /*
185  std::cout << "OFFLINE MUON" << std::endl;
186  for(std::vector<Lepton>::iterator offline_muon = offlineMuons.begin(); offline_muon != offlineMuons.end(); offline_muon++) {
187  std::cout << offline_muon->pt << std::endl;
188  }
189  std::cout << "ONLINE MUON" << std::endl;
190  for(std::vector<Lepton>::iterator online_muon = onlineMuons.begin(); online_muon != onlineMuons.end(); online_muon++) {
191  std::cout << online_muon->pt << std::endl;
192  }
193  */
194  //Matching the muon
195  int indexOfMatchedMuon = -1;
196  int offlineCounter = 0;
197  for(std::vector<Lepton>::iterator offline_muon = offlineMuons.begin(); (offline_muon != offlineMuons.end() && indexOfMatchedMuon == -1); offline_muon++) {
198  for(std::vector<Lepton>::iterator online_muon = onlineMuons.begin(); online_muon != onlineMuons.end(); online_muon++) {
199  if(sqrt( (offline_muon->phi-online_muon->phi)*(offline_muon->phi-online_muon->phi) +
200  (offline_muon->eta-online_muon->eta)*(offline_muon->eta-online_muon->eta)) < 0.5) {
201  indexOfMatchedMuon = offlineCounter;
202  //std::cout << "Offline " << offline_muon->pt << " " << "Online " << online_muon->pt << std::endl;
203  break;
204  }
205  }
206  offlineCounter++;
207  }
208  float caloHT = 0.0;
209  float pfHT = 0.0;
210  for (reco::PFJetCollection::const_iterator i_pfjet = pfJetCollection->begin(); i_pfjet != pfJetCollection->end(); ++i_pfjet){
211  if (i_pfjet->pt() < ptThrJet_) continue;
212  if (fabs(i_pfjet->eta()) > etaThrJet_) continue;
213  pfHT += i_pfjet->pt();
214  }
215  for (reco::CaloJetCollection::const_iterator i_calojet = caloJetCollection->begin(); i_calojet != caloJetCollection->end(); ++i_calojet){
216  if (i_calojet->pt() < ptThrJet_) continue;
217  if (fabs(i_calojet->eta()) > etaThrJet_) continue;
218  caloHT += i_calojet->pt();
219  }
220  //Need to apply the MET offline cut to be in the MET plateau
221  if((hasFiredAuxiliaryForMuonLeg || !e.isRealData()) && offlineMuons.size()>0 && pfMETCollection->begin()->et() > METOffline_ && pfHT > HTOffline_) {
222  if(hasFired && indexOfMatchedMuon >= 0) {
223  h_MuTurnOn_num-> Fill(offlineMuons.at(indexOfMatchedMuon).pt);
224  h_MuTurnOn_den-> Fill(offlineMuons.at(indexOfMatchedMuon).pt);
225  } else {
226  h_MuTurnOn_den-> Fill(offlineMuons.at(0).pt);
227  }
228  }
229  //Need to apply the pt offline cut to be in the muon pt plateau
230  if((hasFiredAuxiliaryForHadronicLeg || !e.isRealData()) && indexOfMatchedMuon >= 0 && offlineMuons.at(indexOfMatchedMuon).pt > ptMuonOffline_ && pfHT > HTOffline_) {
231  if(hasFired) {
232  h_pfMetTurnOn_num-> Fill(pfMETCollection->begin()->et());
233  }
234  h_pfMetTurnOn_den-> Fill(pfMETCollection->begin()->et());
235  }
236  if((hasFiredAuxiliaryForHadronicLeg || !e.isRealData()) && indexOfMatchedMuon >= 0 && offlineMuons.at(indexOfMatchedMuon).pt > ptMuonOffline_ && pfMETCollection->begin()->et() > METOffline_) {
237  if(hasFired) {
238  h_pfHTTurnOn_num-> Fill(pfHT);
239  }
240  h_pfHTTurnOn_den-> Fill(pfHT);
241  }
242  }
243 }
edm::EDGetTokenT< trigger::TriggerEvent > theTrigSummary_
int id() const
getters
Definition: TriggerObject.h:55
float phi() const
Definition: TriggerObject.h:58
std::string triggerPathAuxiliaryForHadronic_
Strings::size_type size() const
Definition: TriggerNames.cc:39
float eta() const
Definition: TriggerObject.h:57
std::vector< Muon > MuonCollection
collection of Muon objects
Definition: MuonFwd.h:9
void Fill(long long x)
edm::EDGetTokenT< reco::PFJetCollection > thePfJetCollection_
Single trigger physics object (e.g., an isolated muon)
Definition: TriggerObject.h:22
edm::EDGetTokenT< reco::CaloJetCollection > theCaloJetCollection_
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
T sqrt(T t)
Definition: SSEVec.h:48
MonitorElement * h_pfMetTurnOn_num
int j
Definition: DBlmapReader.cc:9
bool isValid() const
Definition: HandleBase.h:75
MonitorElement * h_pfHTTurnOn_den
edm::EDGetTokenT< edm::TriggerResults > triggerResults_
edm::EDGetTokenT< reco::MuonCollection > theMuonCollection_
std::vector< TriggerObject > TriggerObjectCollection
collection of trigger physics objects (e.g., all isolated muons)
Definition: TriggerObject.h:81
static const char *const trigNames[]
Definition: EcalDumpRaw.cc:74
std::string const & triggerName(unsigned int index) const
Definition: TriggerNames.cc:27
edm::EDGetTokenT< reco::PFMETCollection > thePfMETCollection_
std::vector< size_type > Keys
MonitorElement * h_pfHTTurnOn_num
MonitorElement * h_pfMetTurnOn_den
bool comparePt(Lepton a, Lepton b)
void SUSY_HLT_Muon_Hadronic::beginLuminosityBlock ( edm::LuminosityBlock const &  lumi,
edm::EventSetup const &  eSetup 
)
protectedvirtual

Reimplemented from edm::stream::EDAnalyzerBase.

Definition at line 76 of file SUSY_HLT_Muon_Hadronic.cc.

78 {
79  edm::LogInfo("SUSY_HLT_Muon_Hadronic") << "SUSY_HLT_Muon_Hadronic::beginLuminosityBlock" << std::endl;
80 }
void SUSY_HLT_Muon_Hadronic::bookHistograms ( DQMStore::IBooker ibooker_,
edm::Run const &  ,
edm::EventSetup const &   
)
overrideprotectedvirtual

Implements DQMEDAnalyzer.

Definition at line 69 of file SUSY_HLT_Muon_Hadronic.cc.

References bookHistos().

70 {
71  edm::LogInfo("SUSY_HLT_Muon_Hadronic") << "SUSY_HLT_Muon_Hadronic::bookHistograms" << std::endl;
72  //book at beginRun
73  bookHistos(ibooker_);
74 }
void bookHistos(DQMStore::IBooker &)
void SUSY_HLT_Muon_Hadronic::bookHistos ( DQMStore::IBooker ibooker_)
private

Definition at line 257 of file SUSY_HLT_Muon_Hadronic.cc.

References DQMStore::IBooker::book1D(), DQMStore::IBooker::cd(), h_MuTurnOn_den, h_MuTurnOn_num, h_pfHTTurnOn_den, h_pfHTTurnOn_num, h_pfMetTurnOn_den, h_pfMetTurnOn_num, h_triggerMuEta, h_triggerMuPhi, h_triggerMuPt, DQMStore::IBooker::setCurrentFolder(), and triggerPath_.

Referenced by bookHistograms().

258 {
259  ibooker_.cd();
260  ibooker_.setCurrentFolder("HLT/SUSYBSM/" + triggerPath_);
261 
262  //offline quantities
263 
264  //online quantities
265  h_triggerMuPt = ibooker_.book1D("triggerMuPt", "Trigger Muon Pt; GeV", 20, 0.0, 500.0);
266  h_triggerMuEta = ibooker_.book1D("triggerMuEta", "Trigger Muon Eta", 20, -3.0, 3.0);
267  h_triggerMuPhi = ibooker_.book1D("triggerMuPhi", "Trigger Muon Phi", 20, -3.5, 3.5);
268 
269  //num and den hists to be divided in harvesting step to make turn on curves
270  h_pfMetTurnOn_num = ibooker_.book1D("pfMetTurnOn_num", "PF MET Turn On Numerator", 20, 0.0, 500.0 );
271  h_pfMetTurnOn_den = ibooker_.book1D("pfMetTurnOn_den", "PF MET Turn OnDenominator", 20, 0.0, 500.0 );
272  h_pfHTTurnOn_num = ibooker_.book1D("pfHTTurnOn_num", "PF HT Turn On Numerator", 30, 0.0, 1500.0 );
273  h_pfHTTurnOn_den = ibooker_.book1D("pfHTTurnOn_den", "PF HT Turn On Denominator", 30, 0.0, 1500.0 );
274  h_MuTurnOn_num = ibooker_.book1D("MuTurnOn_num", "Muon Turn On Numerator", 30, 0.0, 150 );
275  h_MuTurnOn_den = ibooker_.book1D("MuTurnOn_den", "Muon Turn On Denominator", 30, 0.0, 150.0 );
276 
277  ibooker_.cd();
278 }
void cd(void)
Definition: DQMStore.cc:266
MonitorElement * h_pfMetTurnOn_num
MonitorElement * book1D(Args &&...args)
Definition: DQMStore.h:115
MonitorElement * h_pfHTTurnOn_den
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:274
MonitorElement * h_pfHTTurnOn_num
MonitorElement * h_pfMetTurnOn_den
void SUSY_HLT_Muon_Hadronic::dqmBeginRun ( edm::Run const &  run,
edm::EventSetup const &  e 
)
overrideprotectedvirtual

Reimplemented from DQMEDAnalyzer.

Definition at line 40 of file SUSY_HLT_Muon_Hadronic.cc.

References fHltConfig, spr::find(), HLTProcess_, HLTConfigProvider::init(), j, LogDebug, HLTConfigProvider::triggerNames(), and triggerPath_.

41 {
42 
43  bool changed;
44 
45  if (!fHltConfig.init(run, e, HLTProcess_, changed)) {
46  edm::LogError("SUSY_HLT_Muon_Hadronic") << "Initialization of HLTConfigProvider failed!!";
47  return;
48  }
49 
50  bool pathFound = false;
51  const std::vector<std::string> allTrigNames = fHltConfig.triggerNames();
52  for(size_t j = 0; j <allTrigNames.size(); ++j) {
53  if(allTrigNames[j].find(triggerPath_) != std::string::npos) {
54  pathFound = true;
55  }
56  }
57 
58  if(!pathFound) {
59  LogDebug ("SUSY_HLT_Muon_Hadronic") << "Path not found" << "\n";
60  return;
61  }
62  //std::vector<std::string> filtertags = fHltConfig.moduleLabels( triggerPath_ );
63  //triggerFilter_ = edm::InputTag(filtertags[filtertags.size()-1],"",fHltConfig.processName());
64  //triggerFilter_ = edm::InputTag("hltPFMET120Mu5L3PreFiltered", "", fHltConfig.processName());
65 
66  edm::LogInfo("SUSY_HLT_Muon_Hadronic") << "SUSY_HLT_Muon_Hadronic::beginRun" << std::endl;
67 }
#define LogDebug(id)
const std::vector< std::string > & triggerNames() const
names of trigger paths
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:7
int j
Definition: DBlmapReader.cc:9
bool init(const edm::Run &iRun, const edm::EventSetup &iSetup, const std::string &processName, bool &changed)
d&#39;tor
void SUSY_HLT_Muon_Hadronic::endLuminosityBlock ( edm::LuminosityBlock const &  lumi,
edm::EventSetup const &  eSetup 
)
protectedvirtual

Reimplemented from edm::stream::EDAnalyzerBase.

Definition at line 246 of file SUSY_HLT_Muon_Hadronic.cc.

247 {
248  edm::LogInfo("SUSY_HLT_Muon_Hadronic") << "SUSY_HLT_Muon_Hadronic::endLuminosityBlock" << std::endl;
249 }
void SUSY_HLT_Muon_Hadronic::endRun ( edm::Run const &  run,
edm::EventSetup const &  eSetup 
)
protectedvirtual

Reimplemented from edm::stream::EDAnalyzerBase.

Definition at line 252 of file SUSY_HLT_Muon_Hadronic.cc.

253 {
254  edm::LogInfo("SUSY_HLT_Muon_Hadronic") << "SUSY_HLT_Muon_Hadronic::endRun" << std::endl;
255 }

Member Data Documentation

double SUSY_HLT_Muon_Hadronic::etaMuonOffline_
private

Definition at line 74 of file SUSY_HLT_Muon_Hadronic.h.

Referenced by analyze(), and SUSY_HLT_Muon_Hadronic().

double SUSY_HLT_Muon_Hadronic::etaThrJet_
private

Definition at line 78 of file SUSY_HLT_Muon_Hadronic.h.

Referenced by analyze(), and SUSY_HLT_Muon_Hadronic().

HLTConfigProvider SUSY_HLT_Muon_Hadronic::fHltConfig
private

Definition at line 66 of file SUSY_HLT_Muon_Hadronic.h.

Referenced by dqmBeginRun().

MonitorElement* SUSY_HLT_Muon_Hadronic::h_MuTurnOn_den
private

Definition at line 89 of file SUSY_HLT_Muon_Hadronic.h.

Referenced by analyze(), and bookHistos().

MonitorElement* SUSY_HLT_Muon_Hadronic::h_MuTurnOn_num
private

Definition at line 88 of file SUSY_HLT_Muon_Hadronic.h.

Referenced by analyze(), and bookHistos().

MonitorElement* SUSY_HLT_Muon_Hadronic::h_pfHTTurnOn_den
private

Definition at line 87 of file SUSY_HLT_Muon_Hadronic.h.

Referenced by analyze(), and bookHistos().

MonitorElement* SUSY_HLT_Muon_Hadronic::h_pfHTTurnOn_num
private

Definition at line 86 of file SUSY_HLT_Muon_Hadronic.h.

Referenced by analyze(), and bookHistos().

MonitorElement* SUSY_HLT_Muon_Hadronic::h_pfMetTurnOn_den
private

Definition at line 85 of file SUSY_HLT_Muon_Hadronic.h.

Referenced by analyze(), and bookHistos().

MonitorElement* SUSY_HLT_Muon_Hadronic::h_pfMetTurnOn_num
private

Definition at line 84 of file SUSY_HLT_Muon_Hadronic.h.

Referenced by analyze(), and bookHistos().

MonitorElement* SUSY_HLT_Muon_Hadronic::h_triggerMuEta
private

Definition at line 82 of file SUSY_HLT_Muon_Hadronic.h.

Referenced by analyze(), and bookHistos().

MonitorElement* SUSY_HLT_Muon_Hadronic::h_triggerMuPhi
private

Definition at line 83 of file SUSY_HLT_Muon_Hadronic.h.

Referenced by analyze(), and bookHistos().

MonitorElement* SUSY_HLT_Muon_Hadronic::h_triggerMuPt
private

Definition at line 81 of file SUSY_HLT_Muon_Hadronic.h.

Referenced by analyze(), and bookHistos().

std::string SUSY_HLT_Muon_Hadronic::HLTProcess_
private

Definition at line 68 of file SUSY_HLT_Muon_Hadronic.h.

Referenced by dqmBeginRun(), and SUSY_HLT_Muon_Hadronic().

double SUSY_HLT_Muon_Hadronic::HTOffline_
private

Definition at line 75 of file SUSY_HLT_Muon_Hadronic.h.

Referenced by analyze(), and SUSY_HLT_Muon_Hadronic().

double SUSY_HLT_Muon_Hadronic::METOffline_
private

Definition at line 76 of file SUSY_HLT_Muon_Hadronic.h.

Referenced by analyze(), and SUSY_HLT_Muon_Hadronic().

double SUSY_HLT_Muon_Hadronic::ptMuonOffline_
private

Definition at line 73 of file SUSY_HLT_Muon_Hadronic.h.

Referenced by analyze(), and SUSY_HLT_Muon_Hadronic().

double SUSY_HLT_Muon_Hadronic::ptThrJet_
private

Definition at line 77 of file SUSY_HLT_Muon_Hadronic.h.

Referenced by analyze(), and SUSY_HLT_Muon_Hadronic().

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

Definition at line 61 of file SUSY_HLT_Muon_Hadronic.h.

Referenced by analyze(), and SUSY_HLT_Muon_Hadronic().

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

Definition at line 58 of file SUSY_HLT_Muon_Hadronic.h.

Referenced by analyze(), and SUSY_HLT_Muon_Hadronic().

edm::EDGetTokenT<reco::PFJetCollection> SUSY_HLT_Muon_Hadronic::thePfJetCollection_
private

Definition at line 60 of file SUSY_HLT_Muon_Hadronic.h.

Referenced by analyze(), and SUSY_HLT_Muon_Hadronic().

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

Definition at line 59 of file SUSY_HLT_Muon_Hadronic.h.

Referenced by analyze(), and SUSY_HLT_Muon_Hadronic().

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

Definition at line 63 of file SUSY_HLT_Muon_Hadronic.h.

Referenced by analyze(), and SUSY_HLT_Muon_Hadronic().

edm::InputTag SUSY_HLT_Muon_Hadronic::triggerFilter_
private

Definition at line 72 of file SUSY_HLT_Muon_Hadronic.h.

Referenced by analyze(), and SUSY_HLT_Muon_Hadronic().

std::string SUSY_HLT_Muon_Hadronic::triggerPath_
private

Definition at line 69 of file SUSY_HLT_Muon_Hadronic.h.

Referenced by analyze(), bookHistos(), dqmBeginRun(), and SUSY_HLT_Muon_Hadronic().

std::string SUSY_HLT_Muon_Hadronic::triggerPathAuxiliaryForHadronic_
private

Definition at line 71 of file SUSY_HLT_Muon_Hadronic.h.

Referenced by analyze(), and SUSY_HLT_Muon_Hadronic().

std::string SUSY_HLT_Muon_Hadronic::triggerPathAuxiliaryForMuon_
private

Definition at line 70 of file SUSY_HLT_Muon_Hadronic.h.

Referenced by analyze(), and SUSY_HLT_Muon_Hadronic().

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

Definition at line 62 of file SUSY_HLT_Muon_Hadronic.h.

Referenced by analyze(), and SUSY_HLT_Muon_Hadronic().