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:
DQMEDHarvester edm::one::EDAnalyzer< edm::one::WatchRuns, edm::one::WatchLuminosityBlocks, edm::one::SharedResources > edm::one::EDAnalyzerBase edm::EDConsumerBase

Public Member Functions

 L1TGCTClient (const edm::ParameterSet &ps)
 Constructor. More...
 
virtual ~L1TGCTClient ()
 Destructor. More...
 
- Public Member Functions inherited from DQMEDHarvester
virtual void analyze (edm::Event const &, edm::EventSetup const &) final
 
virtual void beginLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) final
 
virtual void beginRun (edm::Run const &, edm::EventSetup const &)
 
 DQMEDHarvester (void)
 
virtual void endJob () final
 
virtual void endLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) final
 
virtual void endRun (edm::Run const &, edm::EventSetup const &)
 
- Public Member Functions inherited from edm::one::EDAnalyzer< edm::one::WatchRuns, edm::one::WatchLuminosityBlocks, edm::one::SharedResources >
 EDAnalyzer ()=default
 
- Public Member Functions inherited from edm::one::EDAnalyzerBase
 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

virtual void dqmEndJob (DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter) override
 
virtual void dqmEndLuminosityBlock (DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter, const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &c)
 
- Protected Member Functions inherited from edm::one::EDAnalyzerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
- 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 book (DQMStore::IBooker &ibooker)
 
void makeXProjection (TH2F *input, MonitorElement *output)
 
void makeYProjection (TH2F *input, MonitorElement *output)
 
void processHistograms (DQMStore::IGetter &igetter)
 

Private Attributes

int counterEvt_
 counter More...
 
int counterLS_
 
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::one::EDAnalyzerBase
typedef EDAnalyzerBase ModuleType
 
- Static Public Member Functions inherited from edm::one::EDAnalyzerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 

Detailed Description

Definition at line 19 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:45
T getUntrackedParameter(std::string const &, T const &) const
std::string monitorDir_
Definition: L1TGCTClient.h:41
int counterEvt_
counter
Definition: L1TGCTClient.h:43
bool m_runInEventLoop
prescale on number of events
Definition: L1TGCTClient.h:47
bool m_runInEndLumi
Definition: L1TGCTClient.h:48
bool m_runInEndJob
Definition: L1TGCTClient.h:50
int prescaleLS_
counter
Definition: L1TGCTClient.h:44
bool m_runInEndRun
Definition: L1TGCTClient.h:49
L1TGCTClient::~L1TGCTClient ( )
virtual

Destructor.

Definition at line 38 of file L1TGCTClient.cc.

38 {}

Member Function Documentation

void L1TGCTClient::book ( DQMStore::IBooker ibooker)
private

Definition at line 40 of file L1TGCTClient.cc.

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

Referenced by dqmEndJob(), and dqmEndLuminosityBlock().

