// $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 "<<fname<<endl;
return;
}
+
int row[2]={0,175};
file->Init(slice,0,row);
+
UInt_t size;
char name[256];
AliL3DigitRowData *data = file->CompBinary2Memory(size);
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 "<<fname<<endl;
+ return;
+ }
+
+ Int_t event=0;
+ UInt_t nrow=0;
+
+ for(Int_t slice=sl; slice<=sl; slice++){
+ for(Int_t patch=0;patch<AliL3Transform::GetNPatches();patch++){
+
+ cerr<<"reading slice: "<<slice<<" patch: "<<patch<<endl;
+
+ fileHandler->Free();
+ fileHandler->Init(slice,patch);
+ AliL3DigitRowData *data=fileHandler->AliDigits2Memory(nrow,event);
+
+ cerr<<" found "<< nrow << " rows" <<endl;
+ }
+ }
+ fileHandler->CloseAliInput();
+}
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;