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 Attributes
HLTTauDQMOfflineSource Class Reference

#include <HLTTauDQMOfflineSource.h>

Inheritance diagram for HLTTauDQMOfflineSource:
edm::EDAnalyzer

Public Member Functions

 HLTTauDQMOfflineSource (const edm::ParameterSet &)
 
 ~HLTTauDQMOfflineSource ()
 
- Public Member Functions inherited from edm::EDAnalyzer
 EDAnalyzer ()
 
std::string workerType () const
 
virtual ~EDAnalyzer ()
 

Protected Member Functions

void analyze (const edm::Event &e, const edm::EventSetup &c)
 Fake Analyze. More...
 
void beginJob ()
 BeginJob. More...
 
void beginLuminosityBlock (const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &context)
 Luminosity Block. More...
 
void beginRun (const edm::Run &r, const edm::EventSetup &c)
 BeginRun. More...
 
void endJob ()
 Endjob. More...
 
void endLuminosityBlock (const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &c)
 DQM Client Diagnostic. More...
 
void endRun (const edm::Run &r, const edm::EventSetup &c)
 EndRun. More...
 
- Protected Member Functions inherited from edm::EDAnalyzer
CurrentProcessingContext const * currentContext () const
 

Private Attributes

std::vector< HLTTauDQMCaloPlottercaloPlotters
 
std::vector< edm::ParameterSetconfig_
 
int counterEvt_
 
DQMStoredbe_
 
bool doRefAnalysis_
 
double EtMax_
 
double HLTMatchDr_
 
double L1MatchDr_
 
std::vector< HLTTauDQML1Plotterl1Plotters
 
std::vector
< HLTTauDQMLitePathPlotter
litePathPlotters
 
int NEtaBins_
 
int NPhiBins_
 
int NPtBins_
 
std::vector< HLTTauDQMPathPlotterpathPlotters
 
int prescaleEvt_
 counter More...
 
std::vector< edm::InputTagrefObjects_
 
std::vector< HLTTauDQMTrkPlottertrackPlotters
 
edm::InputTag triggerEvent_
 every n events More...
 

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
typedef WorkerT< EDAnalyzerWorkerType
 
- Static Public Member Functions inherited from edm::EDAnalyzer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 

Detailed Description

Definition at line 34 of file HLTTauDQMOfflineSource.h.

Constructor & Destructor Documentation

HLTTauDQMOfflineSource::HLTTauDQMOfflineSource ( const edm::ParameterSet ps)

Definition at line 12 of file HLTTauDQMOfflineSource.cc.

References caloPlotters, config_, doRefAnalysis_, EtMax_, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), HLTMatchDr_, i, L1MatchDr_, l1Plotters, litePathPlotters, NEtaBins_, NPhiBins_, NPtBins_, pathPlotters, prescaleEvt_, refObjects_, tmp, and trackPlotters.

12  :counterEvt_(0)
13 {
14  //Get General Monitoring Parameters
15  config_ = ps.getParameter<std::vector<edm::ParameterSet> >("MonitorSetup");
16  doRefAnalysis_ = ps.getParameter<bool>("doMatching");
17  NPtBins_ = ps.getUntrackedParameter<int>("PtHistoBins",20);
18  NEtaBins_ = ps.getUntrackedParameter<int>("EtaHistoBins",25);
19  NPhiBins_ = ps.getUntrackedParameter<int>("PhiHistoBins",32);
20  EtMax_ = ps.getUntrackedParameter<double>("EtHistoMax",100);
21  L1MatchDr_ = ps.getUntrackedParameter<double>("L1MatchDeltaR",0.5);
22  HLTMatchDr_ = ps.getUntrackedParameter<double>("HLTMatchDeltaR",0.3);
23 
24  refObjects_ = ps.getUntrackedParameter<std::vector<edm::InputTag> >("refObjects");
25 
26  prescaleEvt_ = ps.getUntrackedParameter<int>("prescaleEvt", -1);
27 
28  //Read The Configuration
29  for (unsigned int i=0;i<config_.size();++i) {
30  if (config_[i].getUntrackedParameter<std::string>("ConfigType") == "L1") {
32  l1Plotters.push_back(tmp);
33  }
34 
35  else if (config_[i].getUntrackedParameter<std::string>("ConfigType") == "Calo") {
37  caloPlotters.push_back(tmp);
38  }
39 
40  else if (config_[i].getUntrackedParameter<std::string>("ConfigType") == "Track") {
42  trackPlotters.push_back(tmp);
43  }
44 
45  else if (config_[i].getUntrackedParameter<std::string>("ConfigType") == "Path") {
47  pathPlotters.push_back(tmp);
48  }
49 
50  else if (config_[i].getUntrackedParameter<std::string>("ConfigType") == "LitePath") {
52  litePathPlotters.push_back(tmp);
53  }
54  }
55 }
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
int i
Definition: DBlmapReader.cc:9
std::vector< HLTTauDQMPathPlotter > pathPlotters
std::vector< HLTTauDQMCaloPlotter > caloPlotters
std::vector< edm::ParameterSet > config_
std::vector< HLTTauDQML1Plotter > l1Plotters
std::vector< edm::InputTag > refObjects_
std::vector< std::vector< double > > tmp
Definition: MVATrainer.cc:100
std::vector< HLTTauDQMTrkPlotter > trackPlotters
std::vector< HLTTauDQMLitePathPlotter > litePathPlotters
HLTTauDQMOfflineSource::~HLTTauDQMOfflineSource ( )

