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
L1TGCTClient Class Reference

#include <L1TGCTClient.h>

Inheritance diagram for L1TGCTClient:
edm::EDAnalyzer

Public Member Functions

 L1TGCTClient (const edm::ParameterSet &ps)
 Constructor. More...
 
virtual ~L1TGCTClient ()
 Destructor. More...
 
- 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)
 Analyze. More...
 
void beginJob (void)
 BeginJob. More...
 
void beginLuminosityBlock (const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &context)
 
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 Member Functions

void makeXProjection (TH2F *input, MonitorElement *output)
 
void makeYProjection (TH2F *input, MonitorElement *output)
 
void processHistograms ()
 

Private Attributes

int counterEvt_
 counter More...
 
int counterLS_
 
DQMStoredbe_
 
MonitorElementl1GctAllJetsOccEta_
 
MonitorElementl1GctAllJetsOccPhi_
 
MonitorElementl1GctCenJetsOccEta_
 
MonitorElementl1GctCenJetsOccPhi_
 
MonitorElementl1GctForJetsOccEta_
 
MonitorElementl1GctForJetsOccPhi_
 
MonitorElementl1GctIsoEmOccEta_
 
MonitorElementl1GctIsoEmOccPhi_
 
MonitorElementl1GctNonIsoEmOccEta_
 
MonitorElementl1GctNonIsoEmOccPhi_
 
MonitorElementl1GctTauJetsOccEta_
 
MonitorElementl1GctTauJetsOccPhi_
 
bool m_runInEndJob
 
bool m_runInEndLumi
 
bool m_runInEndRun
 
bool m_runInEventLoop
 prescale on number of events More...
 
std::string monitorDir_
 
int prescaleEvt_
 units of lumi sections More...
 
int prescaleLS_
 counter 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)
 
static void prevalidate (ConfigurationDescriptions &)
 

Detailed Description

Definition at line 18 of file L1TGCTClient.h.

Constructor & Destructor Documentation

L1TGCTClient::L1TGCTClient ( const edm::ParameterSet ps)

Constructor.

Definition at line 24 of file L1TGCTClient.cc.

24  :
25  monitorDir_(ps.getUntrackedParameter<string>("monitorDir","")),
26  counterLS_(0),
27  counterEvt_(0),
28  prescaleLS_(ps.getUntrackedParameter<int>("prescaleLS", -1)),
29  prescaleEvt_(ps.getUntrackedParameter<int>("prescaleEvt", -1)),
30  m_runInEventLoop(ps.getUntrackedParameter<bool>("runInEventLoop", false)),
31  m_runInEndLumi(ps.getUntrackedParameter<bool>("runInEndLumi", false)),
32  m_runInEndRun(ps.getUntrackedParameter<bool>("runInEndRun", false)),
33  m_runInEndJob(ps.getUntrackedParameter<bool>("runInEndJob", false))
34 
35 {
36 }
int prescaleEvt_
units of lumi sections
Definition: L1TGCTClient.h:64
T getUntrackedParameter(std::string const &, T const &) const
std::string monitorDir_
Definition: L1TGCTClient.h:60
int counterEvt_
counter
Definition: L1TGCTClient.h:62
bool m_runInEventLoop
prescale on number of events
Definition: L1TGCTClient.h:66
bool m_runInEndLumi
Definition: L1TGCTClient.h:67
bool m_runInEndJob
Definition: L1TGCTClient.h:69
int prescaleLS_
counter
Definition: L1TGCTClient.h:63
bool m_runInEndRun
Definition: L1TGCTClient.h:68
L1TGCTClient::~L1TGCTClient ( )
virtual

Destructor.

Definition at line 38 of file L1TGCTClient.cc.

38 {}

Member Function Documentation

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

Analyze.

Implements edm::EDAnalyzer.

Definition at line 76 of file L1TGCTClient.cc.

References m_runInEventLoop, and processHistograms().

