CMS 3D CMS Logo

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

#include <JetMETAnalyzer.h>

Inheritance diagram for JetMETAnalyzer:
edm::EDAnalyzer edm::EDConsumerBase

Public Member Functions

void analyze (const edm::Event &, const edm::EventSetup &)
 Get the analysis. More...
 
void beginJob (void)
 Inizialize parameters for histo binning. More...
 
void beginRun (const edm::Run &, const edm::EventSetup &)
 Initialize run-based parameters. More...
 
void endJob (void)
 Save the histos. More...
 
void endRun (const edm::Run &, const edm::EventSetup &)
 Finish up a run. More...
 
 JetMETAnalyzer (const edm::ParameterSet &)
 Constructor. More...
 
virtual ~JetMETAnalyzer ()
 Destructor. More...
 
- Public Member Functions inherited from edm::EDAnalyzer
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzer ()
 
ModuleDescription const & moduleDescription () const
 
std::string workerType () const
 
virtual ~EDAnalyzer ()
 
- Public Member Functions inherited from edm::EDConsumerBase
 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
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

Private Attributes

bool _doHLTPhysicsOn
 
bool _doPVCheck
 
GenericTriggerEventFlag_HighPtJetEventFlag
 
bool _hlt_initialized
 
std::string _hlt_PhysDec
 
GenericTriggerEventFlag_LowPtJetEventFlag
 
int _LSBegin
 
int _LSEnd
 
int _nvtx_min
 
int _nvtxtrks_min
 
std::vector< unsigned > _techTrigsAND
 
std::vector< unsigned > _techTrigsNOT
 
std::vector< unsigned > _techTrigsOR
 
edm::InputTag _theGTLabel
 
edm::InputTag _theVertexLabel
 
bool _tightBHFiltering
 
double _vtxchi2_max
 
int _vtxndof_min
 
double _vtxz_max
 
MonitorElementcleanupME
 
DQMStoredbe
 
JetMETDQMDCSFilterDCSFilterAll
 
JetMETDQMDCSFilterDCSFilterCalo
 
JetMETDQMDCSFilterDCSFilterJPT
 
JetMETDQMDCSFilterDCSFilterPF
 
std::vector< std::string > highPtJetExpr_
 
HLTConfigProvider hltConfig_
 
std::vector< std::string > lowPtJetExpr_
 
MonitorElementlumisecME
 
std::string metname
 
edm::ParameterSet parameters
 
std::string processname_
 
JetAnalyzertheAKJetAnalyzer
 
edm::InputTag theAKJetCollectionLabel
 
edm::InputTag theCaloJetCollectionLabel
 
CaloMETAnalyzertheCaloMETAnalyzer
 
bool theCaloMETAnalyzerFlag
 
JetAnalyzertheCleanedAKJetAnalyzer
 
JetAnalyzertheCleanedICJetAnalyzer
 
JPTJetAnalyzertheCleanedJPTJetAnalyzer
 
PFJetAnalyzertheCleanedPFJetAnalyzer
 
JetPtAnalyzertheCleanedPtAKJetAnalyzer
 
JetPtAnalyzertheCleanedPtICJetAnalyzer
 
JetPtAnalyzertheCleanedPtSCJetAnalyzer
 
JetAnalyzertheCleanedSCJetAnalyzer
 
edm::ParameterSet theCleaningParameters
 
JetAnalyzertheDiJetAnalyzer
 
bool theDiJetSelectionFlag
 
HTMHTAnalyzertheHTMHTAnalyzer
 
bool theHTMHTAnalyzerFlag
 
JetAnalyzertheICJetAnalyzer
 
edm::InputTag theICJetCollectionLabel
 
bool theIConeJetAnalyzerFlag
 
JetAnalyzertheJetAnalyzer
 
bool theJetAnalyzerFlag
 
bool theJetCleaningFlag
 
bool theJetPtAnalyzerFlag
 
bool theJetPtCleaningFlag
 
JPTJetAnalyzertheJPTJetAnalyzer
 
bool theJPTJetAnalyzerFlag
 
bool theJPTJetCleaningFlag
 
edm::InputTag theJPTJetCollectionLabel
 
CaloMETAnalyzertheMuCorrMETAnalyzer
 
bool theMuCorrMETAnalyzerFlag
 
PFJetAnalyzerthePFDiJetAnalyzer
 
PFJetAnalyzerthePFJetAnalyzer
 
bool thePFJetAnalyzerFlag
 
bool thePFJetCleaningFlag
 
edm::InputTag thePFJetCollectionLabel
 
PFMETAnalyzerthePfMETAnalyzer
 
bool thePfMETAnalyzerFlag
 
JetPtAnalyzerthePtAKJetAnalyzer
 
JetPtAnalyzerthePtICJetAnalyzer
 
JetPtAnalyzerthePtSCJetAnalyzer
 
JetAnalyzertheSCJetAnalyzer
 
edm::InputTag theSCJetCollectionLabel
 
bool theSConeJetAnalyzerFlag
 
METAnalyzertheTcMETAnalyzer
 
bool theTcMETAnalyzerFlag
 
edm::InputTag theTriggerResultsLabel
 
MonitorElementverticesME
 

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
- Static Public Member Functions inherited from edm::EDAnalyzer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &)
 
- 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)
 

Detailed Description

DQM jetMET analysis monitoring

Author
F. Chlebana - Fermilab K. Hatakeyama - Rockefeller University

Definition at line 49 of file JetMETAnalyzer.h.

Constructor & Destructor Documentation

JetMETAnalyzer::JetMETAnalyzer ( const edm::ParameterSet pSet)

Constructor.

Definition at line 36 of file JetMETAnalyzer.cc.

References edm::ParameterSet::getParameter(), Parameters::parameters, and AlCaHLTBitMon_QueryRunRegistry::string.

