Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-05-20 02:50:35

0001 #ifndef Validation_DTRecHits_DTSegment2DSLPhiQuality_h
0002 #define Validation_DTRecHits_DTSegment2DSLPhiQuality_h
0003 
0004 /** \class DTSegment2DSLPhiQuality
0005  *  Basic analyzer class which accesses 2D DTSegments reconstructed with both SL
0006  * Phi and plot resolution comparing reconstructed and simulated quantities
0007  *
0008  *  \author S. Bolognesi and G. Cerminara - INFN Torino
0009  */
0010 
0011 #include <map>
0012 #include <string>
0013 #include <vector>
0014 
0015 #include "DQMServices/Core/interface/DQMGlobalEDAnalyzer.h"
0016 #include "DataFormats/DTRecHit/interface/DTRecSegment4DCollection.h"
0017 #include "Geometry/Records/interface/MuonGeometryRecord.h"
0018 #include "FWCore/Utilities/interface/InputTag.h"
0019 #include "SimDataFormats/TrackingHit/interface/PSimHitContainer.h"
0020 
0021 namespace edm {
0022   class ParameterSet;
0023   class Event;
0024   class EventSetup;
0025 }  // namespace edm
0026 
0027 class HRes2DHit;
0028 class HEff2DHit;
0029 namespace dtsegment2dsl {
0030   struct Histograms;
0031 }
0032 
0033 class DTSegment2DSLPhiQuality : public DQMGlobalEDAnalyzer<dtsegment2dsl::Histograms> {
0034 public:
0035   /// Constructor
0036   DTSegment2DSLPhiQuality(const edm::ParameterSet &pset);
0037 
0038 private:
0039   /// Book the DQM plots
0040   void bookHistograms(DQMStore::IBooker &,
0041                       edm::Run const &,
0042                       edm::EventSetup const &,
0043                       dtsegment2dsl::Histograms &) const override;
0044 
0045   /// Perform the real analysis
0046   void dqmAnalyze(edm::Event const &, edm::EventSetup const &, dtsegment2dsl::Histograms const &) const override;
0047 
0048 private:
0049   // Labels to read from event
0050   edm::InputTag simHitLabel_;
0051   edm::InputTag segment4DLabel_;
0052   edm::EDGetTokenT<edm::PSimHitContainer> simHitToken_;
0053   edm::EDGetTokenT<DTRecSegment4DCollection> segment4DToken_;
0054 
0055   //Get DT Geometry
0056   edm::ESGetToken<DTGeometry, MuonGeometryRecord> muonGeomToken_;
0057 
0058   // Sigma resolution on position
0059   double sigmaResPos_;
0060 
0061   // Sigma resolution on angle
0062   double sigmaResAngle_;
0063 
0064   bool doall_;
0065   bool local_;
0066 
0067   // Switch for debug output
0068   bool debug_;
0069 };
0070 
0071 #endif  // Validation_DTRecHits_DTSegment2DSLPhiQuality_h