76  {
77 
78  // there is no loop on events in the offline harvesting step
79  // code here will not be executed offline
80 
81  if (m_runInEventLoop) {
82 
84  }
85 
86 }
void processHistograms()
bool m_runInEventLoop
prescale on number of events
Definition: L1TGCTClient.h:66
void L1TGCTClient::beginJob ( void  )
protectedvirtual

BeginJob.

Reimplemented from edm::EDAnalyzer.

Definition at line 40 of file L1TGCTClient.cc.

References DQMStore::book1D(), dbe_, ETABINS, ETAMAX, ETAMIN, l1GctAllJetsOccEta_, l1GctAllJetsOccPhi_, l1GctCenJetsOccEta_, l1GctCenJetsOccPhi_, l1GctForJetsOccEta_, l1GctForJetsOccPhi_, l1GctIsoEmOccEta_, l1GctIsoEmOccPhi_, l1GctNonIsoEmOccEta_, l1GctNonIsoEmOccPhi_, l1GctTauJetsOccEta_, l1GctTauJetsOccPhi_, monitorDir_, cppFunctionSkipper::operator, PHIBINS, PHIMAX, PHIMIN, and DQMStore::setCurrentFolder().

41 {
42  // Get backendinterface
44 
45  // Set to directory with ME in
47 
48  l1GctIsoEmOccEta_ = dbe_->book1D("IsoEmOccEta","ISO EM #eta OCCUPANCY", ETABINS, ETAMIN, ETAMAX);
49  l1GctIsoEmOccPhi_ = dbe_->book1D("IsoEmOccPhi","ISO EM #phi OCCUPANCY", PHIBINS, PHIMIN, PHIMAX);
50  l1GctNonIsoEmOccEta_ = dbe_->book1D("NonIsoEmOccEta","NON-ISO EM #eta OCCUPANCY", ETABINS, ETAMIN, ETAMAX);
51  l1GctNonIsoEmOccPhi_ = dbe_->book1D("NonIsoEmOccPhi","NON-ISO EM #phi OCCUPANCY", PHIBINS, PHIMIN, PHIMAX);
52  l1GctAllJetsOccEta_ = dbe_->book1D("AllJetsOccEta","CENTRAL AND FORWARD JET #eta OCCUPANCY", ETABINS, ETAMIN, ETAMAX);
53  l1GctAllJetsOccPhi_ = dbe_->book1D("AllJetsOccPhi","CENTRAL AND FORWARD JET #phi OCCUPANCY", PHIBINS, PHIMIN, PHIMAX);
54  l1GctCenJetsOccEta_ = dbe_->book1D("CenJetsOccEta","CENTRAL JET #eta OCCUPANCY", ETABINS, ETAMIN, ETAMAX);
55  l1GctCenJetsOccPhi_ = dbe_->book1D("CenJetsOccPhi","CENTRAL JET #phi OCCUPANCY", PHIBINS, PHIMIN, PHIMAX);
56  l1GctForJetsOccEta_ = dbe_->book1D("ForJetsOccEta","FORWARD JET #eta OCCUPANCY", ETABINS, ETAMIN, ETAMAX);
57  l1GctForJetsOccPhi_ = dbe_->book1D("ForJetsOccPhi","FORWARD JET #phi OCCUPANCY", PHIBINS, PHIMIN, PHIMAX);
58  l1GctTauJetsOccEta_ = dbe_->book1D("TauJetsOccEta","TAU JET #eta OCCUPANCY", ETABINS, ETAMIN, ETAMAX);
59  l1GctTauJetsOccPhi_ = dbe_->book1D("TauJetsOccPhi","TAU JET #phi OCCUPANCY", PHIBINS, PHIMIN, PHIMAX);
60 }
#define PHIMAX
MonitorElement * l1GctForJetsOccPhi_
Definition: L1TGCTClient.h:82
MonitorElement * l1GctTauJetsOccEta_
Definition: L1TGCTClient.h:83
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
Definition: DQMStore.cc:717
std::string monitorDir_
Definition: L1TGCTClient.h:60
MonitorElement * l1GctTauJetsOccPhi_
Definition: L1TGCTClient.h:84
MonitorElement * l1GctIsoEmOccEta_
Definition: L1TGCTClient.h:73
DQMStore * dbe_
Definition: L1TGCTClient.h:59
MonitorElement * l1GctAllJetsOccPhi_
Definition: L1TGCTClient.h:78
MonitorElement * l1GctForJetsOccEta_
Definition: L1TGCTClient.h:81
MonitorElement * l1GctCenJetsOccPhi_
Definition: L1TGCTClient.h:80
#define ETAMAX
#define ETAMIN
MonitorElement * l1GctAllJetsOccEta_
Definition: L1TGCTClient.h:77
#define PHIMIN
MonitorElement * l1GctNonIsoEmOccPhi_
Definition: L1TGCTClient.h:76
MonitorElement * l1GctIsoEmOccPhi_
Definition: L1TGCTClient.h:74
#define ETABINS
MonitorElement * l1GctNonIsoEmOccEta_
Definition: L1TGCTClient.h:75
#define PHIBINS
MonitorElement * l1GctCenJetsOccEta_
Definition: L1TGCTClient.h:79
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:429
void L1TGCTClient::beginLuminosityBlock ( const edm::LuminosityBlock lumiSeg,
const edm::EventSetup context 
)
protectedvirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 64 of file L1TGCTClient.cc.

