CMS 3D CMS Logo

BeamSpotAnalyzer.h

Go to the documentation of this file.
00001 #ifndef BeamSpotProducer_BeamSpotAnalyzer_h
00002 #define BeamSpotProducer_BeamSpotAnalyzer_h
00003 
00017 // C++ standard
00018 #include <string>
00019 // CMS
00020 #include "FWCore/Framework/interface/Frameworkfwd.h"
00021 #include "FWCore/Framework/interface/EDAnalyzer.h"
00022 #include "FWCore/Framework/interface/Event.h"
00023 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00024 #include "RecoVertex/BeamSpotProducer/interface/BSTrkParameters.h"
00025 
00026 // ROOT
00027 #include "TFile.h"
00028 #include "TTree.h"
00029 
00030 #include<fstream>
00031 
00032 class BeamSpotAnalyzer : public edm::EDAnalyzer {
00033  public:
00034   explicit BeamSpotAnalyzer(const edm::ParameterSet&);
00035   ~BeamSpotAnalyzer();
00036 
00037  private:
00038   virtual void beginJob(const edm::EventSetup&) ;
00039   virtual void analyze(const edm::Event&, const edm::EventSetup&);
00040   virtual void endJob() ;
00041 
00042   std::string outputfilename_;
00043   std::string fasciifilename;
00044   std::ofstream fasciiFile;
00045   std::string fasciiFileName;
00046 
00047   TFile* file_;
00048   TTree* ftree_;
00049 
00050   int    ftotalevents;
00051   double ftheta;
00052   double fpt;
00053   double feta;
00054   int    fcharge;
00055   double fchi2;
00056   double fndof;
00057   double fphi0;
00058   double fd0;
00059   double fsigmad0;
00060   double fz0;
00061   double fsigmaz0;
00062   unsigned int fnHit;
00063   unsigned int fnStripHit;
00064   unsigned int fnPixelHit;
00065   unsigned int fnTIBHit;
00066   unsigned int fnTOBHit;
00067   unsigned int fnTIDHit;
00068   unsigned int fnTECHit;
00069   unsigned int fnPXBHit;
00070   unsigned int fnPXFHit;
00071   double fd0phi_chi2;
00072   double fd0phi_d0;
00073   double fcov[7][7];
00074   
00075   std::vector< BSTrkParameters > fBSvector;
00076   
00077   std::string ckfSeedProducerLabel_;
00078   std::string ckfTrackCandidateProducerLabel_;
00079   std::string ckfTrackProducerLabel_;
00080 
00081   unsigned int sameNumberOfTracks;
00082 
00083   float fptmin;
00084   int fmaxNtracks;  
00085 
00086   bool write2DB_;
00087   bool runallfitters_;
00088   int ftotal_tracks;
00089   double inputBeamWidth_;
00090   
00091 };
00092 
00093 #endif

Generated on Tue Jun 9 17:46:01 2009 for CMSSW by  doxygen 1.5.4