CMS 3D CMS Logo

MLClient.h
Go to the documentation of this file.
1 #ifndef MLClient_H
2 #define MLClient_H
3 
4 #include "DQWorkerClient.h"
5 #include <vector>
6 #include <valarray>
7 #include <deque>
8 
9 namespace ecaldqm {
10 
11  class MLClient : public DQWorkerClient {
12  public:
13  MLClient();
14  ~MLClient() override {}
15 
16  void producePlots(ProcessType) override;
17 
18  private:
19  void setParams(edm::ParameterSet const&) override;
20 
21  //Each Ecal Barrel occupancy map is plotted at the tower level
22  //34 towers in the eta and 72 towers in the phi directions
23  static const int nEtaTowers = 34;
24  static const int nPhiTowers = 72;
25  //After padding with two rows above and below to prevent the edge effect, 36 towers in eta direction
26  static const int nEtaTowersPad = 36;
27  float MLThreshold_;
30  size_t nLS = 3; //No.of lumisections to add the occupancy over
31  size_t nLSloss = 6; //No.of lumisections to multiply the loss over
32 
33  std::deque<int> NEventQ; //To keep the no.of events in each occupancy plot
34  std::deque<std::valarray<float>> ebOccMap1dQ; //To keep the input occupancy plots to be summed
35  std::vector<double> avgOcc_; //To keep the average occupancy to do response correction
36  std::deque<std::valarray<std::valarray<float>>> lossMap2dQ; //To keep the ML losses to be multiplied
37  };
38 
39 } // namespace ecaldqm
40 
41 #endif
static const int nEtaTowersPad
Definition: MLClient.h:26
void setParams(edm::ParameterSet const &) override
Definition: MLClient.cc:20
float MLThreshold_
Definition: MLClient.h:27
~MLClient() override
Definition: MLClient.h:14
void producePlots(ProcessType) override
Definition: MLClient.cc:35
std::deque< std::valarray< std::valarray< float > > > lossMap2dQ
Definition: MLClient.h:36
static const int nEtaTowers
Definition: MLClient.h:23
size_t nLSloss
Definition: MLClient.h:31
std::deque< int > NEventQ
Definition: MLClient.h:33
float PUcorr_intercept_
Definition: MLClient.h:29
float PUcorr_slope_
Definition: MLClient.h:28
static const int nPhiTowers
Definition: MLClient.h:24
std::deque< std::valarray< float > > ebOccMap1dQ
Definition: MLClient.h:34
std::vector< double > avgOcc_
Definition: MLClient.h:35