64 {}
void L1TGCTClient::beginRun ( const edm::Run r,
const edm::EventSetup c 
)
protectedvirtual

BeginRun.

Reimplemented from edm::EDAnalyzer.

Definition at line 62 of file L1TGCTClient.cc.

62 {}
void L1TGCTClient::endJob ( void  )
protectedvirtual

Endjob.

Reimplemented from edm::EDAnalyzer.

Definition at line 97 of file L1TGCTClient.cc.

References m_runInEndJob, and processHistograms().

97  {
98 
99  if (m_runInEndJob) {
100 
102  }
103 }
void processHistograms()
bool m_runInEndJob
Definition: L1TGCTClient.h:69
void L1TGCTClient::endLuminosityBlock ( const edm::LuminosityBlock lumiSeg,
const edm::EventSetup c 
)
protectedvirtual

DQM Client Diagnostic.

Reimplemented from edm::EDAnalyzer.

Definition at line 66 of file L1TGCTClient.cc.

References m_runInEndLumi, and processHistograms().

67 {
68 
69  if (m_runInEndLumi) {
70 
72  }
73 
74 }
void processHistograms()
bool m_runInEndLumi
Definition: L1TGCTClient.h:67
void L1TGCTClient::endRun ( const edm::Run r,
const edm::EventSetup c 
)
protectedvirtual

EndRun.

Reimplemented from edm::EDAnalyzer.

Definition at line 88 of file L1TGCTClient.cc.

References m_runInEndRun, and processHistograms().

88  {
89 
90  if (m_runInEndRun) {
91 
93  }
94 
95 }
void processHistograms()
bool m_runInEndRun
Definition: L1TGCTClient.h:68
void L1TGCTClient::makeXProjection ( TH2F *  input,
MonitorElement output 
)
private

Definition at line 148 of file L1TGCTClient.cc.

References MonitorElement::getNbinsX(), i, and MonitorElement::setBinContent().

Referenced by processHistograms().

149 {
150  // Are the provided input and output consistent
151  if (input->GetNbinsX() != output->getNbinsX()) return;
152 
153  // Make the projection
154  TH1D* projX = input->ProjectionX();
155 
156  for (Int_t i=0; i<projX->GetNbinsX(); i++) {
157  output->setBinContent(i+1,projX->GetBinContent(i+1));
158  }
159  delete projX;
160 }
int i
Definition: DBlmapReader.cc:9
void setBinContent(int binx, double content)
set content of bin (1-D)
int getNbinsX(void) const
get # of bins in X-axis
void L1TGCTClient::makeYProjection ( TH2F *  input,
MonitorElement output 
)
private

