Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-05-18 03:27:06

0001 #ifndef RPCClusterSizeTest_H
0002 #define RPCClusterSizeTest_H
0003 
0004 #include "DQM/RPCMonitorClient/interface/RPCClient.h"
0005 #include "DQMServices/Core/interface/DQMStore.h"
0006 
0007 #include <vector>
0008 #include <string>
0009 
0010 class RPCClusterSizeTest : public RPCClient {
0011 public:
0012   /// Constructor
0013   RPCClusterSizeTest(const edm::ParameterSet &ps);
0014 
0015   /// Destructor
0016   ~RPCClusterSizeTest() override = default;
0017   void clientOperation() override;
0018   void getMonitorElements(std::vector<MonitorElement *> &, std::vector<RPCDetId> &, std::string &) override;
0019   void beginJob(std::string &) override;
0020   void myBooker(DQMStore::IBooker &) override;
0021 
0022 private:
0023   std::string globalFolder_;
0024   int numberOfDisks_;
0025   int numberOfRings_;
0026   int prescaleFactor_;
0027   bool testMode_;
0028   bool useRollInfo_;
0029   std::vector<MonitorElement *> myClusterMe_;
0030   std::vector<RPCDetId> myDetIds_;
0031   enum MEArraySizes { kWheels = 5, kDisks = 10 };
0032 
0033   MonitorElement *MEANWheel[kWheels];   // Mean ClusterSize, Roll vs Sector
0034   MonitorElement *MEANDWheel[kWheels];  // Mean ClusterSize, Distribution
0035 
0036   MonitorElement *MEANDisk[kDisks];   // Mean ClusterSize, Roll vs Sector
0037   MonitorElement *MEANDDisk[kDisks];  // Mean ClusterSize, Distribution
0038 
0039   void resetMEArrays(void);
0040 };
0041 
0042 #endif