Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-08-12 23:11:29

0001 
0002 #ifndef DTRunConditionVar_H
0003 #define DTRunConditionVar_H
0004 
0005 /** \class DTRunConditionVar
0006  *
0007  * Description:
0008  *
0009  *
0010  * \author : Paolo Bellan, Antonio Branca
0011  * $date   : 23/09/2011 15:42:04 CET $
0012  *
0013  * Modification:
0014  *
0015  */
0016 
0017 #include "DQMServices/Core/interface/DQMEDAnalyzer.h"
0018 
0019 #include "DataFormats/Common/interface/Handle.h"
0020 
0021 #include "DataFormats/TrackReco/interface/TrackFwd.h"
0022 #include "DataFormats/TrackReco/interface/Track.h"
0023 #include "DataFormats/DTRecHit/interface/DTRecSegment4D.h"
0024 
0025 #include "FWCore/Framework/interface/EDAnalyzer.h"
0026 #include "FWCore/Framework/interface/ESHandle.h"
0027 #include "FWCore/Utilities/interface/InputTag.h"
0028 
0029 #include "FWCore/Framework/interface/Frameworkfwd.h"
0030 
0031 #include "Geometry/Records/interface/MuonGeometryRecord.h"
0032 #include "Geometry/CommonDetUnit/interface/GlobalTrackingGeometry.h"
0033 #include "MagneticField/Engine/interface/MagneticField.h"
0034 #include "CondFormats/DTObjects/interface/DTMtime.h"
0035 #include "CondFormats/DataRecord/interface/DTMtimeRcd.h"
0036 #include "CondFormats/DTObjects/interface/DTRecoConditions.h"
0037 #include "CondFormats/DataRecord/interface/DTRecoConditionsVdriftRcd.h"
0038 
0039 #include "RecoMuon/MeasurementDet/interface/MuonDetLayerMeasurements.h"
0040 #include "DQMServices/Core/interface/DQMStore.h"
0041 #include <vector>
0042 #include <string>
0043 
0044 class DTGeometry;
0045 class DetLayer;
0046 class DetId;
0047 
0048 class DTRunConditionVar : public DQMEDAnalyzer {
0049 public:
0050   //Constructor
0051   DTRunConditionVar(const edm::ParameterSet& pset);
0052 
0053   //Destructor
0054   ~DTRunConditionVar() override;
0055 
0056   //BookHistograms
0057   void bookHistograms(DQMStore::IBooker&, edm::Run const&, edm::EventSetup const&) override;
0058 
0059   //Operations
0060   void analyze(const edm::Event& event, const edm::EventSetup& eventSetup) override;
0061   void dqmBeginRun(const edm::Run&, const edm::EventSetup&) override;
0062 
0063 private:
0064   void bookChamberHistos(DQMStore::IBooker&, const DTChamberId& dtCh, std::string histoType, int, float, float);
0065 
0066   bool debug;
0067   int nMinHitsPhi;
0068   double maxAnglePhiSegm;
0069 
0070   edm::EDGetTokenT<DTRecSegment4DCollection> dt4DSegmentsToken_;
0071 
0072   edm::ESGetToken<DTGeometry, MuonGeometryRecord> muonGeomToken_;
0073   const DTGeometry* dtGeom;
0074 
0075   edm::ESGetToken<DTMtime, DTMtimeRcd> mTimeToken_;
0076   const DTMtime* mTimeMap_;  // legacy DB object
0077 
0078   edm::ESGetToken<DTRecoConditions, DTRecoConditionsVdriftRcd> vDriftToken_;
0079   const DTRecoConditions* vDriftMap_;  // DB object in new format
0080   bool readLegacyVDriftDB;             // which one to use
0081 
0082   std::map<uint32_t, std::map<std::string, MonitorElement*> > chamberHistos;
0083 
0084 protected:
0085 };
0086 
0087 #endif
0088 
0089 /* Local Variables: */
0090 /* show-trailing-whitespace: t */
0091 /* truncate-lines: t */
0092 /* End: */