]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EMCAL/AliEMCALPi0SelectionParam.h
Initialization of some data members (Christian)
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALPi0SelectionParam.h
1 #ifndef ALIEMCALPI0SELECTIONPARAM_H
2 #define ALIEMCALPI0SELECTIONPARAM_H
3 /* Copyright(c) 1998-2007, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice     */
5
6 /* $Id$ */
7
8 //_________________________________________________________________________
9 //  Set of parameters for pi0 selection 
10 //                  
11 //*-- Author: Aleksei Pavlinov (WSU, Detroit, USA) 
12
13 // --- ROOT system ---
14 #include <TNamed.h>
15 #include <TObjArray.h>
16
17 // unit is GeV
18 class  pi0SelectionParam :  public TObject{
19  public:
20   pi0SelectionParam();
21   virtual ~pi0SelectionParam() {};
22   virtual const char* GetName() const {return "Pi0Par";}
23
24   double eOfRpMin;   // minimal energy of em.cluster (rec point)
25   double eOfRpMax;   // maximal energy of em.cluster (rec point)
26   double massGGMin;  // minimal mass of gamma,gamma
27   double massGGMax;  // maximal mass of gamma,gamma
28   double momPi0Min;  // minimal pi0 momentum
29   double momPi0Max;  // maximal pi0 momentum
30
31   ClassDef(pi0SelectionParam,1);
32 };
33
34 class AliEMCALPi0SelectionParam : public TNamed {
35  public:
36   AliEMCALPi0SelectionParam(); // default constractor
37   AliEMCALPi0SelectionParam(const char* name, const Int_t nrow);
38   virtual ~AliEMCALPi0SelectionParam();
39
40   AliEMCALPi0SelectionParam & operator = (const AliEMCALPi0SelectionParam  & /*rvalue*/) {
41     // assignement operator requested by coding convention but not needed
42     Fatal("operator =", "not implemented");
43     return *this;
44   };
45   // 
46   void AddAt(pi0SelectionParam* r);
47   pi0SelectionParam* GetTable(Int_t i) const;
48   Int_t       GetSize()  const {return fTable->GetSize();}
49   Int_t       GetNRows() const {return fCurrentInd;}
50
51  // Menu
52   void PrintTable();                 // *MENU*
53   void PrintTable(const Int_t i);    // *MENU*
54   void PrintRec(pi0SelectionParam *r);
55
56   // Set of parameter(s)
57   static AliEMCALPi0SelectionParam* Set1();
58   //
59  protected:
60   TObjArray *fTable;
61   Int_t fCurrentInd;
62
63   ClassDef(AliEMCALPi0SelectionParam, 2) // Set of Parameters For Pi0 Selection     
64 };
65
66 #endif // ALIEMCALPI0SELECTIONPARAM_H