test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CastorChannelQualityMonitor.h
Go to the documentation of this file.
1 #ifndef DQM_CASTORMONITOR_CASTORCHANNELQUALITYMONITOR_H
2 #define DQM_CASTORMONITOR_CASTORCHANNELQUALITYMONITOR_H
3 
7 
10 
17 
21 
22 #include <iostream>
23 #include <fstream>
24 #include <vector>
25 #include <map>
26 
27 
29 {
30 
31  typedef std::map<uint32_t,float,std::less<uint32_t> > MapType;
32 
33 public:
36 
37  void setup(const edm::ParameterSet& ps, DQMStore* dbe);
38  void beginRun(const edm::Run& iRun, const edm::EventSetup& iSetup);
39  void processEvent(const CastorRecHitCollection& castorHits);
40  void reset();
41 
42 
43  struct{
44  int module;
45  int sector;
46  std::vector<float> energy;
47  } ChannelStatus;
48 
49 
50 private:
51 
52  int ievt_;
54  int status; int numOK;
55 
57 
58  double nThreshold_;
59  double dThreshold_;
60  int aboveNoisyThreshold [14][16];
61  int belowDThreshold [14][16];
62  double energyArray [14][16];
63  int aboveThr [14][16];
64  int counter1;
65  int counter2;
66  double wcounter1;
67  double wcounter2;
68  double averageEnergy;
69 
71  bool offline_;
72  bool iRecHit;
76  double fraction;
77 
78 };
79 
80 #endif
void beginRun(const edm::Run &iRun, const edm::EventSetup &iSetup)
std::map< uint32_t, float, std::less< uint32_t > > MapType
struct CastorChannelQualityMonitor::@273 ChannelStatus
void setup(const edm::ParameterSet &ps, DQMStore *dbe)
void processEvent(const CastorRecHitCollection &castorHits)
Definition: Run.h:41