Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:09:25

0001 #ifndef DQM_CASTORMONITOR_CASTORLEDMONITOR_H
0002 #define DQM_CASTORMONITOR_CASTORLEDMONITOR_H
0003 
0004 #include "CalibFormats/CastorObjects/interface/CastorDbRecord.h"
0005 #include "CalibFormats/CastorObjects/interface/CastorDbService.h"
0006 #include "DQMServices/Core/interface/DQMStore.h"
0007 #include "DataFormats/HcalDigi/interface/HcalDigiCollections.h"
0008 #include "DataFormats/HcalDigi/interface/HcalUnpackerReport.h"
0009 #include "FWCore/Framework/interface/Frameworkfwd.h"
0010 
0011 static const float LedMonAdc2fc[128] = {
0012     -0.5,   0.5,    1.5,    2.5,    3.5,    4.5,    5.5,    6.5,    7.5,    8.5,    9.5,    10.5,   11.5,
0013     12.5,   13.5,   15.,    17.,    19.,    21.,    23.,    25.,    27.,    29.5,   32.5,   35.5,   38.5,
0014     42.,    46.,    50.,    54.5,   59.5,   64.5,   59.5,   64.5,   69.5,   74.5,   79.5,   84.5,   89.5,
0015     94.5,   99.5,   104.5,  109.5,  114.5,  119.5,  124.5,  129.5,  137.,   147.,   157.,   167.,   177.,
0016     187.,   197.,   209.5,  224.5,  239.5,  254.5,  272.,   292.,   312.,   334.5,  359.5,  384.5,  359.5,
0017     384.5,  409.5,  434.5,  459.5,  484.5,  509.5,  534.5,  559.5,  584.5,  609.5,  634.5,  659.5,  684.5,
0018     709.5,  747.,   797.,   847.,   897.,   947.,   997.,   1047.,  1109.5, 1184.5, 1259.5, 1334.5, 1422.,
0019     1522.,  1622.,  1734.5, 1859.5, 1984.5, 1859.5, 1984.5, 2109.5, 2234.5, 2359.5, 2484.5, 2609.5, 2734.5,
0020     2859.5, 2984.5, 3109.5, 3234.5, 3359.5, 3484.5, 3609.5, 3797.,  4047.,  4297.,  4547.,  4797.,  5047.,
0021     5297.,  5609.5, 5984.5, 6359.5, 6734.5, 7172.,  7672.,  8172.,  8734.5, 9359.5, 9984.5};
0022 
0023 // class CastorLEDMonitor: public CastorBaseMonitor {
0024 // class CastorLEDMonitor: public DQMEDHarvester {
0025 // class CastorLEDMonitor: public CastorMonitorModule {
0026 
0027 class CastorLEDMonitor {
0028 public:
0029   typedef dqm::legacy::DQMStore DQMStore;
0030   typedef dqm::legacy::MonitorElement MonitorElement;
0031   CastorLEDMonitor(const edm::ParameterSet &ps);
0032   ~CastorLEDMonitor();
0033 
0034   void bookHistograms(DQMStore::IBooker &, edm::Run const &);
0035   void processEvent(const CastorDigiCollection &cast, const CastorDbService &cond);
0036 
0037 private:
0038   int ievt_;
0039   std::string subsystemname;
0040   int fVerbosity;
0041 
0042   MonitorElement *h2qMap, *h2meanMap;
0043 };
0044 
0045 #endif