Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:26:12

0001 #ifndef RecoMuon_StandAloneMuonProducer_STAMuonAnalyzer_H
0002 #define RecoMuon_StandAloneMuonProducer_STAMuonAnalyzer_H
0003 
0004 /** \class STAMuonAnalyzer
0005  *  Analyzer of the StandAlone muon tracks
0006  *
0007  *  \author R. Bellan - INFN Torino <riccardo.bellan@cern.ch>
0008  */
0009 
0010 // Base Class Headers
0011 #include "FWCore/Framework/interface/EDAnalyzer.h"
0012 
0013 namespace edm {
0014   class ParameterSet;
0015   class Event;
0016   class EventSetup;
0017 }  // namespace edm
0018 
0019 class TFile;
0020 class TH1F;
0021 class TH2F;
0022 
0023 class STAMuonAnalyzer : public edm::EDAnalyzer {
0024 public:
0025   /// Constructor
0026   STAMuonAnalyzer(const edm::ParameterSet &pset);
0027 
0028   /// Destructor
0029   virtual ~STAMuonAnalyzer();
0030 
0031   // Operations
0032 
0033   void analyze(const edm::Event &event, const edm::EventSetup &eventSetup);
0034 
0035   virtual void beginJob();
0036   virtual void endJob();
0037 
0038 protected:
0039 private:
0040   std::string theRootFileName;
0041   TFile *theFile;
0042 
0043   std::string theSTAMuonLabel;
0044   std::string theSeedCollectionLabel;
0045 
0046   // Histograms
0047   TH1F *hPtRec;
0048   TH1F *hPtSim;
0049   TH1F *hPres;
0050   TH1F *h1_Pres;
0051   TH1F *hPTDiff;
0052   TH1F *hPTDiff2;
0053   TH2F *hPTDiffvsEta;
0054   TH2F *hPTDiffvsPhi;
0055 
0056   // Counters
0057   int numberOfSimTracks;
0058   int numberOfRecTracks;
0059 
0060   std::string theDataType;
0061 };
0062 #endif