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