00001 #ifndef CSCTFAnalyzer_h 00002 #define CSCTFAnalyzer_h 00003 00004 #include "FWCore/Framework/interface/EDAnalyzer.h" 00005 #include "FWCore/Framework/interface/Event.h" 00006 #include "DataFormats/Common/interface/Handle.h" 00007 #include "FWCore/ParameterSet/interface/ParameterSet.h" 00008 #include "FWCore/Framework/interface/EventSetup.h" 00009 #include "FWCore/Framework/interface/ESHandle.h" 00010 #include "FWCore/ParameterSet/interface/InputTag.h" 00011 00012 #include "TTree.h" 00013 #include "TFile.h" 00014 00015 class CSCTFanalyzer : public edm::EDAnalyzer { 00016 private: 00017 edm::InputTag lctProducer, dataTrackProducer, emulTrackProducer; 00018 TTree *tree; 00019 TFile *file; 00020 int nDataMuons, nEmulMuons, verbose; 00021 int dphi1, deta1, dpt1, dch1, dbx1; 00022 int dphi2, deta2, dpt2, dch2, dbx2; 00023 int dphi3, deta3, dpt3, dch3, dbx3; 00024 int ephi1, eeta1, ept1, ech1, ebx1; 00025 int ephi2, eeta2, ept2, ech2, ebx2; 00026 int ephi3, eeta3, ept3, ech3, ebx3; 00027 00028 public: 00029 virtual void analyze(edm::Event const& e, edm::EventSetup const& iSetup); 00030 virtual void endJob(void); 00031 virtual void beginJob(edm::EventSetup const&){} 00032 00033 explicit CSCTFanalyzer(edm::ParameterSet const& pset); 00034 virtual ~CSCTFanalyzer(void) {} 00035 }; 00036 00037 #endif 00038