CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/CalibCalorimetry/EcalLaserAnalyzer/interface/TPNPulse.h

Go to the documentation of this file.
00001 #ifndef TPNPulse_H
00002 #define TPNPulse_H
00003 
00004 #include "TObject.h"
00005 #include<vector>
00006 
00007 class TPNPulse: public TObject 
00008 {
00009 
00010  private:
00011 
00012   int _nsamples;
00013   int _presample;
00014   
00015 
00016   double *adc_;
00017   bool isMaxFound_;
00018   bool isPedCalc_;
00019   double adcMax_;
00020   int iadcMax_;
00021   double pedestal_;
00022 
00023   void init(int, int );
00024 
00025  public:
00026 
00027 
00028   // Default Constructor, mainly for Root
00029   TPNPulse();
00030 
00031   // Constructor
00032   TPNPulse(int, int);
00033 
00034   // Destructor: Does nothing
00035   virtual ~TPNPulse();
00036 
00037   bool setPulse(double*);
00038   double getMax();
00039   int getMaxSample();
00040   double getPedestal();
00041   double* getAdcWithoutPedestal();
00042   void setPresamples(int);
00043   //ClassDef(TPNPulse,1)
00044 };
00045 
00046 #endif