Definition at line 162 of file L1TGCTClient.cc.

References MonitorElement::getNbinsX(), i, and MonitorElement::setBinContent().

Referenced by processHistograms().

163 {
164  // Are the provided input and output consistent
165  if (input->GetNbinsY() != output->getNbinsX()) return;
166 
167  // Make the projection
168  TH1D* projY = input->ProjectionY();
169 
170  for (Int_t i=0; i<projY->GetNbinsX(); i++) {
171  output->setBinContent(i+1,projY->GetBinContent(i+1));
172  }
173  delete projY;
174 }
int i
Definition: DBlmapReader.cc:9
void setBinContent(int binx, double content)
set content of bin (1-D)
int getNbinsX(void) const
get # of bins in X-axis
void L1TGCTClient::processHistograms ( )
private

Definition at line 105 of file L1TGCTClient.cc.

References dbe_, DQMStore::get(), MonitorElement::getTH2F(), Input, l1GctAllJetsOccEta_, l1GctAllJetsOccPhi_, l1GctCenJetsOccEta_, l1GctCenJetsOccPhi_, l1GctForJetsOccEta_, l1GctForJetsOccPhi_, l1GctIsoEmOccEta_, l1GctIsoEmOccPhi_, l1GctNonIsoEmOccEta_, l1GctNonIsoEmOccPhi_, l1GctTauJetsOccEta_, l1GctTauJetsOccPhi_, makeXProjection(), makeYProjection(), and NULL.

Referenced by analyze(), endJob(), endLuminosityBlock(), and endRun().

105  {
106 
108 
109  Input = dbe_->get("L1T/L1TGCT/IsoEmOccEtaPhi");
110  if (Input!=NULL){
113  }
114 
115  Input = dbe_->get("L1T/L1TGCT/NonIsoEmOccEtaPhi");
116  if (Input!=NULL){
119  }
120 
121  Input = dbe_->get("L1T/L1TGCT/AllJetsOccEtaPhi");
122  if (Input!=NULL){
125  }
126 
127  Input = dbe_->get("L1T/L1TGCT/CenJetsOccEtaPhi");
128  if (Input!=NULL){
131  }
132 
133  Input = dbe_->get("L1T/L1TGCT/ForJetsOccEtaPhi");
134  if (Input!=NULL){
137  }
138 
139  Input = dbe_->get("L1T/L1TGCT/TauJetsOccEtaPhi");
140  if (Input!=NULL){
143  }
144 
145 }
MonitorElement * l1GctForJetsOccPhi_
Definition: L1TGCTClient.h:82
#define Input(cl)
Definition: vmac.h:189
MonitorElement * l1GctTauJetsOccEta_
Definition: L1TGCTClient.h:83
#define NULL
Definition: scimark2.h:8
MonitorElement * l1GctTauJetsOccPhi_
Definition: L1TGCTClient.h:84
MonitorElement * l1GctIsoEmOccEta_
Definition: L1TGCTClient.h:73
DQMStore * dbe_
Definition: L1TGCTClient.h:59
MonitorElement * l1GctAllJetsOccPhi_
Definition: L1TGCTClient.h:78
MonitorElement * l1GctForJetsOccEta_
Definition: L1TGCTClient.h:81
MonitorElement * l1GctCenJetsOccPhi_
Definition: L1TGCTClient.h:80
void makeXProjection(TH2F *input, MonitorElement *output)
MonitorElement * l1GctAllJetsOccEta_
Definition: L1TGCTClient.h:77
MonitorElement * get(const std::string &path) const
get ME from full pathname (e.g. &quot;my/long/dir/my_histo&quot;)
Definition: DQMStore.cc:1468
MonitorElement * l1GctNonIsoEmOccPhi_
Definition: L1TGCTClient.h:76
MonitorElement * l1GctIsoEmOccPhi_
Definition: L1TGCTClient.h:74
void makeYProjection(TH2F *input, MonitorElement *output)
MonitorElement * l1GctNonIsoEmOccEta_
Definition: L1TGCTClient.h:75
TH2F * getTH2F(void) const
MonitorElement * l1GctCenJetsOccEta_
Definition: L1TGCTClient.h:79

