CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_10_patch1/src/CalibCalorimetry/EcalLaserAnalyzer/plugins/EcalPerEvtMatacqAnalyzer.h

Go to the documentation of this file.
00001 // $Id: EcalPerEvtMatacqAnalyzer.h
00002 
00003 #include <memory>
00004 #include <FWCore/Framework/interface/EDAnalyzer.h>
00005 
00006 
00007 class TTree;
00008 class TFile;
00009 
00010 #define N_samples 2560
00011 #define N_channels 1
00012 
00013 
00014 
00015 class EcalPerEvtMatacqAnalyzer: public edm::EDAnalyzer{  
00016 
00017  public:
00018   
00019   explicit EcalPerEvtMatacqAnalyzer(const edm::ParameterSet& iConfig);  
00020   ~EcalPerEvtMatacqAnalyzer();
00021   
00022   
00023   virtual void analyze( const edm::Event & e, const  edm::EventSetup& c);
00024   virtual void beginJob();
00025   virtual void endJob();
00026   
00027   
00028  private:
00029     
00030   std::string resdir_;
00031   std::string digiCollection_;
00032   std::string digiProducer_;
00033   std::string eventHeaderCollection_;
00034   std::string eventHeaderProducer_;
00035 
00036   std::string outfile;
00037 
00038   int iEvent;
00039 
00040   // Identify run type
00041 
00042   int runType;
00043   int runNum;
00044 
00045   //Declaration of leaves types
00046   
00047   int   event ;
00048   int laser_color ;
00049   double  matacq[N_samples]; 
00050   unsigned int  maxsamp; 
00051   unsigned int  nsamples; 
00052 
00053   TFile *sampFile;
00054   TTree *tree;
00055 
00056   int IsFileCreated;
00057   int IsTreeCreated;
00058   TFile *outFile;
00059   int status;
00060   double peak, sigma, fit, ampl, trise, ttrig;
00061   TTree* mtqShape;
00062   
00063  private:
00064 
00065 //
00066 // Framework parameters
00067 //
00068 //  unsigned int _nsamples;
00069   double       _presample;
00070   unsigned int _nsamplesaftmax;
00071   unsigned int _nsamplesbefmax;
00072   unsigned int _noiseCut;
00073   unsigned int _parabnbefmax;
00074   unsigned int _parabnaftmax;
00075   unsigned int _thres;
00076   unsigned int _lowlev;
00077   unsigned int _highlev;
00078   unsigned int _nevlasers;
00079 
00080 };
00081 
00082