41 {
42  // Set to directory with ME in
44 
45  l1GctIsoEmOccEta_ = ibooker.book1D("IsoEmOccEta","ISO EM #eta OCCUPANCY", ETABINS, ETAMIN, ETAMAX);
46  l1GctIsoEmOccPhi_ = ibooker.book1D("IsoEmOccPhi","ISO EM #phi OCCUPANCY", PHIBINS, PHIMIN, PHIMAX);
47  l1GctNonIsoEmOccEta_ = ibooker.book1D("NonIsoEmOccEta","NON-ISO EM #eta OCCUPANCY", ETABINS, ETAMIN, ETAMAX);
48  l1GctNonIsoEmOccPhi_ = ibooker.book1D("NonIsoEmOccPhi","NON-ISO EM #phi OCCUPANCY", PHIBINS, PHIMIN, PHIMAX);
49  l1GctAllJetsOccEta_ = ibooker.book1D("AllJetsOccEta","CENTRAL AND FORWARD JET #eta OCCUPANCY", ETABINS, ETAMIN, ETAMAX);
50  l1GctAllJetsOccPhi_ = ibooker.book1D("AllJetsOccPhi","CENTRAL AND FORWARD JET #phi OCCUPANCY", PHIBINS, PHIMIN, PHIMAX);
51  l1GctCenJetsOccEta_ = ibooker.book1D("CenJetsOccEta","CENTRAL JET #eta OCCUPANCY", ETABINS, ETAMIN, ETAMAX);
52  l1GctCenJetsOccPhi_ = ibooker.book1D("CenJetsOccPhi","CENTRAL JET #phi OCCUPANCY", PHIBINS, PHIMIN, PHIMAX);
53  l1GctForJetsOccEta_ = ibooker.book1D("ForJetsOccEta","FORWARD JET #eta OCCUPANCY", ETABINS, ETAMIN, ETAMAX);
54  l1GctForJetsOccPhi_ = ibooker.book1D("ForJetsOccPhi","FORWARD JET #phi OCCUPANCY", PHIBINS, PHIMIN, PHIMAX);
55  l1GctTauJetsOccEta_ = ibooker.book1D("TauJetsOccEta","TAU JET #eta OCCUPANCY", ETABINS, ETAMIN, ETAMAX);
56  l1GctTauJetsOccPhi_ = ibooker.book1D("TauJetsOccPhi","TAU JET #phi OCCUPANCY", PHIBINS, PHIMIN, PHIMAX);
57 }
#define PHIMAX
MonitorElement * l1GctForJetsOccPhi_
Definition: L1TGCTClient.h:63
MonitorElement * l1GctTauJetsOccEta_
Definition: L1TGCTClient.h:64
std::string monitorDir_
Definition: L1TGCTClient.h:41
MonitorElement * l1GctTauJetsOccPhi_
Definition: L1TGCTClient.h:65
MonitorElement * l1GctIsoEmOccEta_
Definition: L1TGCTClient.h:54
MonitorElement * l1GctAllJetsOccPhi_
Definition: L1TGCTClient.h:59
MonitorElement * l1GctForJetsOccEta_
Definition: L1TGCTClient.h:62
MonitorElement * l1GctCenJetsOccPhi_
Definition: L1TGCTClient.h:61
#define ETAMAX
#define ETAMIN
MonitorElement * l1GctAllJetsOccEta_
Definition: L1TGCTClient.h:58
MonitorElement * book1D(Args &&...args)
Definition: DQMStore.h:115
#define PHIMIN
MonitorElement * l1GctNonIsoEmOccPhi_
Definition: L1TGCTClient.h:57
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:274
MonitorElement * l1GctIsoEmOccPhi_
Definition: L1TGCTClient.h:55
#define ETABINS
MonitorElement * l1GctNonIsoEmOccEta_
Definition: L1TGCTClient.h:56
#define PHIBINS
MonitorElement * l1GctCenJetsOccEta_
Definition: L1TGCTClient.h:60
void L1TGCTClient::dqmEndJob ( DQMStore::IBooker ibooker,
DQMStore::IGetter igetter 
)
overrideprotectedvirtual

Implements DQMEDHarvester.

Definition at line 69 of file L1TGCTClient.cc.

References book(), m_runInEndRun, and processHistograms().

69  {
70 
71  if (m_runInEndRun) {
72  book(ibooker);
73  processHistograms(igetter);
74  }
75 
76 }
void book(DQMStore::IBooker &ibooker)
Definition: L1TGCTClient.cc:40
void processHistograms(DQMStore::IGetter &igetter)
Definition: L1TGCTClient.cc:78
bool m_runInEndRun
Definition: L1TGCTClient.h:49
void L1TGCTClient::dqmEndLuminosityBlock ( DQMStore::IBooker ibooker,
DQMStore::IGetter igetter,
const edm::LuminosityBlock lumiSeg,
const edm::EventSetup c 
)
protectedvirtual

Reimplemented from DQMEDHarvester.

Definition at line 59 of file L1TGCTClient.cc.

References book(), m_runInEndLumi, and processHistograms().

