2 #include "Math/GenVector/VectorUtil.h"
6 triggerEventObject_(ps.getUntrackedParameter<edm::InputTag>(
"triggerEventObject")),
7 CaloJetAlgorithm( ps.getUntrackedParameter<edm::InputTag>(
"CaloJetAlgorithm" ) ),
8 GenJetAlgorithm( ps.getUntrackedParameter<edm::InputTag>(
"GenJetAlgorithm" ) ),
9 CaloMETColl( ps.getUntrackedParameter<edm::InputTag>(
"CaloMETCollection" ) ),
10 GenMETColl( ps.getUntrackedParameter<edm::InputTag>(
"GenMETCollection" ) ),
12 triggerTag_(ps.getUntrackedParameter<std::string>(
"DQMFolder",
"SingleJet")),
13 _HLTPath(ps.getUntrackedParameter<edm::InputTag>(
"HLTPath")),
14 _HLTLow(ps.getUntrackedParameter<edm::InputTag>(
"HLTLow")),
15 outFile_(ps.getUntrackedParameter<std::string>(
"OutputFileName",
"")),
18 writeFile_(ps.getUntrackedParameter<bool>(
"WriteFile",
false))
30 _meRecoJetPtTrg= store->
book1D(
"_meRecoJetPtTrg",
"Single Reconstructed Jet Pt -- HLT Triggered",100,0,500);
31 _meRecoJetPtTrgLow= store->
book1D(
"_meRecoJetPtTrgLow",
"Single Reconstructed Jet Pt -- HLT Triggered Low",100,0,500);
34 _meRecoJetEtaTrg= store->
book1D(
"_meRecoJetEtaTrg",
"Single Reconstructed Jet Eta -- HLT Triggered",100,-10,10);
38 _meRecoJetPhiTrg= store->
book1D(
"_meRecoJetPhiTrg",
"Single Reconstructed Jet Phi -- HLT Triggered",100,-4.,4.);
42 _meGenJetPtTrg= store->
book1D(
"_meGenJetPtTrg",
"Single Generated Jet Pt -- HLT Triggered",100,0,500);
46 _meGenJetEtaTrg= store->
book1D(
"_meGenJetEtaTrg",
"Single Generated Jet Eta -- HLT Triggered",100,-10,10);
50 _meGenJetPhiTrg= store->
book1D(
"_meGenJetPhiTrg",
"Single Generated Jet Phi -- HLT Triggered",100,-4.,4.);
53 _meRecoMET= store->
book1D(
"_meRecoMET",
"Reconstructed Missing ET",100,0,500);
54 _meRecoMETTrg= store->
book1D(
"_meRecoMETTrg",
"Reconstructed Missing ET -- HLT Triggered",100,0,500);
55 _meRecoMETTrgLow= store->
book1D(
"_meRecoMETTrgLow",
"Reconstructed Missing ET -- HLT Triggered Low",100,0,500);
58 _meGenMETTrg= store->
book1D(
"_meGenMETTrg",
"Generated Missing ET -- HLT Triggered",100,0,500);
59 _meGenMETTrgLow= store->
book1D(
"_meGenMETTrgLow",
"Generated Missing ET -- HLT Triggered Low",100,0,500);
62 _meGenHTTrg= store->
book1D(
"_meGenHTTrg",
"Generated HT -- HLT Triggered",100,0,1000);
66 _meRecoHTTrg= store->
book1D(
"_meRecoHTTrg",
"Reconstructed HT -- HLT Triggered",100,0,1000);
101 using namespace reco;
102 using namespace l1extra;
103 using namespace trigger;
115 bool myTrigLow=
false;
119 if (! hltresults.isValid() ) {
148 double calJetEta=-999.;
149 double calJetPhi=-999.;
151 if (caloJets.isValid()) {
154 for( CaloJetCollection::const_iterator cal = caloJets->begin(); cal != caloJets->end(); ++ cal ) {
160 calJetEta=cal->eta();
161 calJetPhi=cal->phi();
193 double genJetEta=-999.;
194 double genJetPhi=-999.;
196 if (genJets.isValid()) {
199 for( GenJetCollection::const_iterator gen = genJets->begin(); gen != genJets->end(); ++ gen ) {
205 genJetEta=gen->eta();
206 genJetPhi=gen->phi();
238 if (recmet.isValid()) {
239 typedef CaloMETCollection::const_iterator cmiter;
241 for ( cmiter
i=recmet->begin();
i!=recmet->end();
i++) {
258 if (genmet.isValid()) {
259 typedef GenMETCollection::const_iterator cmiter;
261 for ( cmiter
i=genmet->begin();
i!=genmet->end();
i++) {
278 int ntrigs=hltresults.
size();
283 for (
int itrig = 0; itrig != ntrigs; ++itrig){
284 std::string trigName = triggerNames.
triggerName(itrig);
289 for (
int itrig = 0; itrig != ntrigs; ++itrig){
290 std::string trigName = triggerNames.
triggerName(itrig);
MonitorElement * _meGenJetEtaTrgLow
MonitorElement * _meRecoJetPtTrgLow
virtual edm::TriggerNames const & triggerNames(edm::TriggerResults const &triggerResults) const
MonitorElement * _meGenJetEta
MonitorElement * _meRecoJetEtaTrgLow
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
MonitorElement * _meRecoJetPtTrg
std::map< std::string, bool > hltTriggerMap
MonitorElement * _triggerResults
MonitorElement * _meRecoJetPhiTrgLow
MonitorElement * _meRecoJetEta
MonitorElement * _meRecoJetEtaTrg
MonitorElement * _meGenJetPt
bool accept() const
Has at least one path accepted the event?
MonitorElement * _meRecoJetPhiTrg
MonitorElement * _meRecoHTTrgLow
MonitorElement * _meGenMETTrgLow
MonitorElement * _meRecoMETTrg
Container::value_type value_type
bool accept(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
HLTJetMETValidation(const edm::ParameterSet &)
MonitorElement * _meGenJetPtTrgLow
MonitorElement * _meRecoMET
edm::InputTag CaloMETColl
edm::InputTag HLTriggerResults
MonitorElement * _meRecoHTTrg
unsigned int size() const
Get number of paths stored.
edm::InputTag GenJetAlgorithm
MonitorElement * _meGenHTTrgLow
MonitorElement * _meGenHT
MonitorElement * _meGenMETTrg
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
MonitorElement * _meGenMET
void getHLTResults(const edm::TriggerResults &, const edm::TriggerNames &triggerNames)
MonitorElement * _meGenJetPhi
MonitorElement * _meGenHTTrg
MonitorElement * _meRecoJetPhi
std::string const & triggerName(unsigned int index) const
MonitorElement * _meGenJetEtaTrg
MonitorElement * _meGenJetPtTrg
edm::InputTag triggerEventObject_
InputTag of TriggerEventWithRefs to analyze.
TLorentzVector genMet(const HepMC::GenEvent *all, double etamin=-9999., double etamax=9999.)
MonitorElement * _meRecoHT
MonitorElement * _meGenJetPhiTrgLow
MonitorElement * _meRecoMETTrgLow
MonitorElement * _meGenJetPhiTrg
std::map< std::string, bool >::iterator trig_iter
virtual void analyze(const edm::Event &, const edm::EventSetup &)
void setCurrentFolder(const std::string &fullpath)
MonitorElement * _meRecoJetPt
edm::InputTag CaloJetAlgorithm