File indexing completed on 2024-04-06 12:07:23
0001 #ifndef ESPedestalTask_H
0002 #define ESPedestalTask_H
0003
0004 #include "FWCore/Framework/interface/Event.h"
0005 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0006
0007 #include "DataFormats/EcalDigi/interface/EcalDigiCollections.h"
0008
0009 #include "DQMServices/Core/interface/DQMEDAnalyzer.h"
0010 #include "DQMServices/Core/interface/DQMStore.h"
0011
0012 class ESPedestalTask : public DQMEDAnalyzer {
0013 public:
0014 ESPedestalTask(const edm::ParameterSet& ps);
0015 ~ESPedestalTask() override {}
0016
0017 private:
0018 void bookHistograms(DQMStore::IBooker&, edm::Run const&, edm::EventSetup const&) override;
0019 void analyze(const edm::Event&, const edm::EventSetup&) override;
0020
0021 edm::EDGetTokenT<ESDigiCollection> digitoken_;
0022 edm::FileInPath lookup_;
0023 std::string outputFile_;
0024 std::string prefixME_;
0025
0026 MonitorElement* meADC_[4288][32];
0027
0028 int nLines_, runNum_, ievt_, senCount_[2][2][40][40];
0029 int runtype_, seqtype_, dac_, gain_, precision_;
0030 int firstDAC_, nDAC_, isPed_, vDAC_[5];
0031 };
0032
0033 #endif