File indexing completed on 2024-04-06 12:26:10
0001 #ifndef DTCLUSANALYZER_H
0002 #define DTCLUSANALYZER_H
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #include "FWCore/Framework/interface/one/EDAnalyzer.h"
0018 namespace edm {
0019 class ParameterSet;
0020 class Event;
0021 class EventSetup;
0022 }
0023
0024
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
0037 #include <iosfwd>
0038
0039
0040
0041
0042
0043 class DTClusAnalyzer : public edm::one::EDAnalyzer<> {
0044 public:
0045
0046 DTClusAnalyzer(const edm::ParameterSet& pset);
0047
0048
0049 ~DTClusAnalyzer();
0050
0051
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