#include "AliPHOSSDigitizer.h"
void testreconDigits(Int_t nevent = 1, const char *config="testconfig.C")
-{ const Float_t maxDigits = 0 ;
+{ const Float_t maxDigits = 3483.41 ;
const Float_t widDigits = TMath::Sqrt(maxDigits) ;
AliPHOSDigitizer *d = new AliPHOSDigitizer("galice.root","test suite");
AliPHOSGetter * gime = AliPHOSGetter::GetInstance() ;
d->ExecuteTask("deb");
Float_t nDigits = (Float_t)(gime->Digitizer()->GetDigitsInRun()) / gime->MaxEvent();
- // cout << "# of Digits " << gime->Digits()->GetEntries() << endl ;
-
-
+ cerr<<"__________________________________________________________________"<<endl;
+ cerr<<" "<<endl;
+ cerr<<"la valeur de nDigits est "<<nDigits<<endl;
+ cerr<<"__________________________________________________________________"<<endl;
+ if ( nDigits < maxDigits-widDigits || nDigits > maxDigits+widDigits ) {
+ cerr<<"__________________________________________________________________"<<endl;
+ cerr<<" "<<endl;
+ cerr<<" MESS ==> Error detected in the Digits process. Sending error file to PHOS director."<<endl;
+ cerr<<"__________________________________________________________________"<<endl;
+ // gSystem->Exec("uuencode $ALICE_ROOT/PHOS/galice.root galice.root | mail -s "PHOS INSTALLATION ERROR" schutz@in2p3.fr");
+ }
}
#include "AliPHOSPID.h"
#include "AliPHOSGetter.h"
+#include "AliPHOSPIDv1.h"
+#include "TSystem.h"
void testreconRecParticles(Int_t nevent = 1, const char *config="testconfig.C")
-{
+{
-AliPHOSGetter * gime = AliPHOSGetter::GetInstance("galice.root") ;
- AliPHOSPID * pid = new AliPHOSPIDv1("galice.root","test suite");
- pid->ExecuteTask("deb");
- //cout << "# of trackSegments " << gime->trackSegments()<<GetEntries()<< endl;
- cerr<<"_____________________________________________________________________"<<endl;
- cerr<<" "<<endl;
- cerr<<" MESS ==> reconstruction ended successfully."<<endl;
- cerr<<"_____________________________________________________________________"<<endl;
+ const Float_t maxRecParticles = 1 ;
+ const Float_t widRecParticles = TMath::Sqrt(maxRecParticles) ;
+ TString name = "test suite" ;
+ AliPHOSPID * pid = new AliPHOSPIDv1("galice.root",name.Data());
+ AliPHOSGetter * gime = AliPHOSGetter::GetInstance() ;
+ pid->ExecuteTask("deb");
+ TString fullName = name + pid->Version() ;
+
+ Float_t nRecParticles = (Float_t) (gime->PID(fullName.Data())->GetRecParticlesInRun())/gime->MaxEvent();
+ cerr<<"_____________________________________________________________________"<<endl;
+ cerr<<" "<<endl;
+ cerr<<"nRecParticles vaut "<<nRecParticles<<endl;
+ cerr<<"_____________________________________________________________________"<<endl;
+ cerr<<"_____________________________________________________________________"<<endl;
+ cerr<<" "<<endl;
+ cerr<<" MESS ==> reconstruction ended successfully."<<endl;
+ cerr<<"_____________________________________________________________________"<<endl;
+ if ( nRecParticles < maxRecParticles-0.15 || nRecParticles > maxRecParticles+0.15 ) {
+ cerr<<"__________________________________________________________________"<<endl;
+ cerr<<" "<<endl;
+ cerr<<" MESS ==> Error detected in the RecParticles process. Sending error file to PHOS director."<<endl;
+ cerr<<"__________________________________________________________________"<<endl;
+ // gSystem->Exec("uuencode $ALICE_ROOT/PHOS/galice.root galice.root | mail -s "PHOS INSTALLATION ERROR" schutz@in2p3.fr");
+ }
+
}
void testreconRecPoints(Int_t nevent = 1, const char *config="testconfig.C")
{
-;
- AliPHOSClusterizer * cluster = new AliPHOSClusterizerv1("galice.root","test suite");
- AliPHOSGetter * gime = AliPHOSGetter::GetInstance();
- cluster->ExecuteTask("deb");
- Float_t nRecPoints = (Float_t) (gime->RecPoints()->GetRecPointsInRun()) / gime->MaxEvent();
+ const Float_t maxRecPoints = 223.26 ;
+ const Float_t widRecPoints = TMath::Sqrt(maxRecPoints) ;
+ TString name = "test suite" ;
+ AliPHOSClusterizer * cluster = new AliPHOSClusterizerv1("galice.root", name.Data());
+ AliPHOSGetter * gime = AliPHOSGetter::GetInstance();
+ cluster->ExecuteTask("deb");
+ TString fullName = name + cluster->Version() ;
+ Float_t nRecPoints = (Float_t) (gime->Clusterizer(fullName.Data())->GetRecPointsInRun()) / gime->MaxEvent();
+ cerr<<"__________________________________________________________________"<<endl;
+ cerr<<" "<<endl;
+ cerr<<"nRecPoints vaut "<<nRecPoints<<endl;
+ cerr<<"__________________________________________________________________"<<endl;
+ if ( nRecPoints < maxRecPoints-widRecPoints || nRecPoints > maxRecPoints+widRecPoints ) {
+ cerr<<"__________________________________________________________________"<<endl;
+ cerr<<" "<<endl;
+ cerr<<" MESS ==> Error detected in the Clusterizing process. Sending error file to PHOS director."<<endl;
+ cerr<<"__________________________________________________________________"<<endl;
+ // gSystem->Exec("uuencode $ALICE_ROOT/PHOS/galice.root galice.root | mail -s "PHOS INSTALLATION ERROR" schutz@in2p3.fr");
+ }
+
+
}
cerr<<" "<<endl;
cerr<<" MESS ==> Beginning of the PHOS reconstruction. "<<endl;
cerr<<" ___________________________________________________________________ "<<endl;
- const Float_t maxSDigits = 0 ;
+ const Float_t maxSDigits = 62.37 ;
cerr<<"La valeur de maxSDigits est "<<maxSDigits<<endl;
const Float_t widSDigits = TMath::Sqrt(maxSDigits) ;
cerr<<"La valeur de widSDigits est "<<widSDigits<<endl;
sd->ExecuteTask("deb");
cerr << "# of SDigits " << gime->SDigits()->GetEntries() / gime->MaxEvent() << endl;
Float_t nSDigits = (Float_t) (gime->SDigitizer()->GetSDigitsInRun()) / gime->MaxEvent();
+ cerr<<"__________________________________________________________________"<<endl;
+ cerr<<" "<<endl;
cerr<<"La valeur de nSDigits est "<<nSDigits<<endl;
-
-// if ( gime->SDigits()->GetEntries() < maxSDigits-widSDigits ||
-// gime->SDigits()->GetEntries() > maxSDigits+widSDigits ) {
-// Erreur
-// }
+ cerr<<"__________________________________________________________________"<<endl;
+
+ if ( nSDigits < maxSDigits-widSDigits || nSDigits > maxSDigits+widSDigits ) {
+ cerr<<"__________________________________________________________________"<<endl;
+ cerr<<" "<<endl;
+ cerr<<" MESS ==> Error detected in the SDigits process. Sending error file to PHOS director."<<endl;
+ cerr<<"__________________________________________________________________"<<endl;
+ // gSystem->Exec("uuencode $ALICE_ROOT/PHOS/galice.root galice.root | mail -s "PHOS INSTALLATION ERROR" schutz@in2p3.fr");
+ }
}
#include " AliPHOSTrackSegmentMaker.h"
#include "AliPHOSGetter.h"
+#include "TSystem.h"
void testreconTrackSegments(Int_t nevent = 1, const char *config="testconfig.C")
-{
- AliPHOSGetter * gime = AliPHOSGetter::GetInstance("galice.root") ;
- AliPHOSTrackSegmentMaker * tracks = new AliPHOSTrackSegmentMakerv1("galice.root","test suite");
- tracks->ExecuteTask("deb");
- //cout << "# of trackSegments " << gime->trackSegments()<<GetEntries()<< endl;
+{
+ const Float_t maxTrackSegments = 1 ;
+ const Float_t widTrackSegments = TMath::Sqrt(maxTrackSegments) ;
+ TString name = "test suite" ;
+
+ AliPHOSTrackSegmentMaker * tracks = new AliPHOSTrackSegmentMakerv1("galice.root",name.Data());
+ AliPHOSGetter * gime = AliPHOSGetter::GetInstance() ;
+ tracks->ExecuteTask("deb");
+ TString fullName = name + tracks->Version() ;
+ Float_t nTrackSegments = (Float_t) (gime->TrackSegmentMaker(fullName.Data())->GetTrackSegmentsInRun()) / gime->MaxEvent();
+ cerr<<"__________________________________________________________________"<<endl;
+ cerr<<" "<<endl;
+ cerr<<"nTrackSegments vaut "<<nTrackSegments<<endl;
+ cerr<<"__________________________________________________________________"<<endl;
+ if ( nTrackSegments < maxTrackSegments-0.15 || nTrackSegments > maxTrackSegments+0.15 ) {
+ cerr<<"__________________________________________________________________"<<endl;
+ cerr<<" "<<endl;
+ cerr<<" MESS ==> Error detected in the TrackSegments process. Sending error file to PHOS director."<<endl;
+ cerr<<"__________________________________________________________________"<<endl;
+ // gSystem->Exec("uuencode $ALICE_ROOT/PHOS/galice.root galice.root | mail -s "PHOS INSTALLATION ERROR" schutz@in2p3.fr");
+ }
+
}
TStopwatch timer;
timer.Start();
- nevent=100 ;
+ nevent=10 ;
gAlice->Init(config);
cerr<<" ___________________________________________________________________ "<<endl;
cerr<<" "<<endl;
- cerr<<" MESS ==> The simulation will last for about 4 minutes."<<endl;
+ cerr<<" MESS ==> The simulation will last about 4 minutes."<<endl;
cerr<<" ___________________________________________________________________ "<<endl;
gAlice->Run(nevent);
timer.Stop();
timer.Print();
cerr<<" ___________________________________________________________________ "<<endl;
cerr<<" "<<endl;
- cerr << " MESS ==> Simulation ended successfully. " << endl ;
+ cerr << " MESS ==> Simulation ended successfully. " << endl ;
cerr<<" ___________________________________________________________________ "<<endl;
}
hisba.Delete() ;
hisbanrg.Delete() ;
file->Close();
- gSystem->Exec("uuencode $ALICE_ROOT/PHOS/galice.root galice.root | mail -s 'PHOS INSTALLATION ERROR ' schutz@in2p3.fr");
+ // gSystem->Exec("uuencode $ALICE_ROOT/PHOS/galice.root galice.root | mail -s 'PHOS INSTALLATION ERROR ' schutz@in2p3.fr");
}
cerr<<" _____________________________________________________________ "<<endl;