Definition at line 57 of file HLTTauDQMOfflineSource.cc.

58 {
59 
60  // do anything here that needs to be done at desctruction time
61  // (e.g. close files, deallocate resources etc.)
62 
63 }

Member Function Documentation

void HLTTauDQMOfflineSource::analyze ( const edm::Event e,
const edm::EventSetup c 
)
protectedvirtual

Fake Analyze.

Implements edm::EDAnalyzer.

Definition at line 85 of file HLTTauDQMOfflineSource.cc.

References caloPlotters, counterEvt_, doRefAnalysis_, edm::Event::getByLabel(), i, gen::k, l1Plotters, litePathPlotters, pathPlotters, prescaleEvt_, refObjects_, and trackPlotters.

86 {
87  //Apply the prescaler
89  {
90  //Do Analysis here
91 
92  //Create dummy Match Collections
93  std::vector<LVColl> refC;
94 
95  if(doRefAnalysis_)
96  {
97  for(unsigned int i=0;i<refObjects_.size();++i)
98  {
99  Handle<LVColl> collHandle;
100  if(iEvent.getByLabel(refObjects_[i],collHandle))
101  {
102  refC.push_back(*collHandle);
103  }
104  }
105  }
106 
107 
108 
109  //fill the empty slots with empty collections
110  LVColl dummy;
111  for(int k=refC.size();k<3;k++)
112  {
113  refC.push_back(dummy);
114  }
115 
116 
117 
118  //Path Plotters
119  for(unsigned int i=0;i<pathPlotters.size();++i)
120  pathPlotters[i].analyze(iEvent,iSetup,refC);
121 
122  //Lite Path Plotters
123  for(unsigned int i=0;i<litePathPlotters.size();++i)
124  litePathPlotters[i].analyze(iEvent,iSetup,refC);
125 
126  //L1 Plotters
127  for(unsigned int i=0;i<l1Plotters.size();++i)
128  l1Plotters[i].analyze(iEvent,iSetup,refC);
129 
130  //Calo Plotters
131  for(unsigned int i=0;i<caloPlotters.size();++i)
132  caloPlotters[i].analyze(iEvent,iSetup,refC[0]);
133 
134  //Track Plotters
135  for(unsigned int i=0;i<trackPlotters.size();++i)
136  trackPlotters[i].analyze(iEvent,iSetup,refC[0]);
137  }
138  else
139  counterEvt_++;
140 
141 }
int i
Definition: DBlmapReader.cc:9
std::vector< HLTTauDQMPathPlotter > pathPlotters
int iEvent
Definition: GenABIO.cc:243
std::vector< HLTTauDQMCaloPlotter > caloPlotters
void analyze(const edm::Event &e, const edm::EventSetup &c)
Fake Analyze.
std::vector< LV > LVColl
std::vector< HLTTauDQML1Plotter > l1Plotters
int k[5][pyjets_maxn]
std::vector< edm::InputTag > refObjects_
std::vector< HLTTauDQMTrkPlotter > trackPlotters
std::vector< HLTTauDQMLitePathPlotter > litePathPlotters
void HLTTauDQMOfflineSource::beginJob ( void  )
protectedvirtual

BeginJob.

Reimplemented from edm::EDAnalyzer.

Definition at line 68 of file HLTTauDQMOfflineSource.cc.

68  {
69 
70 }
void HLTTauDQMOfflineSource::beginLuminosityBlock ( const edm::LuminosityBlock lumiSeg,
const edm::EventSetup context 
)
protectedvirtual

Luminosity Block.

Reimplemented from edm::EDAnalyzer.

Definition at line 78 of file HLTTauDQMOfflineSource.cc.

79  {
80 
81 }
void HLTTauDQMOfflineSource::beginRun ( const edm::Run r,
const edm::EventSetup c 
)
protectedvirtual

BeginRun.

Reimplemented from edm::EDAnalyzer.

