1 #include "AliPHOSPID.h"
2 #include "AliPHOSGetter.h"
3 #include "AliPHOSPIDv1.h"
6 void testreconRecParticles(Int_t nevent = 1, const char *config="testconfig.C")
10 const Float_t maxRecParticles = 1 ;
11 const Float_t widRecParticles = TMath::Sqrt(maxRecParticles) ;
12 TString name = "test suite" ;
15 AliPHOSPID * pid = new AliPHOSPIDv1("galice.root",name.Data());
16 AliPHOSGetter * gime = AliPHOSGetter::GetInstance() ;
17 pid->ExecuteTask("deb");
18 TString fullName = name + pid->Version() ;
20 Float_t nRecParticles = (Float_t) (gime->PID(fullName.Data())->GetRecParticlesInRun())/gime->MaxEvent();
21 cerr<<"_____________________________________________________________________"<<endl;
23 cerr<<"nRecParticles vaut "<<nRecParticles<<endl;
24 cerr<<"_____________________________________________________________________"<<endl;
25 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;
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");