36  {
37 
38  parameters = pSet;
39 
40  // Jet Collection Label
46 
48 
49  theJetAnalyzerFlag = parameters.getUntrackedParameter<bool>("DoJetAnalysis", true);
50  theJetCleaningFlag = parameters.getUntrackedParameter<bool>("DoJetCleaning", true);
51  theIConeJetAnalyzerFlag = parameters.getUntrackedParameter<bool>("DoIterativeCone", false);
52  theSConeJetAnalyzerFlag = parameters.getUntrackedParameter<bool>("DoSisCone", false);
53  theJetPtAnalyzerFlag = parameters.getUntrackedParameter<bool>("DoJetPtAnalysis", false);
54  theJetPtCleaningFlag = parameters.getUntrackedParameter<bool>("DoJetPtCleaning", false);
55  theJPTJetAnalyzerFlag = parameters.getUntrackedParameter<bool>("DoJPTJetAnalysis", false);
56  theJPTJetCleaningFlag = parameters.getUntrackedParameter<bool>("DoJPTJetCleaning", true);
57  thePFJetAnalyzerFlag = parameters.getUntrackedParameter<bool>("DoPFJetAnalysis", false);
58  thePFJetCleaningFlag = parameters.getUntrackedParameter<bool>("DoPFJetCleaning", true);
59  //
60  theDiJetSelectionFlag = parameters.getUntrackedParameter<bool>("DoDiJetSelection", true);
61  //
62  theCaloMETAnalyzerFlag = parameters.getUntrackedParameter<bool>("DoCaloMETAnalysis",true);
63  theTcMETAnalyzerFlag = parameters.getUntrackedParameter<bool>("DoTcMETAnalysis", true);
64  theMuCorrMETAnalyzerFlag = parameters.getUntrackedParameter<bool>("DoMuCorrMETAnalysis", true);
65  thePfMETAnalyzerFlag = parameters.getUntrackedParameter<bool>("DoPfMETAnalysis", true);
66  theHTMHTAnalyzerFlag = parameters.getUntrackedParameter<bool>("DoHTMHTAnalysis", true);
67 
68  // ==========================================================
69  //DCS information
70  // ==========================================================
75  // Used for Jet DQM - For MET DQM, DCS selection applied in ***METAnalyzer
76 
77  // --- do the analysis on the Jets
78  if(theJetAnalyzerFlag) {
80  theAKJetAnalyzer->setSource("AntiKtJets");
81  if(theSConeJetAnalyzerFlag) {
83  theSCJetAnalyzer->setSource("SISConeJets");
84  }
85  if(theIConeJetAnalyzerFlag){
87  theICJetAnalyzer->setSource("IterativeConeJets");
88  }
89  }
90 
91  if(theJetCleaningFlag) {
93  theCleanedAKJetAnalyzer->setSource("CleanedAntiKtJets");
94  if(theSConeJetAnalyzerFlag){
96  theCleanedSCJetAnalyzer->setSource("CleanedSISConeJets");
97  }
98  if(theIConeJetAnalyzerFlag){
100  theCleanedICJetAnalyzer->setSource("CleanedIterativeConeJets");
101  }
102  }
103 
104  if(theDiJetSelectionFlag){
106  theDiJetAnalyzer->setSource("DiJets");
107  }
108 
109  // Do Pt analysis
110  if(theJetPtAnalyzerFlag ) {
112  thePtAKJetAnalyzer->setSource("PtAnalysisAntiKtJets");
113  if(theSConeJetAnalyzerFlag){
115  thePtSCJetAnalyzer->setSource("PtAnalysisSISConeJets");
116  }
117  if(theIConeJetAnalyzerFlag){
119  thePtICJetAnalyzer->setSource("PtAnalysisIterativeConeJets");
120  }
121  }
122  // Do Cleaned Pt analysis
123  if(theJetPtCleaningFlag ) {
125  theCleanedPtAKJetAnalyzer->setSource("PtAnalysisCleanedAntiKtJets");
126  if(theSConeJetAnalyzerFlag){
128  theCleanedPtSCJetAnalyzer->setSource("PtAnalysisCleanedSISConeJets");
129  }
130  if(theIConeJetAnalyzerFlag){
132  theCleanedPtICJetAnalyzer->setSource("PtAnalysisCleanedIterativeConeJets");
133  }
134  }
135 
136  // --- do the analysis on JPT Jets
137  if(theJPTJetAnalyzerFlag) {
139  }
140  // --- do the analysis on JPT Cleaned Jets
141  if(theJPTJetCleaningFlag) {
143  }
144 
145  // --- do the analysis on the PFJets
146  if(thePFJetAnalyzerFlag){
148  thePFJetAnalyzer->setSource("uncPFJets");
149  }
150  // --- do the analysis on the CleanedPFJets
151  if(thePFJetCleaningFlag) {
154  }
155 
156  if(theDiJetSelectionFlag){
158  thePFDiJetAnalyzer->setSource("PFDiJets");
159  }
160  //Trigger selectoin
161  edm::ParameterSet highptjetparms = parameters.getParameter<edm::ParameterSet>("highPtJetTrigger");
162  edm::ParameterSet lowptjetparms = parameters.getParameter<edm::ParameterSet>("lowPtJetTrigger" );
163 
166 
167  highPtJetExpr_ = highptjetparms.getParameter<std::vector<std::string> >("hltPaths");
168  lowPtJetExpr_ = lowptjetparms .getParameter<std::vector<std::string> >("hltPaths");
169 
170  // --- do the analysis on the MET
171  if(theCaloMETAnalyzerFlag){
173  //theCaloMETNoHFAnalyzer = new CaloMETAnalyzer(parameters.getParameter<ParameterSet>("caloMETNoHFAnalysis"), consumesCollector());
174  //theCaloMETHOAnalyzer = new CaloMETAnalyzer(parameters.getParameter<ParameterSet>("caloMETHOAnalysis"), consumesCollector());
175  //theCaloMETNoHFHOAnalyzer = new CaloMETAnalyzer(parameters.getParameter<ParameterSet>("caloMETNoHFHOAnalysis"), consumesCollector());
176  }
177  if(theTcMETAnalyzerFlag){
179  }
180  if(theMuCorrMETAnalyzerFlag){
182  }
183  if(thePfMETAnalyzerFlag){
185  }
186  if(theHTMHTAnalyzerFlag){
188  }
189 
190  _LSBegin = parameters.getParameter<int>("LSBegin");
191  _LSEnd = parameters.getParameter<int>("LSEnd");
192 
194 
195  //jet cleanup parameters
197 
198  _hlt_PhysDec = theCleaningParameters.getParameter<std::string>("HLT_PhysDec");
199 
200  _techTrigsAND = theCleaningParameters.getParameter<std::vector<unsigned > >("techTrigsAND");
201  _techTrigsOR = theCleaningParameters.getParameter<std::vector<unsigned > >("techTrigsOR");
202  _techTrigsNOT = theCleaningParameters.getParameter<std::vector<unsigned > >("techTrigsNOT");
203 
204  _doPVCheck = theCleaningParameters.getParameter<bool>("doPrimaryVertexCheck");
205  _doHLTPhysicsOn = theCleaningParameters.getParameter<bool>("doHLTPhysicsOn");
206 
207  _tightBHFiltering = theCleaningParameters.getParameter<bool>("tightBHFiltering");
208 
209  _theVertexLabel = theCleaningParameters.getParameter<edm::InputTag>("vertexLabel");
210  _theGTLabel = theCleaningParameters.getParameter<edm::InputTag>("gtLabel");
211 
212  //Vertex requirements
213  if (_doPVCheck) {
214  _nvtx_min = theCleaningParameters.getParameter<int>("nvtx_min");
215  _nvtxtrks_min = theCleaningParameters.getParameter<int>("nvtxtrks_min");
216  _vtxndof_min = theCleaningParameters.getParameter<int>("vtxndof_min");
217  _vtxchi2_max = theCleaningParameters.getParameter<double>("vtxchi2_max");
218  _vtxz_max = theCleaningParameters.getParameter<double>("vtxz_max");
219  }
220 
221 }
std::vector< unsigned > _techTrigsAND
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
std::vector< std::string > highPtJetExpr_
JetMETDQMDCSFilter * DCSFilterPF
METAnalyzer * theTcMETAnalyzer
bool theSConeJetAnalyzerFlag
std::vector< unsigned > _techTrigsOR
bool theJPTJetAnalyzerFlag
JetAnalyzer * theAKJetAnalyzer
PFMETAnalyzer * thePfMETAnalyzer
edm::ParameterSet theCleaningParameters
edm::InputTag theAKJetCollectionLabel
JPTJetAnalyzer * theCleanedJPTJetAnalyzer
GenericTriggerEventFlag * _LowPtJetEventFlag
std::vector< std::string > lowPtJetExpr_
JetAnalyzer * theCleanedSCJetAnalyzer
Provides a code based selection for trigger and DCS information in order to have no failing filters i...
JetAnalyzer * theICJetAnalyzer
JetAnalyzer * theCleanedAKJetAnalyzer
bool theMuCorrMETAnalyzerFlag
JetPtAnalyzer * theCleanedPtAKJetAnalyzer
bool theIConeJetAnalyzerFlag
edm::InputTag thePFJetCollectionLabel
edm::InputTag theJPTJetCollectionLabel
bool theCaloMETAnalyzerFlag
edm::InputTag theSCJetCollectionLabel
void setSource(std::string source)
Definition: PFJetAnalyzer.h:48
edm::InputTag _theVertexLabel
edm::InputTag theICJetCollectionLabel
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
bool theJPTJetCleaningFlag
CaloMETAnalyzer * theMuCorrMETAnalyzer
bool theDiJetSelectionFlag
edm::InputTag theTriggerResultsLabel
JetAnalyzer * theCleanedICJetAnalyzer
std::string _hlt_PhysDec
JetMETDQMDCSFilter * DCSFilterAll
JPTJetAnalyzer * theJPTJetAnalyzer
std::string processname_
JetPtAnalyzer * thePtAKJetAnalyzer
PFJetAnalyzer * theCleanedPFJetAnalyzer
std::vector< unsigned > _techTrigsNOT
JetPtAnalyzer * thePtICJetAnalyzer
JetPtAnalyzer * theCleanedPtICJetAnalyzer
JetPtAnalyzer * theCleanedPtSCJetAnalyzer
edm::InputTag _theGTLabel
GenericTriggerEventFlag * _HighPtJetEventFlag
JetAnalyzer * theDiJetAnalyzer
JetPtAnalyzer * thePtSCJetAnalyzer
JPT jet analyzer class definition.
JetMETDQMDCSFilter * DCSFilterCalo
void setSource(std::string source)
Definition: JetPtAnalyzer.h:55
edm::ParameterSet parameters
void setSource(std::string source)
Definition: JetAnalyzer.h:60
PFJetAnalyzer * thePFDiJetAnalyzer
JetMETDQMDCSFilter * DCSFilterJPT
JetAnalyzer * theSCJetAnalyzer
PFJetAnalyzer * thePFJetAnalyzer
CaloMETAnalyzer * theCaloMETAnalyzer
HTMHTAnalyzer * theHTMHTAnalyzer
JetMETAnalyzer::~JetMETAnalyzer ( )
virtual

