]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EMCAL/AliEMCALPi0SelectionParam.cxx
fixed code violation (almost)
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALPi0SelectionParam.cxx
index 8d5f865c8fc22347322572ff0473e0bc56f2924d..24956cb56e459b30b82874fa3bc3b1d12c6fe050 100644 (file)
  * provided "as is" without express or implied warranty.                  *
  **************************************************************************/
 
-/* $Log$co: warning: `/* $Log' is obsolescent; use ` * $Log'.
+/* $Log$
+/* Revision 1.2  2007/09/11 19:38:15  pavlinov
+/* added pi0 calibration, linearity, shower profile
+/*co: warning: `/* $Log' is obsolescent; use ` * $Log'.
 
  * Revision 1.1  2007/08/08 15:58:01  hristov
  * New calibration classes. They depend on TTable, so libTable.so is added to the list of Root libraries. (Aleksei)
 
 #include "AliEMCALPi0SelectionParam.h"
 
-ClassImp(pi0SelectionParam)
-pi0SelectionParam::pi0SelectionParam() : 
-eOfRpMin(0.3), eOfRpMax(30.), massGGMin(0.03), massGGMax(0.28), momPi0Min(1.8), momPi0Max(12.)
-{ }
+ClassImp(AliEMCALPi0SelectionParRec)
+AliEMCALPi0SelectionParRec::AliEMCALPi0SelectionParRec() : 
+fEOfRpMin(0.3), fEOfRpMax(30.), fMassGGMin(0.03), fMassGGMax(0.28), fMomPi0Min(1.8), fMomPi0Max(12.)
+{
+  // Default constructor 
+}
 //_________________________________________________________________________
 
 ClassImp(AliEMCALPi0SelectionParam)
 AliEMCALPi0SelectionParam::AliEMCALPi0SelectionParam() : TNamed("",""), fTable(0), fCurrentInd(0)
 {
+  // Default constructor 
 }
 
 AliEMCALPi0SelectionParam::AliEMCALPi0SelectionParam(const char* name, const Int_t nrow) : TNamed(name,"table of cell information") , fTable(0), fCurrentInd(0)
 {
+  // Oct 16, 2007
   fTable = new TObjArray(nrow);
 }
 
-void AliEMCALPi0SelectionParam::AddAt(pi0SelectionParam* r)
+void AliEMCALPi0SelectionParam::AddAt(AliEMCALPi0SelectionParRec* r)
 {
-  (*fTable)[fCurrentInd] = new pi0SelectionParam(*r);
+  // Oct 16, 2007
+  (*fTable)[fCurrentInd] = new AliEMCALPi0SelectionParRec(*r);
   fCurrentInd++;
 }
 
 AliEMCALPi0SelectionParam::~AliEMCALPi0SelectionParam()
 {
+  // Oct 16, 2007
   if(fTable) {
     fTable->Delete();
     delete fTable;
   }
 }
 
-pi0SelectionParam* AliEMCALPi0SelectionParam::GetTable(Int_t i) const
+AliEMCALPi0SelectionParRec* AliEMCALPi0SelectionParam::GetTable(Int_t i) const
 {
-  return (pi0SelectionParam*)fTable->At(i);
+  // Oct 16, 2007
+  return (AliEMCALPi0SelectionParRec*)fTable->At(i);
 }
 
 void AliEMCALPi0SelectionParam::PrintTable()
 {
+  // Oct 16, 2007
   printf(" Table : %s : nrows %i \n", GetName(), int(GetNRows()));
   for(int i=0; i<GetNRows(); i++) PrintTable(i);
 }
 
 void AliEMCALPi0SelectionParam::PrintTable(const Int_t i)
 {
+  // Oct 16, 2007
   if(i>=GetNRows()) return;
   printf("row %i \n", i);
   PrintRec(GetTable(i));
 }
 
-void AliEMCALPi0SelectionParam::PrintRec(pi0SelectionParam* r)
+void AliEMCALPi0SelectionParam::PrintRec(AliEMCALPi0SelectionParRec* r)
 {
+  // Oct 16, 2007
   if(r==0) return;
-  printf(" cluster  energy  window %7.2f -> %7.2f \n", r->eOfRpMin, r->eOfRpMax);
-  printf(" gamma,gamma mass window %7.2f -> %7.2f \n", r->massGGMin, r->massGGMax);
-  printf(" pi0   momentum   window %7.2f -> %7.2f \n", r->momPi0Min, r->momPi0Max);
+  printf(" cluster  energy  window %7.2f -> %7.2f \n", r->fEOfRpMin, r->fEOfRpMax);
+  printf(" gamma,gamma mass window %7.2f -> %7.2f \n", r->fMassGGMin, r->fMassGGMax);
+  printf(" pi0   momentum   window %7.2f -> %7.2f \n", r->fMomPi0Min, r->fMomPi0Max);
 }
 // Set 1;
 AliEMCALPi0SelectionParam* AliEMCALPi0SelectionParam::Set1()
 {
-  pi0SelectionParam r;
-  r.eOfRpMin  = 0.3; 
-  r.eOfRpMax  = 30.;
-  r.massGGMin = 0.03;  
-  r.massGGMax = 0.28; 
-  r.momPi0Min = 1.8;
-  r.momPi0Max = 12.0;
+  // Initial set of pars of Pi0 selection
+  AliEMCALPi0SelectionParRec r;
+  r.fEOfRpMin  = 0.3; 
+  r.fEOfRpMax  = 30.;
+  r.fMassGGMin = 0.03;  
+  r.fMassGGMax = 0.28; 
+  r.fMomPi0Min = 1.8;
+  r.fMomPi0Max = 12.0;
   AliEMCALPi0SelectionParam *t = new AliEMCALPi0SelectionParam("Pi0Set1",1);
   t->AddAt(&r);
   return t;