]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EMCAL/AliEMCALPi0SelectionParam.cxx
rlu_hijing has to be float to work correctly with gfortran (Fedora Core 7)
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALPi0SelectionParam.cxx
1 /**************************************************************************
2  * Copyright(c) 1998-2007, ALICE Experiment at CERN, All rights reserved. *
3  *                                                                        *
4  * Author: The ALICE Off-line Project.                                    *
5  * Contributors are mentioned in the code where appropriate.              *
6  *                                                                        *
7  * Permission to use, copy, modify and distribute this software and its   *
8  * documentation strictly for non-commercial purposes is hereby granted   *
9  * without fee, provided that the above copyright notice appears in all   *
10  * copies and that both the copyright notice and this permission notice   *
11  * appear in the supporting documentation. The authors make no claims     *
12  * about the suitability of this software for any purpose. It is          *
13  * provided "as is" without express or implied warranty.                  *
14  **************************************************************************/
15
16 /* $Log$ */
17
18 //_________________________________________________________________________
19 //    Set of parameters for pi0 selection 
20 //
21 //*-- Author: Aleksei Pavlinov (WSU, Detroit, USA) 
22
23 #include "AliEMCALPi0SelectionParam.h"
24
25 TableClassImpl(AliEMCALPi0SelectionParam,pi0SelectionParam)
26
27 void AliEMCALPi0SelectionParam::PrintTable()
28 {
29   printf(" Table : %s : nrows %i \n", GetName(), int(GetNRows()));
30   for(int i=0; i<GetNRows(); i++) PrintTable(i);
31 }
32
33 void AliEMCALPi0SelectionParam::PrintTable(const Int_t i)
34 {
35   if(i>=GetNRows()) return;
36   printf("row %i \n", i);
37   PrintRec(GetTable(i));
38 }
39
40 void AliEMCALPi0SelectionParam::PrintRec(pi0SelectionParam* r)
41 {
42   if(r==0) return;
43   printf(" cluster  energy  window %7.2f -> %7.2f \n", r->eOfRpMin, r->eOfRpMax);
44   printf(" gamma,gamma mass window %7.2f -> %7.2f \n", r->massGGMin, r->massGGMax);
45   printf(" pi0   momentum   window %7.2f -> %7.2f \n", r->momPi0Min, r->momPi0Max);
46 }
47 // Set 1;
48 AliEMCALPi0SelectionParam* AliEMCALPi0SelectionParam::Set1()
49 {
50   pi0SelectionParam r;
51   r.eOfRpMin  = 0.3; 
52   r.eOfRpMax  = 30.;
53   r.massGGMin = 0.03;  
54   r.massGGMax = 0.28; 
55   r.momPi0Min = 1.8;
56   r.momPi0Max = 12.0;
57   AliEMCALPi0SelectionParam *t = new AliEMCALPi0SelectionParam("Pi0Set1",1);
58   t->AddAt(&r);
59   return t;
60 }