]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PHOS/testreconRecPoints.C
Reading Trees branches directly to the TFolders added
[u/mrichter/AliRoot.git] / PHOS / testreconRecPoints.C
1 #include "AliPHOSClusterizer.h"
2 #include "AliPHOSGetter.h"
3 #include "TFile.h"
4 #include "TTree.h"
5 #include "TBranch.h"
6 #include "TClonesArray.h"
7 #include "TCanvas.h"
8 #include "TSystem.h"
9 #include "AliPHOSHit.h"
10 #include "TFolder.h"
11 #include "TStopwatch.h"
12 #include "TObjArray.h"
13 #include "AliPHOSGeometry.h"
14 #include "AliPHOSDigit.h"
15 #include "AliPHOSSDigitizer.h"
16
17 void testreconRecPoints(Int_t nevent = 1, const char *config="testconfig.C")
18 {
19   const Float_t maxRecPoints = 223.26 ;
20   const Float_t widRecPoints = TMath::Sqrt(maxRecPoints) ;
21   TString name = "test suite" ;
22   AliPHOSClusterizer * cluster = new  AliPHOSClusterizerv1("galice.root", name.Data());
23   AliPHOSGetter * gime = AliPHOSGetter::GetInstance(); 
24   cluster->ExecuteTask("deb");
25   TString fullName = name + cluster->Version() ;  
26   Float_t nRecPoints =  (Float_t) (gime->Clusterizer(fullName.Data())->GetRecPointsInRun()) / gime->MaxEvent();
27   cerr<<"__________________________________________________________________"<<endl;
28   cerr<<" "<<endl;
29   cerr<<"nRecPoints vaut "<<nRecPoints<<endl;
30   cerr<<"__________________________________________________________________"<<endl; 
31    if ( nRecPoints < maxRecPoints-widRecPoints || nRecPoints > maxRecPoints+widRecPoints ) {
32     cerr<<"__________________________________________________________________"<<endl;
33     cerr<<" "<<endl;
34     cerr<<"       MESS ==> Error detected in the Clusterizing process. Sending error file to PHOS director."<<endl;
35     cerr<<"__________________________________________________________________"<<endl;
36    // gSystem->Exec("uuencode $ALICE_ROOT/PHOS/galice.root galice.root | mail -s "PHOS INSTALLATION ERROR" schutz@in2p3.fr");
37   }
38
39  
40 }