1 #include "AliPHOSClusterizer.h"
2 #include "AliPHOSGetter.h"
6 #include "TClonesArray.h"
9 #include "AliPHOSHit.h"
11 #include "TStopwatch.h"
12 #include "TObjArray.h"
13 #include "AliPHOSGeometry.h"
14 #include "AliPHOSDigit.h"
15 #include "AliPHOSSDigitizer.h"
17 void testreconRecPoints(Int_t nevent = 1, const char *config="testconfig.C")
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;
29 cerr<<"nRecPoints vaut "<<nRecPoints<<endl;
30 cerr<<"__________________________________________________________________"<<endl;
31 if ( nRecPoints < maxRecPoints-widRecPoints || nRecPoints > maxRecPoints+widRecPoints ) {
32 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");