From: loizides Date: Wed, 4 Sep 2002 13:58:41 +0000 (+0000) Subject: Little changes for aliroot version 3.08. X-Git-Url: http://git.uio.no/git/?a=commitdiff_plain;h=10d756ae480bbad7313e66dd8c8518bdd320fd27;p=u%2Fmrichter%2FAliRoot.git Little changes for aliroot version 3.08. --- diff --git a/HLT/exa/read.C b/HLT/exa/read.C index a21b925b100..ddade3fbb81 100644 --- a/HLT/exa/read.C +++ b/HLT/exa/read.C @@ -1,22 +1,22 @@ // $Id$ -void read(int min=0,int max=35) +void read(Char_t *path="./",Int_t min=0,Int_t max=35) { for(int slice=0; slice<35; slice++) { char fname[256]; - //sprintf(fname,"/prog/alice/data/Rawdata/PileUp/digits_%d_0.raw",slice); - sprintf(fname,"/prog/alice/data/Rawdata/1_patch/pp/test_pileup/digits_%d_0.raw",slice); - //sprintf(fname,"digits_%d_0.raw",slice); + sprintf(fname,"%s/digits_%d_0.raw",path,slice); file = new AliL3FileHandler(); if(!file->SetBinaryInput(fname)) { cerr<<"Error opening file "<Init(slice,0,row); + UInt_t size; char name[256]; AliL3DigitRowData *data = file->CompBinary2Memory(size); @@ -41,3 +41,46 @@ void read(int min=0,int max=35) delete file; } } + +void read_ali(Char_t *fname, Int_t sl=0, Int_t sh=35) +{ + AliL3Logger l; + //l.UnSet(AliL3Logger::kDebug); + //l.UnSet(AliL3Logger::kAll); + //l.Set(AliL3Logger::kInformational); + l.UseStderr(); + //l.UseStream(); + +#if 0 + //need galice file or alirunfile.root link + if(AliL3Transform::Init(fname,kTRUE)) + { + cout << "created temp init file!" << endl; + } +#endif + + AliL3FileHandler *fileHandler = new AliL3FileHandler(); + + if(!fileHandler->SetAliInput(fname)) + { + cerr<<"Error opening file "<Free(); + fileHandler->Init(slice,patch); + AliL3DigitRowData *data=fileHandler->AliDigits2Memory(nrow,event); + + cerr<<" found "<< nrow << " rows" <CloseAliInput(); +} diff --git a/HLT/exa/runtracker.C b/HLT/exa/runtracker.C index ce1f3834832..d37bf06d306 100644 --- a/HLT/exa/runtracker.C +++ b/HLT/exa/runtracker.C @@ -14,14 +14,11 @@ void runtracker(int minslice,int maxslice,char* path=0,char *rootfile=0,int neve char path_to_use[1024]; if(!path) - strcpy(path_to_use,"/usr/local/anders/data/hg_42105_s1-3/"); - //strcpy(path_to_use,"/prog/alice/data/Rawdata/6_patch/hg_1000_s1-3/"); - //strcpy(path_to_use,"/prog/alice/data/Rawdata/6_patch/1track_s1/"); - //strcpy(path_to_use,"/prog/alice/data/Rawdata/6_patch/pp/event_0/"); - //strcpy(path_to_use,"/prog/alice/data/Rawdata/1_patch/pp/pileups/event_1/"); + //strcpy(path_to_use,"/usr/local/anders/data/hg_42105_s1-3/"); + strcpy(path_to_use,"/tmp/data/new/hijing/bfact1/1000/rawdata/"); else strcpy(path_to_use,path); - - //AliL3Transform::Init(path_to_use); + + AliL3Transform::Init(path_to_use); Int_t phi_segments,eta_segments,trackletlength,tracklength; Int_t rowscopetracklet,rowscopetrack;