Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-05-10 22:24:53

0001 #ifndef DTCLUSANALYZER_H
0002 #define DTCLUSANALYZER_H
0003 
0004 /** \class DTClusAnalyzer
0005  *
0006  * Description:
0007  *  
0008  *  detailed description
0009  *
0010  * \author : Stefano Lacaprara - INFN LNL <stefano.lacaprara@pd.infn.it>
0011  *
0012  * Modification:
0013  *
0014  */
0015 
0016 /* Base Class Headers */
0017 #include "FWCore/Framework/interface/one/EDAnalyzer.h"
0018 namespace edm {
0019   class ParameterSet;
0020   class Event;
0021   class EventSetup;
0022 }  // namespace edm
0023 
0024 /* Collaborating Class Declarations */
0025 #include "DataFormats/Common/interface/Handle.h"
0026 class TFile;
0027 class TH1F;
0028 class TH2F;
0029 
0030 #include "Geometry/DTGeometry/interface/DTGeometry.h"
0031 #include "Geometry/Records/interface/MuonGeometryRecord.h"
0032 #include "DataFormats/DTRecHit/interface/DTRecHitCollection.h"
0033 #include "DataFormats/DTRecHit/interface/DTRecSegment2DCollection.h"
0034 #include "DataFormats/DTRecHit/interface/DTRecClusterCollection.h"
0035 
0036 /* C++ Headers */
0037 #include <iosfwd>
0038 
0039 /* ====================================================================== */
0040 
0041 /* Class DTClusAnalyzer Interface */
0042 
0043 class DTClusAnalyzer : public edm::one::EDAnalyzer<> {
0044 public:
0045   /* Constructor */
0046   DTClusAnalyzer(const edm::ParameterSet& pset);
0047 
0048   /* Destructor */
0049   ~DTClusAnalyzer();
0050 
0051   /* Operations */
0052   void analyze(const edm::Event& event, const edm::EventSetup& eventSetup);
0053 
0054 private:
0055   TH1F* histo(const std::string& name) const;
0056   TH2F* histo2d(const std::string& name) const;
0057 
0058 private:
0059   bool debug;
0060   int _ev;
0061   std::string theRootFileName;
0062   TFile* theFile;
0063 
0064   std::string theRecClusLabel;
0065   std::string theRecHits2DLabel;
0066   std::string theRecHits1DLabel;
0067 
0068   edm::ESGetToken<DTGeometry, MuonGeometryRecord> theDtGeomToken;
0069 
0070   edm::EDGetTokenT<DTRecClusterCollection> theRecClusToken;
0071   edm::EDGetTokenT<DTRecHitCollection> theRecHits1DToken;
0072   edm::EDGetTokenT<DTRecSegment2DCollection> theRecHits2DToken;
0073 
0074 protected:
0075 };
0076 #endif  // DTCLUSANALYZER_H