Definition at line 73 of file HLTTauDQMOfflineSource.cc.

73  {
74 
75 }
void HLTTauDQMOfflineSource::endJob ( void  )
protectedvirtual

Endjob.

Reimplemented from edm::EDAnalyzer.

Definition at line 154 of file HLTTauDQMOfflineSource.cc.

154  {
155  return;
156 }
void HLTTauDQMOfflineSource::endLuminosityBlock ( const edm::LuminosityBlock lumiSeg,
const edm::EventSetup c 
)
protectedvirtual

DQM Client Diagnostic.

Reimplemented from edm::EDAnalyzer.

Definition at line 147 of file HLTTauDQMOfflineSource.cc.

148  {
149 }
void HLTTauDQMOfflineSource::endRun ( const edm::Run r,
const edm::EventSetup c 
)
protectedvirtual

EndRun.

Reimplemented from edm::EDAnalyzer.

Definition at line 151 of file HLTTauDQMOfflineSource.cc.

151  {
152 }

Member Data Documentation

std::vector<HLTTauDQMCaloPlotter> HLTTauDQMOfflineSource::caloPlotters
private

Definition at line 95 of file HLTTauDQMOfflineSource.h.

Referenced by analyze(), and HLTTauDQMOfflineSource().

std::vector<edm::ParameterSet> HLTTauDQMOfflineSource::config_
private

Definition at line 66 of file HLTTauDQMOfflineSource.h.

Referenced by HLTTauDQMOfflineSource().

int HLTTauDQMOfflineSource::counterEvt_
private

Definition at line 87 of file HLTTauDQMOfflineSource.h.

Referenced by analyze().

DQMStore* HLTTauDQMOfflineSource::dbe_
private

Definition at line 65 of file HLTTauDQMOfflineSource.h.

bool HLTTauDQMOfflineSource::doRefAnalysis_
private

Definition at line 69 of file HLTTauDQMOfflineSource.h.

Referenced by analyze(), and HLTTauDQMOfflineSource().

double HLTTauDQMOfflineSource::EtMax_
private

Definition at line 73 of file HLTTauDQMOfflineSource.h.

Referenced by HLTTauDQMOfflineSource().

double HLTTauDQMOfflineSource::HLTMatchDr_
private

Definition at line 75 of file HLTTauDQMOfflineSource.h.

Referenced by HLTTauDQMOfflineSource().

double HLTTauDQMOfflineSource::L1MatchDr_
private

Definition at line 74 of file HLTTauDQMOfflineSource.h.

Referenced by HLTTauDQMOfflineSource().

std::vector<HLTTauDQML1Plotter> HLTTauDQMOfflineSource::l1Plotters
private

Definition at line 94 of file HLTTauDQMOfflineSource.h.

Referenced by analyze(), and HLTTauDQMOfflineSource().

std::vector<HLTTauDQMLitePathPlotter> HLTTauDQMOfflineSource::litePathPlotters
private

Definition at line 98 of file HLTTauDQMOfflineSource.h.

Referenced by analyze(), and HLTTauDQMOfflineSource().

int HLTTauDQMOfflineSource::NEtaBins_
private

Definition at line 71 of file HLTTauDQMOfflineSource.h.

Referenced by HLTTauDQMOfflineSource().

int HLTTauDQMOfflineSource::NPhiBins_
private

Definition at line 72 of file HLTTauDQMOfflineSource.h.

Referenced by HLTTauDQMOfflineSource().

int HLTTauDQMOfflineSource::NPtBins_
private

Definition at line 70 of file HLTTauDQMOfflineSource.h.

Referenced by HLTTauDQMOfflineSource().

std::vector<HLTTauDQMPathPlotter> HLTTauDQMOfflineSource::pathPlotters
private

Definition at line 97 of file HLTTauDQMOfflineSource.h.

Referenced by analyze(), and HLTTauDQMOfflineSource().

int HLTTauDQMOfflineSource::prescaleEvt_
private

counter

Definition at line 88 of file HLTTauDQMOfflineSource.h.

Referenced by analyze(), and HLTTauDQMOfflineSource().

std::vector<edm::InputTag> HLTTauDQMOfflineSource::refObjects_
private

Definition at line 78 of file HLTTauDQMOfflineSource.h.

Referenced by analyze(), and HLTTauDQMOfflineSource().

std::vector<HLTTauDQMTrkPlotter> HLTTauDQMOfflineSource::trackPlotters
private

Definition at line 96 of file HLTTauDQMOfflineSource.h.

Referenced by analyze(), and HLTTauDQMOfflineSource().

edm::InputTag HLTTauDQMOfflineSource::triggerEvent_
private

every n events

Definition at line 91 of file HLTTauDQMOfflineSource.h.