Member Data Documentation

int L1TGCTClient::counterEvt_
private

counter

Definition at line 62 of file L1TGCTClient.h.

int L1TGCTClient::counterLS_
private

Definition at line 61 of file L1TGCTClient.h.

DQMStore* L1TGCTClient::dbe_
private

Definition at line 59 of file L1TGCTClient.h.

Referenced by beginJob(), and processHistograms().

MonitorElement* L1TGCTClient::l1GctAllJetsOccEta_
private

Definition at line 77 of file L1TGCTClient.h.

Referenced by beginJob(), and processHistograms().

MonitorElement* L1TGCTClient::l1GctAllJetsOccPhi_
private

Definition at line 78 of file L1TGCTClient.h.

Referenced by beginJob(), and processHistograms().

MonitorElement* L1TGCTClient::l1GctCenJetsOccEta_
private

Definition at line 79 of file L1TGCTClient.h.

Referenced by beginJob(), and processHistograms().

MonitorElement* L1TGCTClient::l1GctCenJetsOccPhi_
private

Definition at line 80 of file L1TGCTClient.h.

Referenced by beginJob(), and processHistograms().

MonitorElement* L1TGCTClient::l1GctForJetsOccEta_
private

Definition at line 81 of file L1TGCTClient.h.

Referenced by beginJob(), and processHistograms().

MonitorElement* L1TGCTClient::l1GctForJetsOccPhi_
private

Definition at line 82 of file L1TGCTClient.h.

Referenced by beginJob(), and processHistograms().

MonitorElement* L1TGCTClient::l1GctIsoEmOccEta_
private

Definition at line 73 of file L1TGCTClient.h.

Referenced by beginJob(), and processHistograms().

MonitorElement* L1TGCTClient::l1GctIsoEmOccPhi_
private

Definition at line 74 of file L1TGCTClient.h.

Referenced by beginJob(), and processHistograms().

MonitorElement* L1TGCTClient::l1GctNonIsoEmOccEta_
private

Definition at line 75 of file L1TGCTClient.h.

Referenced by beginJob(), and processHistograms().

MonitorElement* L1TGCTClient::l1GctNonIsoEmOccPhi_
private

Definition at line 76 of file L1TGCTClient.h.

Referenced by beginJob(), and processHistograms().

MonitorElement* L1TGCTClient::l1GctTauJetsOccEta_
private

Definition at line 83 of file L1TGCTClient.h.

Referenced by beginJob(), and processHistograms().

MonitorElement* L1TGCTClient::l1GctTauJetsOccPhi_
private

Definition at line 84 of file L1TGCTClient.h.

Referenced by beginJob(), and processHistograms().

bool L1TGCTClient::m_runInEndJob
private

Definition at line 69 of file L1TGCTClient.h.

Referenced by endJob().

bool L1TGCTClient::m_runInEndLumi
private

Definition at line 67 of file L1TGCTClient.h.

Referenced by endLuminosityBlock().

bool L1TGCTClient::m_runInEndRun
private

Definition at line 68 of file L1TGCTClient.h.

Referenced by endRun().

bool L1TGCTClient::m_runInEventLoop
private

prescale on number of events

Definition at line 66 of file L1TGCTClient.h.

Referenced by analyze().

std::string L1TGCTClient::monitorDir_
private

Definition at line 60 of file L1TGCTClient.h.

Referenced by beginJob().

int L1TGCTClient::prescaleEvt_
private

units of lumi sections

Definition at line 64 of file L1TGCTClient.h.

int L1TGCTClient::prescaleLS_
private

counter

Definition at line 63 of file L1TGCTClient.h.