CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_6_2_7/src/CalibCalorimetry/EcalLaserAnalyzer/interface/TPN.h

Go to the documentation of this file.
00001 #ifndef TPN_H
00002 #define TPN_H
00003 
00004 #include <vector>
00005 
00006 class TMom;
00007 
00008 class TPN
00009 {
00010 
00011  public:
00012 
00013   enum outVar { iPN, iPNoPN, iPNoPN0, iPNoPN1, nOutVar };
00014 
00015   double cuts[2][nOutVar];
00016   TMom *mom[nOutVar];
00017 
00018   int _nPN;
00019 
00020   // Default Constructor, mainly for Root
00021   TPN(int iPN=0);
00022   
00023   // Destructor: Does nothing
00024   virtual ~TPN();
00025 
00026   void  init();
00027   void  setCut(int, double, double);
00028 
00029   void  setPNCut(double, double);
00030   void  setPNoPNCut(double, double);
00031   void  setPNoPN0Cut(double, double);
00032   void  setPNoPN1Cut(double, double);
00033 
00034   void  addEntry(double, double, double);
00035 
00036   std::vector<double> get(int);
00037   std::vector<double> getPN();
00038   std::vector<double> getPNoPN();
00039   std::vector<double> getPNoPN0();
00040   std::vector<double> getPNoPN1();
00041 
00042   
00043   
00044  public:
00045  
00046   //  ClassDef(TPN,0)
00047 
00048 };
00049 
00050 #endif