Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:09:38

0001 #ifndef DTSegmentsTask_H
0002 #define DTSegmentsTask_H
0003 
0004 /** \class DTSegmentsTask
0005  *  DQM Analysis of 4D DT segments
0006  *
0007  *  \author G. Mila - INFN Torino
0008  */
0009 
0010 #include "FWCore/Framework/interface/Frameworkfwd.h"
0011 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0012 
0013 //RecHit
0014 #include "DataFormats/DTRecHit/interface/DTRecSegment4DCollection.h"
0015 #include "CondFormats/DataRecord/interface/DTStatusFlagRcd.h"
0016 #include "CondFormats/DTObjects/interface/DTStatusFlag.h"
0017 
0018 #include "DQMServices/Core/interface/DQMStore.h"
0019 #include "DQMServices/Core/interface/DQMEDAnalyzer.h"
0020 
0021 #include <string>
0022 #include <vector>
0023 
0024 class DTSegmentsTask : public DQMEDAnalyzer {
0025 public:
0026   /// Constructor
0027   DTSegmentsTask(const edm::ParameterSet &pset);
0028 
0029   /// Destructor
0030   ~DTSegmentsTask() override;
0031 
0032   /// book the histos
0033   void analyze(const edm::Event &, const edm::EventSetup &) override;
0034   void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
0035 
0036 protected:
0037 private:
0038   // Switch for verbosity
0039   bool debug;
0040   bool checkNoisyChannels;
0041   edm::ParameterSet parameters;
0042 
0043   const edm::ESGetToken<DTStatusFlag, DTStatusFlagRcd> statusMapToken_;
0044 
0045   // the histos
0046   std::vector<MonitorElement *> phiHistos;
0047   std::vector<MonitorElement *> thetaHistos;
0048 
0049   // Label of 4D segments in the event
0050   edm::EDGetTokenT<DTRecSegment4DCollection> theRecHits4DLabel_;
0051 };
0052 #endif