]>
Commit | Line | Data |
---|---|---|
1975048f | 1 | #include "AliPHOSClusterizer.h" |
2 | #include "AliPHOSGetter.h" | |
cede0770 | 3 | #include "AliPHOSClusterizerv1.h" |
1975048f | 4 | #include "TSystem.h" |
cede0770 | 5 | |
1975048f | 6 | |
7 | void testreconRecPoints(Int_t nevent = 1, const char *config="testconfig.C") | |
8 | { | |
cede0770 | 9 | const Float_t maxRecPoints = 222.83 ; |
b1adf94b | 10 | const Float_t widRecPoints = TMath::Sqrt(maxRecPoints) ; |
11 | TString name = "test suite" ; | |
cede0770 | 12 | AliPHOSClusterizer * cluster = new AliPHOSClusterizerv1("testPHOS.root", name.Data()); |
13 | AliPHOSGetter * gime = AliPHOSGetter::GetInstance(); | |
b1adf94b | 14 | cluster->ExecuteTask("deb"); |
cede0770 | 15 | Float_t nRecPoints = (Float_t) (gime->Clusterizer(name.Data())->GetRecPointsInRun()) / gime->MaxEvent(); |
16 | ||
b1adf94b | 17 | if ( nRecPoints < maxRecPoints-widRecPoints || nRecPoints > maxRecPoints+widRecPoints ) { |
18 | cerr<<"__________________________________________________________________"<<endl; | |
19 | cerr<<" "<<endl; | |
cede0770 | 20 | cerr<<" MESS ==> Error detected in the Clusterizing process. Sending error file to PHOS director."<<endl; |
b1adf94b | 21 | cerr<<"__________________________________________________________________"<<endl; |
cede0770 | 22 | // gSystem->Exec("uuencode $ALICE_ROOT/PHOS/testPHOS.root testPHOS.root | mail -s 'PHOS INSTALLATION ERROR' schutz@in2p3.fr"); |
23 | } | |
24 | cerr<<"__________________________________________________________________"<<endl; | |
25 | cerr<<" "<<endl; | |
26 | cerr<<" MESS ==> Cluster process ended successfully."<<endl; | |
27 | cerr<<"__________________________________________________________________"<<endl; | |
b1adf94b | 28 | |
29 | ||
1975048f | 30 | } |