CMS 3D CMS Logo

L1ScalersClient.h
Go to the documentation of this file.
1 // -*-c++-*-
2 //
3 // Client class for L1 Scalers module.
4 //
5 
6 #ifndef L1ScalersCLIENT_H
7 #define L1ScalersCLIENT_H
8 
11 
13 
15 
16 // HARD CODE THE NUMBER OF HISTOGRAMS TO 200, LENGTH OF MONITOR to 2000
17 // segments
18 #define MAX_ALGOS 140
19 #define MAX_TT 80
20 #define MAX_LUMI_SEG 2000
21 
23 public:
26 
29 
31  ~L1ScalersClient() override{};
32 
34  void beginJob(void) override;
35 
36  // /// Endjob
37  // void endJob(void);
38 
40  void beginRun(const edm::Run &run, const edm::EventSetup &c) override;
41 
43  void endRun(const edm::Run &run, const edm::EventSetup &c) override;
44 
47  void endLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &c) override;
48 
49  // unused
50  void analyze(const edm::Event &e, const edm::EventSetup &c) override;
51 
52 private:
54 
55  int nev_; // Number of events processed
56  int nLumi_; // number of lumi blocks
58 
61 
62  unsigned long int l1AlgoScalerCounters_[MAX_ALGOS];
67 
68  unsigned long int l1TechTrigScalerCounters_[MAX_TT];
73 
74  // this is a selected list of guys
77  std::vector<int> algoSelected_;
78  std::vector<int> techSelected_;
81 
83  bool first_algo;
84  bool first_tt;
85 };
86 
87 #endif // L1ScalersCLIENT_H
L1ScalersClient::beginJob
void beginJob(void) override
BeginJob.
Definition: L1ScalersClient.cc:147
edm::LuminosityBlock
Definition: LuminosityBlock.h:50
edm::Run
Definition: Run.h:45
L1ScalersClient::totalAlgoRate_
MonitorElement * totalAlgoRate_
Definition: L1ScalersClient.h:66
L1ScalersClient::selected_
MonitorElement * selected_
Definition: L1ScalersClient.h:75
L1ScalersClient::L1ScalersClient
L1ScalersClient(const edm::ParameterSet &ps)
Constructors.
Definition: L1ScalersClient.cc:22
DQMStore.h
dqm::legacy::MonitorElement
Definition: MonitorElement.h:462
EDAnalyzer.h
L1ScalersClient::dbe_
DQMStore * dbe_
Definition: L1ScalersClient.h:53
MAX_TT
#define MAX_TT
Definition: L1ScalersClient.h:19
L1ScalersClient::currentLumiBlockNumber_
int currentLumiBlockNumber_
Definition: L1ScalersClient.h:82
L1ScalersClient::l1AlgoScalerCounters_
unsigned long int l1AlgoScalerCounters_[140]
Definition: L1ScalersClient.h:62
L1ScalersClient::totAlgoPrevCount
float totAlgoPrevCount
Definition: L1ScalersClient.h:59
L1ScalersClient::l1TechTrigRateHistories_
MonitorElement * l1TechTrigRateHistories_[80]
Definition: L1ScalersClient.h:70
edm::EDAnalyzer
Definition: EDAnalyzer.h:28
L1ScalersClient::numSelected_
int numSelected_
Definition: L1ScalersClient.h:80
dqm::legacy::DQMStore
Definition: DQMStore.h:727
L1ScalersClient::l1AlgoCurrentRatePerAlgo_
MonitorElement * l1AlgoCurrentRatePerAlgo_[140]
Definition: L1ScalersClient.h:65
L1ScalersClient::first_tt
bool first_tt
Definition: L1ScalersClient.h:84
L1ScalersClient::totTtPrevCount
float totTtPrevCount
Definition: L1ScalersClient.h:60
L1ScalersClient::l1TechTrigCurrentRatePerAlgo_
MonitorElement * l1TechTrigCurrentRatePerAlgo_[80]
Definition: L1ScalersClient.h:71
L1ScalersClient::bxSelected_
MonitorElement * bxSelected_
Definition: L1ScalersClient.h:76
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
L1ScalersClient::totalTtRate_
MonitorElement * totalTtRate_
Definition: L1ScalersClient.h:72
L1ScalersClient::l1TechTrigScalerCounters_
unsigned long int l1TechTrigScalerCounters_[80]
Definition: L1ScalersClient.h:68
L1ScalersClient::~L1ScalersClient
~L1ScalersClient() override
Destructor.
Definition: L1ScalersClient.h:31
L1ScalersClient::nev_
int nev_
Definition: L1ScalersClient.h:55
L1ScalersClient::DQMStore
dqm::legacy::DQMStore DQMStore
Definition: L1ScalersClient.h:25
edm::ParameterSet
Definition: ParameterSet.h:47
L1ScalersClient::folderName_
std::string folderName_
Definition: L1ScalersClient.h:79
L1ScalersClient::nLumi_
int nLumi_
Definition: L1ScalersClient.h:56
MAX_ALGOS
#define MAX_ALGOS
Definition: L1ScalersClient.h:18
edm::EventSetup
Definition: EventSetup.h:58
L1ScalersClient::first_algo
bool first_algo
Definition: L1ScalersClient.h:83
L1ScalersClient::analyze
void analyze(const edm::Event &e, const edm::EventSetup &c) override
Definition: L1ScalersClient.cc:308
InputTag.h
L1ScalersClient::techSelected_
std::vector< int > techSelected_
Definition: L1ScalersClient.h:78
L1ScalersClient
Definition: L1ScalersClient.h:22
L1ScalersClient::MonitorElement
dqm::legacy::MonitorElement MonitorElement
Definition: L1ScalersClient.h:24
writedatasetfile.run
run
Definition: writedatasetfile.py:27
L1ScalersClient::l1AlgoRateHistories_
MonitorElement * l1AlgoRateHistories_[140]
Definition: L1ScalersClient.h:64
Frameworkfwd.h
L1ScalersClient::l1TechTrigCurrentRate_
MonitorElement * l1TechTrigCurrentRate_
Definition: L1ScalersClient.h:69
L1ScalersClient::l1AlgoCurrentRate_
MonitorElement * l1AlgoCurrentRate_
Definition: L1ScalersClient.h:63
L1ScalersClient::endLuminosityBlock
void endLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &c) override
Definition: L1ScalersClient.cc:162
L1ScalersClient::endRun
void endRun(const edm::Run &run, const edm::EventSetup &c) override
EndRun.
Definition: L1ScalersClient.cc:158
L1ScalersClient::beginRun
void beginRun(const edm::Run &run, const edm::EventSetup &c) override
BeginRun.
Definition: L1ScalersClient.cc:155
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:46
edm::Event
Definition: Event.h:73
L1ScalersClient::algoSelected_
std::vector< int > algoSelected_
Definition: L1ScalersClient.h:77
L1ScalersClient::currentRun_
int currentRun_
Definition: L1ScalersClient.h:57
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37