]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PHOS/testreconDigits.C
Rename of version v4
[u/mrichter/AliRoot.git] / PHOS / testreconDigits.C
1 #include "AliPHOSDigitizer.h"
2 #include "AliPHOSGetter.h"
3 #include "TFile.h"
4 #include "TTree.h"
5 #include "TBranch.h"
6 #include "TClonesArray.h"
7 #include "TCanvas.h"
8 #include "TSystem.h"
9 #include "AliPHOSHit.h"
10 #include "TFolder.h"
11 #include "TStopwatch.h"
12 #include "TObjArray.h"
13 #include "AliPHOSGeometry.h"
14 #include "AliPHOSDigit.h"
15 #include "AliPHOSSDigitizer.h"
16
17 void testreconDigits(Int_t nevent = 1, const char *config="testconfig.C")
18 { const Float_t maxDigits = 3483.41 ;
19   const Float_t widDigits = TMath::Sqrt(maxDigits) ;
20   AliPHOSDigitizer *d = new AliPHOSDigitizer("galice.root","test suite");
21   AliPHOSGetter * gime = AliPHOSGetter::GetInstance() ;
22   d->ExecuteTask("deb"); 
23   Float_t nDigits = (Float_t)(gime->Digitizer()->GetDigitsInRun()) / gime->MaxEvent();
24    cerr<<"__________________________________________________________________"<<endl;
25   cerr<<" "<<endl;
26   cerr<<"la valeur de nDigits est "<<nDigits<<endl;
27   cerr<<"__________________________________________________________________"<<endl;
28   if ( nDigits < maxDigits-widDigits || nDigits > maxDigits+widDigits ) {
29     cerr<<"__________________________________________________________________"<<endl;
30     cerr<<" "<<endl;
31     cerr<<"       MESS ==> Error detected in the Digits process. Sending error file to PHOS director."<<endl;
32     cerr<<"__________________________________________________________________"<<endl;
33    // gSystem->Exec("uuencode $ALICE_ROOT/PHOS/galice.root galice.root | mail -s "PHOS INSTALLATION ERROR" schutz@in2p3.fr");
34   }
35
36 }