]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PHOS/testreconTrackSegments.C
stdlib.h included instead of cstdlib (needed on Alpha)
[u/mrichter/AliRoot.git] / PHOS / testreconTrackSegments.C
CommitLineData
1975048f 1#include " AliPHOSTrackSegmentMaker.h"
cede0770 2#include " AliPHOSTrackSegmentMakerv1.h"
1975048f 3#include "AliPHOSGetter.h"
b1adf94b 4#include "TSystem.h"
1975048f 5
6void testreconTrackSegments(Int_t nevent = 1, const char *config="testconfig.C")
7
b1adf94b 8{
9 const Float_t maxTrackSegments = 1 ;
10 const Float_t widTrackSegments = TMath::Sqrt(maxTrackSegments) ;
11 TString name = "test suite" ;
12
cede0770 13 AliPHOSTrackSegmentMaker * tracks = new AliPHOSTrackSegmentMakerv1("testPHOS.root",name.Data());
b1adf94b 14 AliPHOSGetter * gime = AliPHOSGetter::GetInstance() ;
15 tracks->ExecuteTask("deb");
cede0770 16 Float_t nTrackSegments = (Float_t) (gime->TrackSegmentMaker(name.Data())->GetTrackSegmentsInRun()) / gime->MaxEvent();
17
18 if ( nTrackSegments < maxTrackSegments-0.25 || nTrackSegments > maxTrackSegments+0.25 ) {
b1adf94b 19 cerr<<"__________________________________________________________________"<<endl;
20 cerr<<" "<<endl;
cede0770 21 cerr<<" MESS ==> Error detected in the TrackSegments process. Sending error file to PHOS director."<<endl;
b1adf94b 22 cerr<<"__________________________________________________________________"<<endl;
cede0770 23 // gSystem->Exec("uuencode $ALICE_ROOT/PHOS/testPHOS.root testPHOS.root | mail -s 'PHOS INSTALLATION ERROR' schutz@in2p3.fr");
24 }
25 cerr<<"__________________________________________________________________"<<endl;
26 cerr<<" "<<endl;
27 cerr<<" MESS ==> TrackSegments process ended successfully."<<endl;
28 cerr<<"__________________________________________________________________"<<endl;
1975048f 29}
cede0770 30