]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PHOS/testreconRecParticles.C
Default branch names set to Default
[u/mrichter/AliRoot.git] / PHOS / testreconRecParticles.C
1 #include "AliPHOSPID.h"
2 #include "AliPHOSGetter.h"
3 #include "AliPHOSPIDv1.h"
4 #include "TSystem.h"
5
6 void testreconRecParticles(Int_t nevent = 1, const char *config="testconfig.C")
7
8
9
10   const Float_t maxRecParticles = 1 ;
11   const Float_t widRecParticles = TMath::Sqrt(maxRecParticles) ;
12   TString name = "test suite" ;
13
14
15   AliPHOSPID * pid = new AliPHOSPIDv1("galice.root",name.Data());
16   AliPHOSGetter * gime = AliPHOSGetter::GetInstance() ;
17   pid->ExecuteTask("deb");
18   TString fullName = name + pid->Version() ;  
19    
20   Float_t nRecParticles =  (Float_t) (gime->PID(fullName.Data())->GetRecParticlesInRun())/gime->MaxEvent();
21   cerr<<"_____________________________________________________________________"<<endl;
22   cerr<<" "<<endl;
23   cerr<<"nRecParticles vaut "<<nRecParticles<<endl;
24   cerr<<"_____________________________________________________________________"<<endl;
25   cerr<<"_____________________________________________________________________"<<endl;
26   cerr<<" "<<endl;
27   cerr<<"      MESS ==> reconstruction ended successfully."<<endl;
28   cerr<<"_____________________________________________________________________"<<endl;
29  if ( nRecParticles < maxRecParticles-0.15 || nRecParticles > maxRecParticles+0.15 ) {
30     cerr<<"__________________________________________________________________"<<endl;
31     cerr<<" "<<endl;
32     cerr<<"       MESS ==> Error detected in the RecParticles process. Sending error file to PHOS director."<<endl;
33     cerr<<"__________________________________________________________________"<<endl;
34    // gSystem->Exec("uuencode $ALICE_ROOT/PHOS/galice.root galice.root | mail -s "PHOS INSTALLATION ERROR" schutz@in2p3.fr");
35   }
36
37
38
39 }