]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
La Navale continue ses frappes
authorschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 14 Sep 2001 15:54:20 +0000 (15:54 +0000)
committerschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 14 Sep 2001 15:54:20 +0000 (15:54 +0000)
PHOS/testreconDigits.C
PHOS/testreconRecParticles.C
PHOS/testreconRecPoints.C
PHOS/testreconSDigits.C
PHOS/testreconTrackSegments.C
PHOS/testsim.C
PHOS/testsimexam.C

index bb745570692ad7b005e0deb157373d4eae6e43a9..e92dd0fb60f13bfec206c3a11475e89d72145bef 100644 (file)
 #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");
+  }
 
 }
index 1c16d8c89ce4b2e4eb3924eed149967c963ae862..fd1cb074fe1236be68c512bf3efa56151405ecbe 100644 (file)
@@ -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()<<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");
+  }
+
 
 
 }
index f4cc51f8c934d190780f37000550cc3e1a6885c8..d2db8721e4d120701e51223b8c4bdcaf3bd36b22 100644 (file)
 
 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");
+  }
+
 }
index 154f2d521ffd1bb0a8ad98c14dfe7b6c2ded663f..69697ab280dbc4d08f5526c2c79d5b72d931fc49 100644 (file)
@@ -19,7 +19,7 @@ void testreconSDigits(Int_t nevent = 1, const char *config="testconfig.C")
   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;
@@ -28,10 +28,16 @@ void testreconSDigits(Int_t nevent = 1, const char *config="testconfig.C")
   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");
+ }
 }
index 0c936e1091078053292f1be54af7a791dbd3d870..6724e7534cf987122593928d04085e54d6ddd356 100644 (file)
@@ -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()<<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");
+  }
 
 }
index 9f9bd61fefd1f0aac8216a30f02a8ad451ba5ae3..4e09b0597327b7270020992c338260caab5d1301 100644 (file)
@@ -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<<" ___________________________________________________________________ "<<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;
 }
index 669fb0f9dfda01b096efb3f85b311e1abb0bd5dd..5664301e946da120f79020ff97cdbc441dc1ea6f 100644 (file)
@@ -215,7 +215,7 @@ void testsimexam (Int_t nevent=1, const char *config="testconfig.C")
       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;