]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PHOS/testreconSDigits.C
Final granularity of digitization implemented
[u/mrichter/AliRoot.git] / PHOS / testreconSDigits.C
CommitLineData
1975048f 1#include "AliPHOSGetter.h"
1975048f 2#include "TSystem.h"
1975048f 3#include "AliPHOSDigit.h"
4#include "AliPHOSSDigitizer.h"
5
6void testreconSDigits(Int_t nevent = 1, const char *config="testconfig.C")
7{
8 cerr<<" ___________________________________________________________________ "<<endl;
9 cerr<<" "<<endl;
10 cerr<<" MESS ==> Beginning of the PHOS reconstruction. "<<endl;
11 cerr<<" ___________________________________________________________________ "<<endl;
cede0770 12 const Float_t maxSDigits = 62.89 ;
1975048f 13 const Float_t widSDigits = TMath::Sqrt(maxSDigits) ;
cede0770 14 AliPHOSSDigitizer *sd = new AliPHOSSDigitizer("testPHOS.root","test suite");
1975048f 15 AliPHOSGetter * gime = AliPHOSGetter::GetInstance() ;
16 sd->ExecuteTask("deb");
1975048f 17 Float_t nSDigits = (Float_t) (gime->SDigitizer()->GetSDigitsInRun()) / gime->MaxEvent();
cede0770 18
b1adf94b 19
20 if ( nSDigits < maxSDigits-widSDigits || nSDigits > maxSDigits+widSDigits ) {
21 cerr<<"__________________________________________________________________"<<endl;
22 cerr<<" "<<endl;
cede0770 23 cerr<<" MESS ==> Error detected in the SDigits process. Sending error file to PHOS director."<<endl;
b1adf94b 24 cerr<<"__________________________________________________________________"<<endl;
cede0770 25 // gSystem->Exec("uuencode $ALICE_ROOT/PHOS/testPHOS.root testPHOS.root | mail -s 'PHOS INSTALLATION ERROR' schutz@in2p3.fr");
b1adf94b 26 }
cede0770 27 cerr<<"__________________________________________________________________"<<endl;
28 cerr<<" "<<endl;
29 cerr<<" MESS ==> SDigits process ended successfully."<<endl;
30 cerr<<"__________________________________________________________________"<<endl;
1975048f 31}