/* $Id$ */
//_________________________________________________________________________
-// Set of parameters for pi0 selection
+// Set of parameters for pi0 selection
+// unit is GeV
+// pi0SelectionParam -> AliEMCALPi0SelectionParRec
//
//*-- Author: Aleksei Pavlinov (WSU, Detroit, USA)
// --- ROOT system ---
-#include <TTable.h>
+#include <TNamed.h>
+#include <TObjArray.h>
-// unit is GeV
-struct pi0SelectionParam {
- double eOfRpMin; // minimal energy of em.cluster (rec point)
- double eOfRpMax; // maximal energy of em.cluster (rec point)
- double massGGMin; // minimal mass of gamma,gamma
- double massGGMax; // maximal mass of gamma,gamma
- double momPi0Min; // minimal pi0 momentum
- double momPi0Max; // maximal pi0 momentum
+// pi0SelectionParam -> AliEMCALPi0SelectionParRec
+
+class AliEMCALPi0SelectionParRec : public TObject{
+ friend class AliEMCALPi0SelectionParam;
+ friend class AliEMCALRecPointsQaESDSelector;
+ public:
+ AliEMCALPi0SelectionParRec();
+ virtual ~AliEMCALPi0SelectionParRec() {};
+ virtual const char* GetName() const {return "Pi0Par";}
+
+ protected:
+ double fEOfRpMin; // minimal energy of em.cluster (rec point)
+ double fEOfRpMax; // maximal energy of em.cluster (rec point)
+ double fMassGGMin; // minimal mass of gamma,gamma
+ double fMassGGMax; // maximal mass of gamma,gamma
+ double fMomPi0Min; // minimal pi0 momentum
+ double fMomPi0Max; // maximal pi0 momentum
+
+ ClassDef(AliEMCALPi0SelectionParRec,1);
};
-class AliEMCALPi0SelectionParam : public TTable {
+
+class AliEMCALPi0SelectionParam : public TNamed {
public:
- ClassDefTable(AliEMCALPi0SelectionParam , pi0SelectionParam)
+ AliEMCALPi0SelectionParam(); // default constractor
+ AliEMCALPi0SelectionParam(const char* name, const Int_t nrow);
+ virtual ~AliEMCALPi0SelectionParam();
+
+ AliEMCALPi0SelectionParam & operator = (const AliEMCALPi0SelectionParam & /*rvalue*/) {
+ // assignement operator requested by coding convention but not needed
+ Fatal("operator =", "not implemented");
+ return *this;
+ };
+ //
+ void AddAt(AliEMCALPi0SelectionParRec* r);
+ AliEMCALPi0SelectionParRec* GetTable(Int_t i) const;
+ Int_t GetSize() const {return fTable->GetSize();}
+ Int_t GetNRows() const {return fCurrentInd;}
// Menu
void PrintTable(); // *MENU*
void PrintTable(const Int_t i); // *MENU*
- void PrintRec(pi0SelectionParam *r);
+ void PrintRec(AliEMCALPi0SelectionParRec *r);
// Set of parameter(s)
static AliEMCALPi0SelectionParam* Set1();
+ //
+ protected:
+ TObjArray *fTable; // Table of AliEMCALPi0SelectionParRec
+ Int_t fCurrentInd; // Current index
- ClassDef(AliEMCALPi0SelectionParam,1) // Set of Parameters For Pi0 Selection
+ ClassDef(AliEMCALPi0SelectionParam, 2) // Set of Parameters For Pi0 Selection
};
#endif // ALIEMCALPI0SELECTIONPARAM_H