Destructor.

Definition at line 224 of file JetMETAnalyzer.cc.

224  {
225 
226  if(theJetAnalyzerFlag) {
227  delete theAKJetAnalyzer;
230  }
231  if(theJetCleaningFlag) {
235  }
237  delete theDiJetAnalyzer;
238  }
240  delete thePtAKJetAnalyzer;
243  }
244 
249  }
250 
253 
257 
258  delete _HighPtJetEventFlag;
259  delete _LowPtJetEventFlag;
260 
262  delete theCaloMETAnalyzer;
263  //delete theCaloMETNoHFAnalyzer;
264  //delete theCaloMETHOAnalyzer;
265  //delete theCaloMETNoHFHOAnalyzer;
266  }
271 
272  delete DCSFilterCalo;
273  delete DCSFilterPF;
274  delete DCSFilterJPT;
275  delete DCSFilterAll;
276 
277 }
JetMETDQMDCSFilter * DCSFilterPF
METAnalyzer * theTcMETAnalyzer
bool theSConeJetAnalyzerFlag
bool theJPTJetAnalyzerFlag
JetAnalyzer * theAKJetAnalyzer
PFMETAnalyzer * thePfMETAnalyzer
JPTJetAnalyzer * theCleanedJPTJetAnalyzer
GenericTriggerEventFlag * _LowPtJetEventFlag
JetAnalyzer * theCleanedSCJetAnalyzer
JetAnalyzer * theICJetAnalyzer
JetAnalyzer * theCleanedAKJetAnalyzer
bool theMuCorrMETAnalyzerFlag
JetPtAnalyzer * theCleanedPtAKJetAnalyzer
bool theIConeJetAnalyzerFlag
bool theCaloMETAnalyzerFlag
bool theJPTJetCleaningFlag
CaloMETAnalyzer * theMuCorrMETAnalyzer
bool theDiJetSelectionFlag
JetAnalyzer * theCleanedICJetAnalyzer
JetMETDQMDCSFilter * DCSFilterAll
JPTJetAnalyzer * theJPTJetAnalyzer
JetPtAnalyzer * thePtAKJetAnalyzer
PFJetAnalyzer * theCleanedPFJetAnalyzer
JetPtAnalyzer * thePtICJetAnalyzer
JetPtAnalyzer * theCleanedPtICJetAnalyzer
JetPtAnalyzer * theCleanedPtSCJetAnalyzer
GenericTriggerEventFlag * _HighPtJetEventFlag
JetAnalyzer * theDiJetAnalyzer
JetPtAnalyzer * thePtSCJetAnalyzer
JetMETDQMDCSFilter * DCSFilterCalo
PFJetAnalyzer * thePFDiJetAnalyzer
JetMETDQMDCSFilter * DCSFilterJPT
JetAnalyzer * theSCJetAnalyzer
PFJetAnalyzer * thePFJetAnalyzer
CaloMETAnalyzer * theCaloMETAnalyzer
HTMHTAnalyzer * theHTMHTAnalyzer

Member Function Documentation

void JetMETAnalyzer::analyze ( const edm::Event iEvent,
const edm::EventSetup iSetup 
)
virtual

Get the analysis.

Implements edm::EDAnalyzer.

Definition at line 430 of file JetMETAnalyzer.cc.

References FamosSequences_cff::caloJets, gather_cfg::cout, DEBUG, edm::Event::getByLabel(), i, edm::HandleBase::isValid(), LogTrace, edm::EventBase::luminosityBlock(), metname, pfJets_cff::pfJets, edm::Handle< T >::product(), edm::TriggerNames::size(), edm::TriggerNames::triggerIndex(), edm::TriggerNames::triggerName(), edm::Event::triggerNames(), edm::triggerResults(), findQualityFiles::v, and GoodVertex_cfg::vertexCollection.