60 {
61 
62  if (m_runInEndLumi) {
63  book(ibooker);
64  processHistograms(igetter);
65  }
66 
67 }
void book(DQMStore::IBooker &ibooker)
Definition: L1TGCTClient.cc:40
void processHistograms(DQMStore::IGetter &igetter)
Definition: L1TGCTClient.cc:78
bool m_runInEndLumi
Definition: L1TGCTClient.h:48
void L1TGCTClient::makeXProjection ( TH2F *  input,
MonitorElement output 
)
private

Definition at line 121 of file L1TGCTClient.cc.

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

Referenced by processHistograms().

122 {
123  // Are the provided input and output consistent
124  if (input->GetNbinsX() != output->getNbinsX()) return;
125 
126  // Make the projection
127  TH1D* projX = input->ProjectionX();
128 
129  for (Int_t i=0; i<projX->GetNbinsX(); i++) {
130  output->setBinContent(i+1,projX->GetBinContent(i+1));
131  }
132  delete projX;
133 }
int i
Definition: DBlmapReader.cc:9
void setBinContent(int binx, double content)
set content of bin (1-D)
static std::string const input
Definition: EdmProvDump.cc:43
int getNbinsX(void) const
get # of bins in X-axis
void L1TGCTClient::makeYProjection ( TH2F *  input,
MonitorElement output 
)
private

Definition at line 135 of file L1TGCTClient.cc.

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

Referenced by processHistograms().

136 {
137  // Are the provided input and output consistent
138  if (input->GetNbinsY() != output->getNbinsX()) return;
139 
140  // Make the projection
141  TH1D* projY = input->ProjectionY();
142 
143  for (Int_t i=0; i<projY->GetNbinsX(); i++) {
144  output->setBinContent(i+1,projY->GetBinContent(i+1));
145  }
146  delete projY;
147 }
int i
Definition: DBlmapReader.cc:9
void setBinContent(int binx, double content)
set content of bin (1-D)
static std::string const input
Definition: EdmProvDump.cc:43
int getNbinsX(void) const
get # of bins in X-axis
void L1TGCTClient::processHistograms ( DQMStore::IGetter igetter)
private

Definition at line 78 of file L1TGCTClient.cc.

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

Referenced by dqmEndJob(), and dqmEndLuminosityBlock().

78  {
79 
81 
82  Input = igetter.get("L1T/L1TGCT/IsoEmOccEtaPhi");
83  if (Input!=NULL){
86  }
87 
88  Input = igetter.get("L1T/L1TGCT/NonIsoEmOccEtaPhi");
89  if (Input!=NULL){
92  }
93 
94  Input = igetter.get("L1T/L1TGCT/AllJetsOccEtaPhi");
95  if (Input!=NULL){
98  }
99 
100  Input = igetter.get("L1T/L1TGCT/CenJetsOccEtaPhi");
101  if (Input!=NULL){
104  }
105 
106  Input = igetter.get("L1T/L1TGCT/ForJetsOccEtaPhi");
107  if (Input!=NULL){
110  }
111 
112  Input = igetter.get("L1T/L1TGCT/TauJetsOccEtaPhi");
113  if (Input!=NULL){
116  }
117 
118 }
MonitorElement * l1GctForJetsOccPhi_
Definition: L1TGCTClient.h:63
#define Input(cl)
Definition: vmac.h:188
MonitorElement * l1GctTauJetsOccEta_
Definition: L1TGCTClient.h:64
MonitorElement * get(const std::string &path)
Definition: DQMStore.cc:302
#define NULL
Definition: scimark2.h:8
MonitorElement * l1GctTauJetsOccPhi_
Definition: L1TGCTClient.h:65
MonitorElement * l1GctIsoEmOccEta_
Definition: L1TGCTClient.h:54
MonitorElement * l1GctAllJetsOccPhi_
Definition: L1TGCTClient.h:59
MonitorElement * l1GctForJetsOccEta_
Definition: L1TGCTClient.h:62
MonitorElement * l1GctCenJetsOccPhi_
Definition: L1TGCTClient.h:61
void makeXProjection(TH2F *input, MonitorElement *output)
MonitorElement * l1GctAllJetsOccEta_
Definition: L1TGCTClient.h:58
MonitorElement * l1GctNonIsoEmOccPhi_
Definition: L1TGCTClient.h:57
MonitorElement * l1GctIsoEmOccPhi_
Definition: L1TGCTClient.h:55
void makeYProjection(TH2F *input, MonitorElement *output)
MonitorElement * l1GctNonIsoEmOccEta_
Definition: L1TGCTClient.h:56
TH2F * getTH2F(void) const
MonitorElement * l1GctCenJetsOccEta_
Definition: L1TGCTClient.h:60

