+// Class designed to convert raw data to aliroot format. We assume, that
+// prototype is situated in the center of 3 PHOS module and convert prototype
+// outpur to AliPHOSDigits. In addition, we fill branch of TreeE with
+// AliPHOSBeamTestEvent, contaning description of event(triggers etc).
+// Note, that one byte per channel in raw data is transvormed to class
+// AliPHOSDigit, so finale zise increase ~ 100 times. So output can be split
+// into peases of reasonable size: each file can not contain more than
+// fMaxPerFile: if there are still events in raw file, then new directory
+// is created and header+digits files are written to it.
+//
+// Use Case:
+// AliPHOSRaw2Digits * r = new AliPHOSRaw2Digits("path/input.file") ;
+// //note, that it can be gzipped file!
+// //Set position of the target in the given run.
+// //Z axis along beam direction, from target to prototype (0-surface of prototype)
+// //X axis along columns of prototype (0-center of prototype)
+// //Y axis along raws of prototype (0-center of prototype)
+// Double_t pos[3]={0,0,-452.} ;
+// r->SetTargetPosition(pos) ;
+// //Read/create connection Table:
+// TFile f("ConTableDB.root") ;
+// AliPHOSConTableDB * cdb = f.Get("AliPHOSConTableDB") ;
+// f.Close() ;
+// r->SetConTableDB(cdb) ;
+// r->ExecuteTask() ;
+//
+// As a result files galice.root and PHOS.Digits.root should be produced in
+// current dir, and, possibly, dirs 1,2,3... each with galice.root and PHOS.Digits.root,
+// where the rest of data are written.