430  {
431 
432  LogTrace(metname)<<"[JetMETAnalyzer] Analysis of event # ";
433 
434  // *** Fill lumisection ME
435  int myLuminosityBlock;
436  myLuminosityBlock = iEvent.luminosityBlock();
437  lumisecME->Fill(myLuminosityBlock);
438 
439  if (myLuminosityBlock<_LSBegin) return;
440  if (myLuminosityBlock>_LSEnd && _LSEnd>0) return;
441 
442  // **** Get the TriggerResults container
444  iEvent.getByLabel(theTriggerResultsLabel, triggerResults);
445 
446  bool bPhysicsDeclared = false;
447  if(!_doHLTPhysicsOn) bPhysicsDeclared = true;
448 
449  Int_t JetLoPass = 0;
450  Int_t JetHiPass = 0;
451 
452  if (triggerResults.isValid()){
453  const edm::TriggerNames & triggerNames = iEvent.triggerNames(*triggerResults);
454 
455  if( triggerNames.triggerIndex("HLT_PhysicsDeclared") != triggerNames.size() )
456  if (triggerResults->accept(triggerNames.triggerIndex("HLT_PhysicsDeclared"))) {
457  if(_doHLTPhysicsOn) bPhysicsDeclared = true;
458  }
459 
460  /*
461  //sanity check
462  if (_hlt_initialized && hltConfig_.size() && triggerResults->size()==hltConfig_.size()){
463  //check the trigger results
464  for (unsigned int j=0; j!=hltConfig_.size(); ++j) {
465  if (triggerResults->accept(j)){
466  if (hltpathME) hltpathME->Fill(j);
467  }
468  }
469  }
470  */
471  const unsigned int nTrig(triggerNames.size());
472  for (unsigned int i=0;i<nTrig;++i)
473  {
474  if (triggerNames.triggerName(i).find(highPtJetExpr_[0].substr(0,highPtJetExpr_[0].rfind("_v")+2))!=std::string::npos && triggerResults->accept(i))
475  JetHiPass=1;
476  else if (triggerNames.triggerName(i).find(lowPtJetExpr_[0].substr(0,lowPtJetExpr_[0].rfind("_v")+2))!=std::string::npos && triggerResults->accept(i))
477  JetLoPass=1;
478  }
479 
480  }
481 
482  if (DEBUG) std::cout << "trigger label " << theTriggerResultsLabel << std::endl;
483 
484  /*
485  if ( _HighPtJetEventFlag->on() && _HighPtJetEventFlag->accept( iEvent, iSetup) )
486  JetHiPass=1;
487 
488  if ( _LowPtJetEventFlag->on() && _LowPtJetEventFlag->accept( iEvent, iSetup) )
489  JetLoPass=1;
490  */
491 
492  if (DEBUG) {
493  std::cout << ">>> Trigger Lo = " << JetLoPass
494  << " Hi = " << JetHiPass
495  << std::endl;
496  }
497 
498  // ==========================================================
499  //Vertex information
500 
501  int _numPV = 0;
502  bool bPrimaryVertex = true;
503  if(_doPVCheck){
504  bPrimaryVertex = false;
505  Handle<reco::VertexCollection> vertexHandle;
506 
507  iEvent.getByLabel(_theVertexLabel, vertexHandle);
508 
509  if (!vertexHandle.isValid()) {
510  LogInfo("JetMETAnalyzer") << "JetMETAnalyzer: Could not find vertex collection" << std::endl;
511  if (DEBUG) std::cout << "JetMETAnalyzer: Could not find vertex collection" << std::endl;
512  }
513 
514  if ( vertexHandle.isValid() ){
515  reco::VertexCollection vertexCollection = *(vertexHandle.product());
516  int vertex_number = vertexCollection.size();
517  reco::VertexCollection::const_iterator v = vertexCollection.begin();
518  for ( ; v != vertexCollection.end(); ++v) {
519  double vertex_chi2 = v->normalizedChi2();
520  double vertex_ndof = v->ndof();
521  bool fakeVtx = v->isFake();
522  double vertex_Z = v->z();
523 
524  if ( !fakeVtx
525  && vertex_number>=_nvtx_min
526  && vertex_ndof >_vtxndof_min
527  && vertex_chi2 <_vtxchi2_max
528  && fabs(vertex_Z)<_vtxz_max ) {
529  bPrimaryVertex = true;
530  ++_numPV;
531  }
532  }
533  }
534  }
535  verticesME->Fill(_numPV);
536  // ==========================================================
537 
539  iEvent.getByLabel( _theGTLabel, gtReadoutRecord);
540 
541  if (!gtReadoutRecord.isValid()) {
542  LogInfo("JetMETAnalyzer") << "JetMETAnalyzer: Could not find GT readout record" << std::endl;
543  if (DEBUG) std::cout << "JetMETAnalyzer: Could not find GT readout record product" << std::endl;
544  }
545 
546  bool bTechTriggers = true;
547  bool bTechTriggersAND = true;
548  bool bTechTriggersOR = false;
549  bool bTechTriggersNOT = false;
550 
551  if (gtReadoutRecord.isValid()) {
552  const TechnicalTriggerWord& technicalTriggerWordBeforeMask = gtReadoutRecord->technicalTriggerWord();
553 
554  if (_techTrigsAND.size() == 0)
555  bTechTriggersAND = true;
556  else
557  for (unsigned ttr = 0; ttr != _techTrigsAND.size(); ttr++) {
558  bTechTriggersAND = bTechTriggersAND && technicalTriggerWordBeforeMask.at(_techTrigsAND.at(ttr));
559  }
560 
561  if (_techTrigsAND.size() == 0)
562  bTechTriggersOR = true;
563  else
564  for (unsigned ttr = 0; ttr != _techTrigsOR.size(); ttr++) {
565  bTechTriggersOR = bTechTriggersOR || technicalTriggerWordBeforeMask.at(_techTrigsOR.at(ttr));
566  }
567  if (_techTrigsNOT.size() == 0)
568  bTechTriggersNOT = false;
569  else
570  for (unsigned ttr = 0; ttr != _techTrigsNOT.size(); ttr++) {
571  bTechTriggersNOT = bTechTriggersNOT || technicalTriggerWordBeforeMask.at(_techTrigsNOT.at(ttr));
572  }
573  }
574  else
575  {
576  bTechTriggersAND = true;
577  bTechTriggersOR = true;
578  bTechTriggersNOT = false;
579  }
580 
581  if (_techTrigsAND.size()==0)
582  bTechTriggersAND = true;
583  if (_techTrigsOR.size()==0)
584  bTechTriggersOR = true;
585  if (_techTrigsNOT.size()==0)
586  bTechTriggersNOT = false;
587 
588  bTechTriggers = bTechTriggersAND && bTechTriggersOR && !bTechTriggersNOT;
589 
590  bool bJetCleanup = bTechTriggers && bPrimaryVertex && bPhysicsDeclared;
591 
592  DCSFilterAll->filter(iEvent, iSetup);
593  if (bPrimaryVertex) cleanupME->Fill(0.5);
594  if ( DCSFilterAll->passPIX ) cleanupME->Fill(1.5);
595  if ( DCSFilterAll->passSiStrip ) cleanupME->Fill(2.5);
596  if ( DCSFilterAll->passECAL ) cleanupME->Fill(3.5);
597  if ( DCSFilterAll->passES ) cleanupME->Fill(4.5);
598  if ( DCSFilterAll->passHBHE ) cleanupME->Fill(5.5);
599  if ( DCSFilterAll->passHF ) cleanupME->Fill(6.5);
600  if ( DCSFilterAll->passHO ) cleanupME->Fill(7.5);
601  if ( DCSFilterAll->passMuon ) cleanupME->Fill(8.5);
602 
603  // **** Get the Calo Jet container
605 
606 
607  // **** Get the AntiKt Jet container
608  iEvent.getByLabel(theAKJetCollectionLabel, caloJets);
609  if(caloJets.isValid()) {
610 
611  if(theJetAnalyzerFlag){
612  theAKJetAnalyzer->setJetHiPass(JetHiPass);
613  theAKJetAnalyzer->setJetLoPass(JetLoPass);
614  theAKJetAnalyzer->analyze(iEvent, iSetup, *caloJets, _numPV);
615  }
617  LogTrace(metname)<<"[JetMETAnalyzer] Call to the Jet Pt anti-Kt analyzer";
618  thePtAKJetAnalyzer->analyze(iEvent, iSetup, *caloJets);
619  }
620 
621  }
622 
623  if(caloJets.isValid() && bJetCleanup) {
624  if(DCSFilterCalo->filter(iEvent, iSetup)){
625  if(theJetCleaningFlag){
628  theCleanedAKJetAnalyzer->analyze(iEvent, iSetup, *caloJets, _numPV);
629  }
631  LogTrace(metname)<<"[JetMETAnalyzer] Call to the Cleaned Jet Pt anti-Kt analyzer";
632  theCleanedPtAKJetAnalyzer->analyze(iEvent, iSetup, *caloJets);
633  }
634  } // DCS
635  } // caloJets.isValid()
636 
637  if(caloJets.isValid() && bJetCleanup){
638  if(DCSFilterCalo->filter(iEvent, iSetup)){
640  theDiJetAnalyzer->analyze(iEvent, iSetup, *caloJets, _numPV);
641  }
642  } // DCS
643  } // caloJets.isValid()
644 
645 
646  if(caloJets.isValid()){
648  LogTrace(metname)<<"[JetMETAnalyzer] Call to the Jet Pt anti-Kt analyzer";
649  thePtAKJetAnalyzer->analyze(iEvent, iSetup, *caloJets);
650  }
651  }
652 
653  if(caloJets.isValid() && bJetCleanup){
654  if(DCSFilterCalo->filter(iEvent, iSetup)){
656  LogTrace(metname)<<"[JetMETAnalyzer] Call to the Cleaned Jet Pt anti-Kt analyzer";
657  theCleanedPtAKJetAnalyzer->analyze(iEvent, iSetup, *caloJets);
658  }
659  } // DCS
660  } // caloJets.isValid()
661 
662  // **** Get the SISCone Jet container
663  iEvent.getByLabel(theSCJetCollectionLabel, caloJets);
665  if(caloJets.isValid()){
666  if(theJetAnalyzerFlag){
667  theSCJetAnalyzer->setJetHiPass(JetHiPass);
668  theSCJetAnalyzer->setJetLoPass(JetLoPass);
669  theSCJetAnalyzer->analyze(iEvent, iSetup, *caloJets, _numPV);
670  }
672  LogTrace(metname)<<"[JetMETAnalyzer] Call to the Jet Pt SisCone analyzer";
673  thePtSCJetAnalyzer->analyze(iEvent, iSetup, *caloJets);
674  }
675  }
676 
677  if(caloJets.isValid() && bJetCleanup){
678  if(DCSFilterCalo->filter(iEvent, iSetup)){
679  if(theJetCleaningFlag){
682  theCleanedSCJetAnalyzer->analyze(iEvent, iSetup, *caloJets, _numPV);
683  }
685  LogTrace(metname)<<"[JetMETAnalyzer] Call to the Cleaned Jet Pt SisCone analyzer";
686  theCleanedPtSCJetAnalyzer->analyze(iEvent, iSetup, *caloJets);
687  }
688  } // DCS
689  } // caloJets.isValid()
690  }
691  // **** Get the Iterative Cone Jet container
692  iEvent.getByLabel(theICJetCollectionLabel, caloJets);
694  if(caloJets.isValid()){
695  if(theJetAnalyzerFlag){
696  theICJetAnalyzer->setJetHiPass(JetHiPass);
697  theICJetAnalyzer->setJetLoPass(JetLoPass);
698  theICJetAnalyzer->analyze(iEvent, iSetup, *caloJets, _numPV);
699  }
701  LogTrace(metname)<<"[JetMETAnalyzer] Call to the Jet Pt ICone analyzer";
702  thePtICJetAnalyzer->analyze(iEvent, iSetup, *caloJets);
703  }
704  }
705 
706  if(caloJets.isValid() && bJetCleanup){
707  if(DCSFilterCalo->filter(iEvent, iSetup)){
708  if(theJetCleaningFlag){
711  theCleanedICJetAnalyzer->analyze(iEvent, iSetup, *caloJets, _numPV);
712  }
714  LogTrace(metname)<<"[JetMETAnalyzer] Call to the Cleaned Jet Pt ICone analyzer";
715  theCleanedPtICJetAnalyzer->analyze(iEvent, iSetup, *caloJets);
716  }
717  } // DCS
718  } // isValid
719  }
720 
721  // **** Get the JPT Jet container
723  iEvent.getByLabel(theJPTJetCollectionLabel, jptJets);
724  if(jptJets.isValid() && theJPTJetAnalyzerFlag){
725  //theJPTJetAnalyzer->setJetHiPass(JetHiPass);
726  //theJPTJetAnalyzer->setJetLoPass(JetLoPass);
727  theJPTJetAnalyzer->analyze(iEvent, iSetup, *jptJets, _numPV);
728  }
729 
730  if(jptJets.isValid() && bJetCleanup && theJPTJetCleaningFlag){
731  if(DCSFilterJPT->filter(iEvent, iSetup)){
732  //theCleanedJPTJetAnalyzer->setJetHiPass(JetHiPass);
733  //theCleanedJPTJetAnalyzer->setJetLoPass(JetLoPass);
734  theCleanedJPTJetAnalyzer->analyze(iEvent, iSetup, *jptJets, _numPV);
735  }
736  }
737 
738  // **** Get the PFlow Jet container
740  iEvent.getByLabel(thePFJetCollectionLabel, pfJets);
741 
742  if(pfJets.isValid()){
744  thePFJetAnalyzer->setJetHiPass(JetHiPass);
745  thePFJetAnalyzer->setJetLoPass(JetLoPass);
746  LogTrace(metname)<<"[JetMETAnalyzer] Call to the PFJet analyzer";
747  thePFJetAnalyzer->analyze(iEvent, iSetup, *pfJets, _numPV);
748  }
750  if(DCSFilterPF->filter(iEvent, iSetup)){
753  LogTrace(metname)<<"[JetMETAnalyzer] Call to the Cleaned PFJet analyzer";
754  theCleanedPFJetAnalyzer->analyze(iEvent, iSetup, *pfJets, _numPV);
756  thePFDiJetAnalyzer->analyze(iEvent, iSetup, *pfJets, _numPV);
757  }
758  } // DCS
759  }
760  } else {
761  if (DEBUG) LogTrace(metname)<<"[JetMETAnalyzer] pfjets NOT VALID!!";
762  }
763 
764  //
765  // **** CaloMETAnalyzer **** //
766  //
768 
769  theCaloMETAnalyzer->analyze(iEvent, iSetup, *triggerResults);
770  //theCaloMETNoHFAnalyzer->analyze(iEvent, iSetup, *triggerResults);
771  //theCaloMETHOAnalyzer->analyze(iEvent, iSetup, *triggerResults);
772  //theCaloMETNoHFHOAnalyzer->analyze(iEvent, iSetup, *triggerResults);
773  }
774 
775  //
776  // **** TcMETAnalyzer **** //
777  //
779 
780  theTcMETAnalyzer->analyze(iEvent, iSetup, *triggerResults);
781 
782  }
783 
784  //
785  // **** MuCorrMETAnalyzer **** //
786  //
788 
789  theMuCorrMETAnalyzer->analyze(iEvent, iSetup, *triggerResults);
790 
791  }
792 
793  //
794  // **** PfMETAnalyzer **** //
795  //
797 
798  thePfMETAnalyzer->analyze(iEvent, iSetup, *triggerResults);
799 
800  }
801 
802  //
803  // **** HTMHTAnalyzer **** //
804  //
806 
807  theHTMHTAnalyzer->analyze(iEvent, iSetup, *triggerResults);
808 
809  }
810 
811 }
std::vector< unsigned > _techTrigsAND
std::vector< std::string > highPtJetExpr_
int i
Definition: DBlmapReader.cc:9
JetMETDQMDCSFilter * DCSFilterPF
METAnalyzer * theTcMETAnalyzer
virtual edm::TriggerNames const & triggerNames(edm::TriggerResults const &triggerResults) const
Definition: Event.cc:204
bool theSConeJetAnalyzerFlag
MonitorElement * verticesME
std::vector< unsigned > _techTrigsOR
bool theJPTJetAnalyzerFlag
JetAnalyzer * theAKJetAnalyzer
PFMETAnalyzer * thePfMETAnalyzer
edm::InputTag theAKJetCollectionLabel
JPTJetAnalyzer * theCleanedJPTJetAnalyzer
std::vector< std::string > lowPtJetExpr_
void analyze(const edm::Event &event, const edm::EventSetup &eventSetup, const reco::JPTJet &jptJet, double &pt1, double &pt2, double &pt3, const int numPV)
Do the analysis.
edm::LuminosityBlockNumber_t luminosityBlock() const
Definition: EventBase.h:59
void analyze(const edm::Event &, const edm::EventSetup &, const edm::TriggerResults &)
Get the analysis.
std::vector< Vertex > VertexCollection
collection of Vertex objects
Definition: VertexFwd.h:9
JetAnalyzer * theCleanedSCJetAnalyzer
Strings::size_type size() const
Definition: TriggerNames.cc:39
JetAnalyzer * theICJetAnalyzer
JetAnalyzer * theCleanedAKJetAnalyzer
tuple vertexCollection
MonitorElement * lumisecME
bool theMuCorrMETAnalyzerFlag
JetPtAnalyzer * theCleanedPtAKJetAnalyzer
void Fill(long long x)
bool theIConeJetAnalyzerFlag
edm::InputTag thePFJetCollectionLabel
edm::InputTag theJPTJetCollectionLabel
bool theCaloMETAnalyzerFlag
edm::InputTag theSCJetCollectionLabel
void setJetLoPass(int pass)
Definition: PFJetAnalyzer.h:58
unsigned int triggerIndex(std::string const &name) const
Definition: TriggerNames.cc:32
void analyze(const edm::Event &, const edm::EventSetup &, const edm::TriggerResults &)
Get the analysis.
edm::InputTag _theVertexLabel
void setJetLoPass(int pass)
Definition: JetAnalyzer.h:70
edm::InputTag theICJetCollectionLabel
bool theJPTJetCleaningFlag
CaloMETAnalyzer * theMuCorrMETAnalyzer
std::vector< bool > TechnicalTriggerWord
technical trigger bits (64 bits)
void analyze(const edm::Event &, const edm::EventSetup &, const reco::CaloJetCollection &caloJets)
Get the analysis.
std::string metname
static std::string const triggerResults
Definition: EdmProvDump.cc:41
bool isValid() const
Definition: HandleBase.h:76
bool theDiJetSelectionFlag
void setJetHiPass(int pass)
Definition: PFJetAnalyzer.h:62
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Definition: Event.h:390
bool filter(const edm::Event &evt, const edm::EventSetup &es)
edm::InputTag theTriggerResultsLabel
#define LogTrace(id)
JetAnalyzer * theCleanedICJetAnalyzer
void setJetHiPass(int pass)
Definition: JetAnalyzer.h:74
JetMETDQMDCSFilter * DCSFilterAll
JPTJetAnalyzer * theJPTJetAnalyzer
#define DEBUG
std::string const & triggerName(unsigned int index) const
Definition: TriggerNames.cc:27
JetPtAnalyzer * thePtAKJetAnalyzer
PFJetAnalyzer * theCleanedPFJetAnalyzer
std::vector< unsigned > _techTrigsNOT
JetPtAnalyzer * thePtICJetAnalyzer
T const * product() const
Definition: Handle.h:81
JetPtAnalyzer * theCleanedPtICJetAnalyzer
JetPtAnalyzer * theCleanedPtSCJetAnalyzer
edm::InputTag _theGTLabel
JetAnalyzer * theDiJetAnalyzer
JetPtAnalyzer * thePtSCJetAnalyzer
void analyze(const edm::Event &, const edm::EventSetup &, const reco::PFJetCollection &pfJets, const int numPV)
Get the analysis.
tuple cout
Definition: gather_cfg.py:121
JetMETDQMDCSFilter * DCSFilterCalo
MonitorElement * cleanupME
tuple pfJets
Definition: pfJets_cff.py:8
void analyze(const edm::Event &, const edm::EventSetup &, const edm::TriggerResults &)
Get the analysis.
PFJetAnalyzer * thePFDiJetAnalyzer
void analyze(const edm::Event &, const edm::EventSetup &, const edm::TriggerResults &)
Get the analysis.
Definition: METAnalyzer.cc:421
void analyze(const edm::Event &, const edm::EventSetup &, const reco::CaloJetCollection &caloJets, const int numPV)
Get the analysis.
Definition: JetAnalyzer.cc:271
JetMETDQMDCSFilter * DCSFilterJPT
JetAnalyzer * theSCJetAnalyzer
PFJetAnalyzer * thePFJetAnalyzer
CaloMETAnalyzer * theCaloMETAnalyzer
HTMHTAnalyzer * theHTMHTAnalyzer
void JetMETAnalyzer::beginJob ( void  )
virtual

