From b1adf94b0795466e2a5081300a96b0947927d492 Mon Sep 17 00:00:00 2001 From: schutz Date: Fri, 14 Sep 2001 15:54:20 +0000 Subject: [PATCH] La Navale continue ses frappes --- PHOS/testreconDigits.C | 16 +++++++++++---- PHOS/testreconRecParticles.C | 37 ++++++++++++++++++++++++++--------- PHOS/testreconRecPoints.C | 26 +++++++++++++++++++----- PHOS/testreconSDigits.C | 18 +++++++++++------ PHOS/testreconTrackSegments.C | 28 +++++++++++++++++++++----- PHOS/testsim.C | 6 +++--- PHOS/testsimexam.C | 2 +- 7 files changed, 100 insertions(+), 33 deletions(-) diff --git a/PHOS/testreconDigits.C b/PHOS/testreconDigits.C index bb745570692..e92dd0fb60f 100644 --- a/PHOS/testreconDigits.C +++ b/PHOS/testreconDigits.C @@ -15,14 +15,22 @@ #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<<"__________________________________________________________________"< maxDigits+widDigits ) { + cerr<<"__________________________________________________________________"< Error detected in the Digits process. Sending error file to PHOS director."<Exec("uuencode $ALICE_ROOT/PHOS/galice.root galice.root | mail -s "PHOS INSTALLATION ERROR" schutz@in2p3.fr"); + } } diff --git a/PHOS/testreconRecParticles.C b/PHOS/testreconRecParticles.C index 1c16d8c89ce..fd1cb074fe1 100644 --- a/PHOS/testreconRecParticles.C +++ b/PHOS/testreconRecParticles.C @@ -1,20 +1,39 @@ #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()< reconstruction ended successfully."<ExecuteTask("deb"); + TString fullName = name + pid->Version() ; + + Float_t nRecParticles = (Float_t) (gime->PID(fullName.Data())->GetRecParticlesInRun())/gime->MaxEvent(); + cerr<<"_____________________________________________________________________"< reconstruction ended successfully."< maxRecParticles+0.15 ) { + cerr<<"__________________________________________________________________"< Error detected in the RecParticles process. Sending error file to PHOS director."<Exec("uuencode $ALICE_ROOT/PHOS/galice.root galice.root | mail -s "PHOS INSTALLATION ERROR" schutz@in2p3.fr"); + } + } diff --git a/PHOS/testreconRecPoints.C b/PHOS/testreconRecPoints.C index f4cc51f8c93..d2db8721e4d 100644 --- a/PHOS/testreconRecPoints.C +++ b/PHOS/testreconRecPoints.C @@ -16,9 +16,25 @@ 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<<"__________________________________________________________________"< maxRecPoints+widRecPoints ) { + cerr<<"__________________________________________________________________"< Error detected in the Clusterizing process. Sending error file to PHOS director."<Exec("uuencode $ALICE_ROOT/PHOS/galice.root galice.root | mail -s "PHOS INSTALLATION ERROR" schutz@in2p3.fr"); + } + + } diff --git a/PHOS/testreconSDigits.C b/PHOS/testreconSDigits.C index 154f2d521ff..69697ab280d 100644 --- a/PHOS/testreconSDigits.C +++ b/PHOS/testreconSDigits.C @@ -19,7 +19,7 @@ void testreconSDigits(Int_t nevent = 1, const char *config="testconfig.C") cerr<<" "< Beginning of the PHOS reconstruction. "<ExecuteTask("deb"); cerr << "# of SDigits " << gime->SDigits()->GetEntries() / gime->MaxEvent() << endl; Float_t nSDigits = (Float_t) (gime->SDigitizer()->GetSDigitsInRun()) / gime->MaxEvent(); + cerr<<"__________________________________________________________________"<SDigits()->GetEntries() < maxSDigits-widSDigits || -// gime->SDigits()->GetEntries() > maxSDigits+widSDigits ) { -// Erreur -// } + cerr<<"__________________________________________________________________"< maxSDigits+widSDigits ) { + cerr<<"__________________________________________________________________"< Error detected in the SDigits process. Sending error file to PHOS director."<Exec("uuencode $ALICE_ROOT/PHOS/galice.root galice.root | mail -s "PHOS INSTALLATION ERROR" schutz@in2p3.fr"); + } } diff --git a/PHOS/testreconTrackSegments.C b/PHOS/testreconTrackSegments.C index 0c936e10910..6724e7534cf 100644 --- a/PHOS/testreconTrackSegments.C +++ b/PHOS/testreconTrackSegments.C @@ -1,12 +1,30 @@ #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()<ExecuteTask("deb"); + TString fullName = name + tracks->Version() ; + Float_t nTrackSegments = (Float_t) (gime->TrackSegmentMaker(fullName.Data())->GetTrackSegmentsInRun()) / gime->MaxEvent(); + cerr<<"__________________________________________________________________"< maxTrackSegments+0.15 ) { + cerr<<"__________________________________________________________________"< Error detected in the TrackSegments process. Sending error file to PHOS director."<Exec("uuencode $ALICE_ROOT/PHOS/galice.root galice.root | mail -s "PHOS INSTALLATION ERROR" schutz@in2p3.fr"); + } + } diff --git a/PHOS/testsim.C b/PHOS/testsim.C index 9f9bd61fefd..4e09b059732 100644 --- a/PHOS/testsim.C +++ b/PHOS/testsim.C @@ -10,18 +10,18 @@ void testsim (Int_t nevent=1, const char *config="testconfig.C") TStopwatch timer; timer.Start(); - nevent=100 ; + nevent=10 ; gAlice->Init(config); cerr<<" ___________________________________________________________________ "< The simulation will last for about 4 minutes."< The simulation will last about 4 minutes."<Run(nevent); timer.Stop(); timer.Print(); cerr<<" ___________________________________________________________________ "< Simulation ended successfully. " << endl ; + cerr << " MESS ==> Simulation ended successfully. " << endl ; cerr<<" ___________________________________________________________________ "<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<<" _____________________________________________________________ "<