Member Data Documentation

int L1TGCTClient::counterEvt_
private

counter

Definition at line 43 of file L1TGCTClient.h.

int L1TGCTClient::counterLS_
private

Definition at line 42 of file L1TGCTClient.h.

MonitorElement* L1TGCTClient::l1GctAllJetsOccEta_
private

Definition at line 58 of file L1TGCTClient.h.

Referenced by book(), and processHistograms().

MonitorElement* L1TGCTClient::l1GctAllJetsOccPhi_
private

Definition at line 59 of file L1TGCTClient.h.

Referenced by book(), and processHistograms().

MonitorElement* L1TGCTClient::l1GctCenJetsOccEta_
private

Definition at line 60 of file L1TGCTClient.h.

Referenced by book(), and processHistograms().

MonitorElement* L1TGCTClient::l1GctCenJetsOccPhi_
private

Definition at line 61 of file L1TGCTClient.h.

Referenced by book(), and processHistograms().

MonitorElement* L1TGCTClient::l1GctForJetsOccEta_
private

Definition at line 62 of file L1TGCTClient.h.

Referenced by book(), and processHistograms().

MonitorElement* L1TGCTClient::l1GctForJetsOccPhi_
private

Definition at line 63 of file L1TGCTClient.h.

Referenced by book(), and processHistograms().

MonitorElement* L1TGCTClient::l1GctIsoEmOccEta_
private

Definition at line 54 of file L1TGCTClient.h.

Referenced by book(), and processHistograms().

MonitorElement* L1TGCTClient::l1GctIsoEmOccPhi_
private

Definition at line 55 of file L1TGCTClient.h.

Referenced by book(), and processHistograms().

MonitorElement* L1TGCTClient::l1GctNonIsoEmOccEta_
private

Definition at line 56 of file L1TGCTClient.h.

Referenced by book(), and processHistograms().

MonitorElement* L1TGCTClient::l1GctNonIsoEmOccPhi_
private

Definition at line 57 of file L1TGCTClient.h.

Referenced by book(), and processHistograms().

MonitorElement* L1TGCTClient::l1GctTauJetsOccEta_
private

Definition at line 64 of file L1TGCTClient.h.

Referenced by book(), and processHistograms().

MonitorElement* L1TGCTClient::l1GctTauJetsOccPhi_
private

Definition at line 65 of file L1TGCTClient.h.

Referenced by book(), and processHistograms().

bool L1TGCTClient::m_runInEndJob
private

Definition at line 50 of file L1TGCTClient.h.

bool L1TGCTClient::m_runInEndLumi
private

Definition at line 48 of file L1TGCTClient.h.

Referenced by dqmEndLuminosityBlock().

bool L1TGCTClient::m_runInEndRun
private

Definition at line 49 of file L1TGCTClient.h.

Referenced by dqmEndJob().

bool L1TGCTClient::m_runInEventLoop
private

prescale on number of events

Definition at line 47 of file L1TGCTClient.h.

std::string L1TGCTClient::monitorDir_
private

Definition at line 41 of file L1TGCTClient.h.

Referenced by book().

int L1TGCTClient::prescaleEvt_
private

units of lumi sections

Definition at line 45 of file L1TGCTClient.h.

int L1TGCTClient::prescaleLS_
private

counter

Definition at line 44 of file L1TGCTClient.h.