Inizialize parameters for histo binning.

Reimplemented from edm::EDAnalyzer.

Definition at line 280 of file JetMETAnalyzer.cc.

References LogTrace, metname, and cppFunctionSkipper::operator.

280  {
281 
282  metname = "JetMETAnalyzer";
283 
284  LogTrace(metname)<<"[JetMETAnalyzer] Parameters initialization";
286 
287  //
288  //--- Jet
289  if(theJetAnalyzerFlag) {
293  }
294  if(theJetCleaningFlag) {
298  }
300  if(theJetPtAnalyzerFlag ) {
304  }
305  if(theJetPtCleaningFlag ) {
309  }
310 
313 
317 
318  //
319  //--- MET
322  //theCaloMETNoHFAnalyzer->beginJob(dbe);
323  //theCaloMETHOAnalyzer->beginJob(dbe);
324  //theCaloMETNoHFHOAnalyzer->beginJob(dbe);
325  }
330 
331  dbe->setCurrentFolder("JetMET");
332  lumisecME = dbe->book1D("lumisec", "lumisec", 500, 0., 500.);
333  cleanupME = dbe->book1D("cleanup", "cleanup", 10, 0., 10.);
334  cleanupME->setBinLabel(1,"Primary Vertex");
335  cleanupME->setBinLabel(2,"DCS::Pixel");
336  cleanupME->setBinLabel(3,"DCS::SiStrip");
337  cleanupME->setBinLabel(4,"DCS::ECAL");
338  cleanupME->setBinLabel(5,"DCS::ES");
339  cleanupME->setBinLabel(6,"DCS::HBHE");
340  cleanupME->setBinLabel(7,"DCS::HF");
341  cleanupME->setBinLabel(8,"DCS::HO");
342  cleanupME->setBinLabel(9,"DCS::Muon");
343 
344  verticesME = dbe->book1D("vertices", "vertices", 50, 0, 50);
345 }
METAnalyzer * theTcMETAnalyzer
void beginJob(DQMStore *dbe)
Inizialize parameters for histo binning.
Definition: METAnalyzer.cc:77
bool theSConeJetAnalyzerFlag
MonitorElement * verticesME
bool theJPTJetAnalyzerFlag
JetAnalyzer * theAKJetAnalyzer
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
Definition: DQMStore.cc:872
PFMETAnalyzer * thePfMETAnalyzer
JPTJetAnalyzer * theCleanedJPTJetAnalyzer
void beginJob(DQMStore *dbe)
Inizialize parameters for histo binning.
DQMStore * dbe
void setBinLabel(int bin, const std::string &label, int axis=1)
set bin label for x, y or z axis (axis=1, 2, 3 respectively)
JetAnalyzer * theCleanedSCJetAnalyzer
JetAnalyzer * theICJetAnalyzer
JetAnalyzer * theCleanedAKJetAnalyzer
MonitorElement * lumisecME
bool theMuCorrMETAnalyzerFlag
JetPtAnalyzer * theCleanedPtAKJetAnalyzer
bool theIConeJetAnalyzerFlag
bool theCaloMETAnalyzerFlag
void beginJob(DQMStore *dbe)
Inizialize parameters for histo binning.
bool theJPTJetCleaningFlag
CaloMETAnalyzer * theMuCorrMETAnalyzer
std::string metname
bool theDiJetSelectionFlag
#define LogTrace(id)
void beginJob(DQMStore *dbe)
Inizialize parameters for histo binning.
JetAnalyzer * theCleanedICJetAnalyzer
void beginJob(DQMStore *dbe)
Inizialize parameters for histo binning.
JPTJetAnalyzer * theJPTJetAnalyzer
JetPtAnalyzer * thePtAKJetAnalyzer
PFJetAnalyzer * theCleanedPFJetAnalyzer
JetPtAnalyzer * thePtICJetAnalyzer
void beginJob(DQMStore *dbe)
Inizialize parameters for histo binning.
void beginJob(DQMStore *dbe)
Inizialize parameters for histo binning.
Definition: JetAnalyzer.cc:48
JetPtAnalyzer * theCleanedPtICJetAnalyzer
JetPtAnalyzer * theCleanedPtSCJetAnalyzer
JetAnalyzer * theDiJetAnalyzer
JetPtAnalyzer * thePtSCJetAnalyzer
void beginJob(DQMStore *dbe)
Inizialize parameters for histo binning.
MonitorElement * cleanupME
PFJetAnalyzer * thePFDiJetAnalyzer
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:584
JetAnalyzer * theSCJetAnalyzer
PFJetAnalyzer * thePFJetAnalyzer
CaloMETAnalyzer * theCaloMETAnalyzer
HTMHTAnalyzer * theHTMHTAnalyzer
void JetMETAnalyzer::beginRun ( const edm::Run iRun,
const edm::EventSetup iSetup 
)
virtual

