CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_6_1_1/src/DQM/RPCMonitorClient/interface/RPCClusterSizeTest.h

Go to the documentation of this file.
00001 #ifndef RPCClusterSizeTest_H
00002 #define RPCClusterSizeTest_H
00003 
00004 #include "DQM/RPCMonitorClient/interface/RPCClient.h"
00005 #include "DQMServices/Core/interface/DQMStore.h"
00006 
00007 #include <map>
00008 #include <memory>
00009 #include <string>
00010 #include <vector>
00011 
00012 
00013 class RPCClusterSizeTest:public RPCClient{
00014  public:
00015 
00017   RPCClusterSizeTest(const edm::ParameterSet& ps);
00018 
00020   virtual ~RPCClusterSizeTest();
00021 
00023   void beginJob(DQMStore *, std::string);
00024 
00025   //Begin Run
00026   void endRun(const edm::Run& r, const edm::EventSetup& c );
00027 
00028 
00030   void beginLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& context) ;
00031 
00033   void analyze(const edm::Event& iEvent, const edm::EventSetup& c);
00034 
00036   void endLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& c);
00037 
00038   void  endJob(void);
00039 
00040   void  beginRun(const edm::Run& r, const edm::EventSetup& c);
00041 
00042   void  clientOperation(edm::EventSetup const& c);
00043 
00044   void  getMonitorElements(std::vector<MonitorElement *> & , std::vector<RPCDetId> &);
00045 
00046  private:
00047 
00048   std::string globalFolder_;
00049   int numberOfDisks_;
00050   int numberOfRings_;
00051   int prescaleFactor_;
00052   bool testMode_;
00053   DQMStore* dbe_;
00054   bool useRollInfo_;
00055   std::vector<MonitorElement *>  myClusterMe_;
00056   std::vector<RPCDetId>   myDetIds_;
00057   enum MEArraySizes {
00058     kWheels = 5,
00059     kDisks = 10
00060   };
00061 
00062   MonitorElement * CLSWheel[kWheels];          // ClusterSize in 1 bin, Roll vs Sector
00063   MonitorElement * CLSDWheel[kWheels];         // ClusterSize in 1 bin, Distribution
00064   MonitorElement * MEANWheel[kWheels];         // Mean ClusterSize, Roll vs Sector
00065   MonitorElement * MEANDWheel[kWheels];        // Mean ClusterSize, Distribution
00066 
00067   MonitorElement * CLSDisk[kDisks];          // ClusterSize in 1 bin, Roll vs Sector
00068   MonitorElement * CLSDDisk[kDisks];         // ClusterSize in 1 bin, Distribution
00069   MonitorElement * MEANDisk[kDisks];         // Mean ClusterSize, Roll vs Sector
00070   MonitorElement * MEANDDisk[kDisks];        // Mean ClusterSize, Distribution
00071 
00072   void resetMEArrays(void);
00073 };
00074 
00075 #endif