Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-11-01 03:29:34

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/ESHandle.h"
0026 #include "FWCore/Utilities/interface/InputTag.h"
0027 
0028 #include "FWCore/Framework/interface/Frameworkfwd.h"
0029 
0030 #include "Geometry/Records/interface/MuonGeometryRecord.h"
0031 #include "Geometry/CommonDetUnit/interface/GlobalTrackingGeometry.h"
0032 #include "MagneticField/Engine/interface/MagneticField.h"
0033 #include "CondFormats/DTObjects/interface/DTMtime.h"
0034 #include "CondFormats/DataRecord/interface/DTMtimeRcd.h"
0035 #include "CondFormats/DTObjects/interface/DTRecoConditions.h"
0036 #include "CondFormats/DataRecord/interface/DTRecoConditionsVdriftRcd.h"
0037 
0038 #include "RecoMuon/MeasurementDet/interface/MuonDetLayerMeasurements.h"
0039 #include "DQMServices/Core/interface/DQMStore.h"
0040 #include <vector>
0041 #include <string>
0042 
0043 class DTGeometry;
0044 class DetLayer;
0045 class DetId;
0046 
0047 class DTRunConditionVar : public DQMEDAnalyzer {
0048 public:
0049   //Constructor
0050   DTRunConditionVar(const edm::ParameterSet& pset);
0051 
0052   //Destructor
0053   ~DTRunConditionVar() override;
0054 
0055   //BookHistograms
0056   void bookHistograms(DQMStore::IBooker&, edm::Run const&, edm::EventSetup const&) override;
0057 
0058   //Operations
0059   void analyze(const edm::Event& event, const edm::EventSetup& eventSetup) override;
0060   void dqmBeginRun(const edm::Run&, const edm::EventSetup&) override;
0061 
0062 private:
0063   void bookChamberHistos(DQMStore::IBooker&, const DTChamberId& dtCh, std::string histoType, int, float, float);
0064 
0065   bool debug;
0066   int nMinHitsPhi;
0067   double maxAnglePhiSegm;
0068 
0069   edm::EDGetTokenT<DTRecSegment4DCollection> dt4DSegmentsToken_;
0070 
0071   edm::ESGetToken<DTGeometry, MuonGeometryRecord> muonGeomToken_;
0072   const DTGeometry* dtGeom;
0073 
0074   edm::ESGetToken<DTMtime, DTMtimeRcd> mTimeToken_;
0075   const DTMtime* mTimeMap_;  // legacy DB object
0076 
0077   edm::ESGetToken<DTRecoConditions, DTRecoConditionsVdriftRcd> vDriftToken_;
0078   const DTRecoConditions* vDriftMap_;  // DB object in new format
0079   bool readLegacyVDriftDB;             // which one to use
0080 
0081   std::map<uint32_t, std::map<std::string, MonitorElement*> > chamberHistos;
0082 
0083 protected:
0084 };
0085 
0086 #endif
0087 
0088 /* Local Variables: */
0089 /* show-trailing-whitespace: t */
0090 /* truncate-lines: t */
0091 /* End: */