Initialize run-based parameters.

Reimplemented from edm::EDAnalyzer.

Definition at line 348 of file JetMETAnalyzer.cc.

References LogDebug.

349 {
350  //LogDebug("JetMETAnalyzer") << "beginRun, run " << run.id();
351  //
352 
353  if ( _HighPtJetEventFlag->on() ) _HighPtJetEventFlag->initRun( iRun, iSetup );
354  if ( _LowPtJetEventFlag ->on() ) _LowPtJetEventFlag ->initRun( iRun, iSetup );
355 
356  if (_HighPtJetEventFlag->on() && _HighPtJetEventFlag->expressionsFromDB(_HighPtJetEventFlag->hltDBKey(), iSetup)[0] != "CONFIG_ERROR")
358  if (_LowPtJetEventFlag->on() && _LowPtJetEventFlag->expressionsFromDB(_LowPtJetEventFlag->hltDBKey(), iSetup)[0] != "CONFIG_ERROR")
360 
361  //--- htlConfig_
362  //processname_="HLT";
363  bool changed(true);
364  _hlt_initialized = hltConfig_.init(iRun,iSetup,processname_,changed);
365  if (!_hlt_initialized) {
366  //if (!hltConfig_.init(iRun,iSetup,processname_,changed)) {
367  processname_ = "FU";
368  _hlt_initialized = hltConfig_.init(iRun,iSetup,processname_,changed);
369  if(!_hlt_initialized){
370  //if (!hltConfig_.init(iRun,iSetup,processname_,changed)){
371  LogDebug("JetMETAnalyzer") << "HLTConfigProvider failed to initialize.";
372  }
373  }
374 
375  /*
376  hltpathME = 0;
377  if (_hlt_initialized) {
378  //if (hltConfig_.init(iRun,iSetup,processname_,changed)) {
379  if (hltConfig_.size()){
380  dbe->setCurrentFolder("JetMET");
381  hltpathME = dbe->book1D("hltpath", "hltpath", 300, 0., 300.);
382  }
383 
384  for (unsigned int j=0; j!=hltConfig_.size(); ++j) {
385  if (hltpathME) hltpathME->setBinLabel(j+1,hltConfig_.triggerName(j));
386  // if (hltConfig_.triggerName(j)=="HLT_PhysicsDeclared")
387  }
388  }
389  */
390  //
391  //--- Jet
392 
393  //
394  //--- MET
396  theCaloMETAnalyzer->beginRun(iRun, iSetup);
397  //theCaloMETNoHFAnalyzer->beginRun(iRun, iSetup);
398  //theCaloMETHOAnalyzer->beginRun(iRun, iSetup);
399  //theCaloMETNoHFHOAnalyzer->beginRun(iRun, iSetup);
400  }
404  //if(theHTMHTAnalyzerFlag) theHTMHTAnalyzer->beginRun(iRun, iSetup);
405 
406 }
#define LogDebug(id)
std::vector< std::string > highPtJetExpr_
METAnalyzer * theTcMETAnalyzer
PFMETAnalyzer * thePfMETAnalyzer
void beginRun(const edm::Run &, const edm::EventSetup &)
Initialize run-based parameters.
Definition: METAnalyzer.cc:309
GenericTriggerEventFlag * _LowPtJetEventFlag
std::vector< std::string > lowPtJetExpr_
bool theMuCorrMETAnalyzerFlag
std::vector< std::string > expressionsFromDB(const std::string &key, const edm::EventSetup &setup)
Reads and returns logical expressions from DB.
bool theCaloMETAnalyzerFlag
void beginRun(const edm::Run &, const edm::EventSetup &)
Initialize run-based parameters.
HLTConfigProvider hltConfig_
CaloMETAnalyzer * theMuCorrMETAnalyzer
void beginRun(const edm::Run &, const edm::EventSetup &)
Initialize run-based parameters.
std::string processname_
bool init(const edm::Run &iRun, const edm::EventSetup &iSetup, const std::string &processName, bool &changed)
d&#39;tor
GenericTriggerEventFlag * _HighPtJetEventFlag
void initRun(const edm::Run &run, const edm::EventSetup &setup)
To be called from beginRun() methods.
CaloMETAnalyzer * theCaloMETAnalyzer
void JetMETAnalyzer::endJob ( void  )
virtual

