]>
Commit | Line | Data |
---|---|---|
1975048f | 1 | #include "AliPHOSPID.h" |
2 | #include "AliPHOSGetter.h" | |
b1adf94b | 3 | #include "AliPHOSPIDv1.h" |
4 | #include "TSystem.h" | |
1975048f | 5 | |
6 | void testreconRecParticles(Int_t nevent = 1, const char *config="testconfig.C") | |
7 | ||
b1adf94b | 8 | { |
1975048f | 9 | |
b1adf94b | 10 | const Float_t maxRecParticles = 1 ; |
11 | const Float_t widRecParticles = TMath::Sqrt(maxRecParticles) ; | |
12 | TString name = "test suite" ; | |
1975048f | 13 | |
14 | ||
b1adf94b | 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 | ||
1975048f | 37 | |
38 | ||
39 | } |