Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:11:35

0001 #ifndef DQM_SiStripCommissioningSources_CalibrationTask_h
0002 #define DQM_SiStripCommissioningSources_CalibrationTask_h
0003 
0004 #include "DQM/SiStripCommissioningSources/interface/CommissioningTask.h"
0005 #include <string>
0006 
0007 class SiStripPedestals;
0008 
0009 /**
0010    @class CalibrationTask
0011 */
0012 class CalibrationTask : public CommissioningTask {
0013 public:
0014   CalibrationTask(DQMStore*,
0015                   const FedChannelConnection&,
0016                   const sistrip::RunType&,
0017                   const char* filename,
0018                   uint32_t run,
0019                   const SiStripPedestals& pedestals);
0020   ~CalibrationTask() override;
0021   void setCurrentFolder(const std::string&);
0022 
0023 private:
0024   void book() override;
0025   void fill(const SiStripEventSummary&, const edm::DetSet<SiStripRawDigi>&) override;
0026   void update() override;
0027 
0028   sistrip::RunType runType_;
0029   std::map<std::string, std::vector<HistoSet>> calib1_;  // first  APV --> one key for each calChan
0030   std::map<std::string, std::vector<HistoSet>> calib2_;  // second APV --> one key for each calChan
0031 
0032   uint16_t nBins_;
0033   uint16_t lastCalChan_, lastCalSel_, lastLatency_;
0034   std::string extrainfo_;
0035   std::string directory_;
0036   std::vector<uint16_t> ped;
0037   uint32_t run_;
0038 };
0039 
0040 #endif  // DQM_SiStripCommissioningSources_CalibrationTask_h