Save the histos.

Reimplemented from edm::EDAnalyzer.

Definition at line 814 of file JetMETAnalyzer.cc.

References LogTrace, metname, dumpDBToFile_GT_ttrig_cfg::outputFileName, Parameters::parameters, and AlCaHLTBitMon_QueryRunRegistry::string.

814  {
815  LogTrace(metname)<<"[JetMETAnalyzer] Saving the histos";
816  bool outputMEsInRootFile = parameters.getParameter<bool>("OutputMEsInRootFile");
818 
819 
820  //--- MET
823  //theCaloMETNoHFAnalyzer->endJob();
824  //theCaloMETHOAnalyzer->endJob();
825  //theCaloMETNoHFHOAnalyzer->endJob();
826  }
830  //if(theHTMHTAnalyzerFlag) theHTMHTAnalyzer->endJob();
831 
832  //--- Jet
833  if(theJetAnalyzerFlag) {
837  }
838 
839  if(theJetCleaningFlag) {
843  }
844 
846 
847  if(theJetPtAnalyzerFlag ) {
851  }
852 
853  if(theJetPtCleaningFlag ) {
857  }
858 
861 
865 
866  if(outputMEsInRootFile){
867  dbe->save(outputFileName);
868  }
869 
870 }
T getParameter(std::string const &) const
METAnalyzer * theTcMETAnalyzer
bool theSConeJetAnalyzerFlag
void endJob()
Finish up a job.
Definition: METAnalyzer.cc:193
bool theJPTJetAnalyzerFlag
JetAnalyzer * theAKJetAnalyzer
PFMETAnalyzer * thePfMETAnalyzer
void endJob()
Finish up a job.
JPTJetAnalyzer * theCleanedJPTJetAnalyzer
DQMStore * dbe
JetAnalyzer * theCleanedSCJetAnalyzer
void endJob()
Finish up a job.
void endJob()
Finish up a job.
JetAnalyzer * theICJetAnalyzer
JetAnalyzer * theCleanedAKJetAnalyzer
bool theMuCorrMETAnalyzerFlag
JetPtAnalyzer * theCleanedPtAKJetAnalyzer
bool theIConeJetAnalyzerFlag
bool theCaloMETAnalyzerFlag
bool theJPTJetCleaningFlag
CaloMETAnalyzer * theMuCorrMETAnalyzer
void save(const std::string &filename, const std::string &path="", const std::string &pattern="", const std::string &rewrite="", const uint32_t run=0, SaveReferenceTag ref=SaveWithReference, int minStatus=dqm::qstatus::STATUS_OK, const std::string &fileupdate="RECREATE")
Definition: DQMStore.cc:2296
std::string metname
bool theDiJetSelectionFlag
#define LogTrace(id)
JetAnalyzer * theCleanedICJetAnalyzer
void endJob()
Finish up a job.
Definition: JetAnalyzer.cc:265
JPTJetAnalyzer * theJPTJetAnalyzer
virtual void endJob()
Finish up a job.
JetPtAnalyzer * thePtAKJetAnalyzer
PFJetAnalyzer * theCleanedPFJetAnalyzer
JetPtAnalyzer * thePtICJetAnalyzer
JetPtAnalyzer * theCleanedPtICJetAnalyzer
void endJob()
Finish up a job.
JetPtAnalyzer * theCleanedPtSCJetAnalyzer
JetAnalyzer * theDiJetAnalyzer
JetPtAnalyzer * thePtSCJetAnalyzer
edm::ParameterSet parameters
PFJetAnalyzer * thePFDiJetAnalyzer
JetAnalyzer * theSCJetAnalyzer
PFJetAnalyzer * thePFJetAnalyzer
CaloMETAnalyzer * theCaloMETAnalyzer
void JetMETAnalyzer::endRun ( const edm::Run iRun,
const edm::EventSetup iSetup 
)
virtual

Finish up a run.

Reimplemented from edm::EDAnalyzer.

Definition at line 409 of file JetMETAnalyzer.cc.

410 {
411  //
412  //--- Jet
413 
414  //
415  //--- MET
417  theCaloMETAnalyzer->endRun(iRun, iSetup, dbe);
418  //theCaloMETNoHFAnalyzer->endRun(iRun, iSetup, dbe);
419  //theCaloMETHOAnalyzer->endRun(iRun, iSetup, dbe);
420  //theCaloMETNoHFHOAnalyzer->endRun(iRun, iSetup, dbe);
421  }
422  if(theTcMETAnalyzerFlag) theTcMETAnalyzer->endRun(iRun, iSetup, dbe);
424  if(thePfMETAnalyzerFlag) thePfMETAnalyzer->endRun(iRun, iSetup, dbe);
425  //if(theHTMHTAnalyzerFlag) theHTMHTAnalyzer->endRun(iRun, iSetup, dbe);
426 
427 }
METAnalyzer * theTcMETAnalyzer
PFMETAnalyzer * thePfMETAnalyzer
DQMStore * dbe
bool theMuCorrMETAnalyzerFlag
bool theCaloMETAnalyzerFlag
void endRun(const edm::Run &iRun, const edm::EventSetup &iSetup, DQMStore *dbe)
Finish up a run.
Definition: METAnalyzer.cc:337
CaloMETAnalyzer * theMuCorrMETAnalyzer
void endRun(const edm::Run &iRun, const edm::EventSetup &iSetup, DQMStore *dbe)
Finish up a run.
void endRun(const edm::Run &iRun, const edm::EventSetup &iSetup, DQMStore *dbe)
Finish up a run.
CaloMETAnalyzer * theCaloMETAnalyzer

Member Data Documentation

bool JetMETAnalyzer::_doHLTPhysicsOn
private

Definition at line 103 of file JetMETAnalyzer.h.

bool JetMETAnalyzer::_doPVCheck
private

Definition at line 102 of file JetMETAnalyzer.h.

GenericTriggerEventFlag* JetMETAnalyzer::_HighPtJetEventFlag
private

Definition at line 125 of file JetMETAnalyzer.h.

bool JetMETAnalyzer::_hlt_initialized
private

Definition at line 96 of file JetMETAnalyzer.h.

std::string JetMETAnalyzer::_hlt_PhysDec
private

Definition at line 94 of file JetMETAnalyzer.h.

GenericTriggerEventFlag* JetMETAnalyzer::_LowPtJetEventFlag
private

Definition at line 126 of file JetMETAnalyzer.h.

int JetMETAnalyzer::_LSBegin
private

Definition at line 114 of file JetMETAnalyzer.h.

int JetMETAnalyzer::_LSEnd
private

Definition at line 115 of file JetMETAnalyzer.h.

int JetMETAnalyzer::_nvtx_min
private

Definition at line 107 of file JetMETAnalyzer.h.

int JetMETAnalyzer::_nvtxtrks_min
private

Definition at line 109 of file JetMETAnalyzer.h.

std::vector<unsigned > JetMETAnalyzer::_techTrigsAND
private

Definition at line 98 of file JetMETAnalyzer.h.

std::vector<unsigned > JetMETAnalyzer::_techTrigsNOT
private

Definition at line 100 of file JetMETAnalyzer.h.

std::vector<unsigned > JetMETAnalyzer::_techTrigsOR
private

Definition at line 99 of file JetMETAnalyzer.h.

edm::InputTag JetMETAnalyzer::_theGTLabel
private

Definition at line 93 of file JetMETAnalyzer.h.

edm::InputTag JetMETAnalyzer::_theVertexLabel
private

Definition at line 92 of file JetMETAnalyzer.h.

bool JetMETAnalyzer::_tightBHFiltering
private

Definition at line 105 of file JetMETAnalyzer.h.

double JetMETAnalyzer::_vtxchi2_max
private

Definition at line 110 of file JetMETAnalyzer.h.

int JetMETAnalyzer::_vtxndof_min
private

Definition at line 108 of file JetMETAnalyzer.h.

double JetMETAnalyzer::_vtxz_max
private

Definition at line 111 of file JetMETAnalyzer.h.

MonitorElement* JetMETAnalyzer::cleanupME
private

Definition at line 122 of file JetMETAnalyzer.h.

DQMStore* JetMETAnalyzer::dbe
private

Definition at line 77 of file JetMETAnalyzer.h.

JetMETDQMDCSFilter* JetMETAnalyzer::DCSFilterAll
private

Definition at line 196 of file JetMETAnalyzer.h.

JetMETDQMDCSFilter* JetMETAnalyzer::DCSFilterCalo
private

Definition at line 193 of file JetMETAnalyzer.h.

JetMETDQMDCSFilter* JetMETAnalyzer::DCSFilterJPT
private

Definition at line 195 of file JetMETAnalyzer.h.

JetMETDQMDCSFilter* JetMETAnalyzer::DCSFilterPF
private

Definition at line 194 of file JetMETAnalyzer.h.

std::vector<std::string> JetMETAnalyzer::highPtJetExpr_
private

Definition at line 128 of file JetMETAnalyzer.h.

HLTConfigProvider JetMETAnalyzer::hltConfig_
private

Definition at line 117 of file JetMETAnalyzer.h.

std::vector<std::string> JetMETAnalyzer::lowPtJetExpr_
private

Definition at line 129 of file JetMETAnalyzer.h.

MonitorElement* JetMETAnalyzer::lumisecME
private

Definition at line 121 of file JetMETAnalyzer.h.

std::string JetMETAnalyzer::metname
private

Definition at line 79 of file JetMETAnalyzer.h.

edm::ParameterSet JetMETAnalyzer::parameters
private
std::string JetMETAnalyzer::processname_
private

Definition at line 118 of file JetMETAnalyzer.h.

JetAnalyzer* JetMETAnalyzer::theAKJetAnalyzer
private

Definition at line 159 of file JetMETAnalyzer.h.

edm::InputTag JetMETAnalyzer::theAKJetCollectionLabel
private

Definition at line 82 of file JetMETAnalyzer.h.

edm::InputTag JetMETAnalyzer::theCaloJetCollectionLabel
private

Definition at line 81 of file JetMETAnalyzer.h.

CaloMETAnalyzer* JetMETAnalyzer::theCaloMETAnalyzer
private

Definition at line 181 of file JetMETAnalyzer.h.

bool JetMETAnalyzer::theCaloMETAnalyzerFlag
private

Definition at line 147 of file JetMETAnalyzer.h.

JetAnalyzer* JetMETAnalyzer::theCleanedAKJetAnalyzer
private

Definition at line 162 of file JetMETAnalyzer.h.

JetAnalyzer* JetMETAnalyzer::theCleanedICJetAnalyzer
private

Definition at line 164 of file JetMETAnalyzer.h.

JPTJetAnalyzer* JetMETAnalyzer::theCleanedJPTJetAnalyzer
private

Definition at line 168 of file JetMETAnalyzer.h.

PFJetAnalyzer* JetMETAnalyzer::theCleanedPFJetAnalyzer
private

Definition at line 171 of file JetMETAnalyzer.h.

JetPtAnalyzer* JetMETAnalyzer::theCleanedPtAKJetAnalyzer
private

Definition at line 177 of file JetMETAnalyzer.h.

JetPtAnalyzer* JetMETAnalyzer::theCleanedPtICJetAnalyzer
private

Definition at line 179 of file JetMETAnalyzer.h.

JetPtAnalyzer* JetMETAnalyzer::theCleanedPtSCJetAnalyzer
private

Definition at line 178 of file JetMETAnalyzer.h.

JetAnalyzer* JetMETAnalyzer::theCleanedSCJetAnalyzer
private

Definition at line 163 of file JetMETAnalyzer.h.

edm::ParameterSet JetMETAnalyzer::theCleaningParameters
private

Definition at line 91 of file JetMETAnalyzer.h.

JetAnalyzer* JetMETAnalyzer::theDiJetAnalyzer
private

Definition at line 165 of file JetMETAnalyzer.h.

bool JetMETAnalyzer::theDiJetSelectionFlag
private

Definition at line 142 of file JetMETAnalyzer.h.

HTMHTAnalyzer* JetMETAnalyzer::theHTMHTAnalyzer
private

Definition at line 191 of file JetMETAnalyzer.h.

bool JetMETAnalyzer::theHTMHTAnalyzerFlag
private

Definition at line 155 of file JetMETAnalyzer.h.

JetAnalyzer* JetMETAnalyzer::theICJetAnalyzer
private

Definition at line 161 of file JetMETAnalyzer.h.

edm::InputTag JetMETAnalyzer::theICJetCollectionLabel
private

Definition at line 84 of file JetMETAnalyzer.h.

bool JetMETAnalyzer::theIConeJetAnalyzerFlag
private

Definition at line 132 of file JetMETAnalyzer.h.

JetAnalyzer* JetMETAnalyzer::theJetAnalyzer
private

Definition at line 158 of file JetMETAnalyzer.h.

bool JetMETAnalyzer::theJetAnalyzerFlag
private

Definition at line 131 of file JetMETAnalyzer.h.

bool JetMETAnalyzer::theJetCleaningFlag
private

Definition at line 134 of file JetMETAnalyzer.h.

bool JetMETAnalyzer::theJetPtAnalyzerFlag
private

Definition at line 136 of file JetMETAnalyzer.h.

bool JetMETAnalyzer::theJetPtCleaningFlag
private

Definition at line 137 of file JetMETAnalyzer.h.

JPTJetAnalyzer* JetMETAnalyzer::theJPTJetAnalyzer
private

Definition at line 167 of file JetMETAnalyzer.h.

bool JetMETAnalyzer::theJPTJetAnalyzerFlag
private

Definition at line 144 of file JetMETAnalyzer.h.

bool JetMETAnalyzer::theJPTJetCleaningFlag
private

Definition at line 145 of file JetMETAnalyzer.h.

edm::InputTag JetMETAnalyzer::theJPTJetCollectionLabel
private

Definition at line 86 of file JetMETAnalyzer.h.

CaloMETAnalyzer* JetMETAnalyzer::theMuCorrMETAnalyzer
private

Definition at line 185 of file JetMETAnalyzer.h.

bool JetMETAnalyzer::theMuCorrMETAnalyzerFlag
private

Definition at line 151 of file JetMETAnalyzer.h.

PFJetAnalyzer* JetMETAnalyzer::thePFDiJetAnalyzer
private

Definition at line 172 of file JetMETAnalyzer.h.

PFJetAnalyzer* JetMETAnalyzer::thePFJetAnalyzer
private

Definition at line 170 of file JetMETAnalyzer.h.

bool JetMETAnalyzer::thePFJetAnalyzerFlag
private

Definition at line 139 of file JetMETAnalyzer.h.

bool JetMETAnalyzer::thePFJetCleaningFlag
private

Definition at line 140 of file JetMETAnalyzer.h.

edm::InputTag JetMETAnalyzer::thePFJetCollectionLabel
private

Definition at line 85 of file JetMETAnalyzer.h.

PFMETAnalyzer* JetMETAnalyzer::thePfMETAnalyzer
private

Definition at line 189 of file JetMETAnalyzer.h.

bool JetMETAnalyzer::thePfMETAnalyzerFlag
private

Definition at line 153 of file JetMETAnalyzer.h.

JetPtAnalyzer* JetMETAnalyzer::thePtAKJetAnalyzer
private

Definition at line 174 of file JetMETAnalyzer.h.

JetPtAnalyzer* JetMETAnalyzer::thePtICJetAnalyzer
private

Definition at line 176 of file JetMETAnalyzer.h.

JetPtAnalyzer* JetMETAnalyzer::thePtSCJetAnalyzer
private

Definition at line 175 of file JetMETAnalyzer.h.

JetAnalyzer* JetMETAnalyzer::theSCJetAnalyzer
private

Definition at line 160 of file JetMETAnalyzer.h.

edm::InputTag JetMETAnalyzer::theSCJetCollectionLabel
private

Definition at line 83 of file JetMETAnalyzer.h.

bool JetMETAnalyzer::theSConeJetAnalyzerFlag
private

Definition at line 133 of file JetMETAnalyzer.h.

METAnalyzer* JetMETAnalyzer::theTcMETAnalyzer
private

Definition at line 187 of file JetMETAnalyzer.h.

bool JetMETAnalyzer::theTcMETAnalyzerFlag
private

Definition at line 149 of file JetMETAnalyzer.h.

edm::InputTag JetMETAnalyzer::theTriggerResultsLabel
private

Definition at line 87 of file JetMETAnalyzer.h.

MonitorElement* JetMETAnalyzer::verticesME
private

Definition at line 123 of file JetMETAnalyzer.h.