]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PHOS/AliPHOSRaw2Digits.h
removed iostream
[u/mrichter/AliRoot.git] / PHOS / AliPHOSRaw2Digits.h
1 #ifndef ALIPHOSRAW2DIGITS_H
2 #define ALIPHOSRAW2DIGITS_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5
6 /* $id */
7
8 //_________________________________________________________________________
9 //  Base Class for PHOS     
10 //                  
11 /*-- Author: Maxim Volkov (RRC KI)
12               Dmitri Peressounko (RRC KI & SUBATECH)
13               Yuri Kharlov (IHEP & SUBATECH)     */
14
15 // --- ROOT system ---
16 #include "TTask.h"
17 class TClonesArray ;
18
19 // --- Standard library ---
20
21 // --- AliRoot header files ---
22 class AliPHOSGeometry ;
23 class AliPHOSBeamTestEvent ;
24 class AliPHOSConTableDB ;
25
26 class AliPHOSRaw2Digits : public TTask {
27
28 public:
29   AliPHOSRaw2Digits() ;          // ctor
30   AliPHOSRaw2Digits(const char * inputFileName) ;         
31   virtual ~AliPHOSRaw2Digits() ; // dtor
32
33   void Exec(Option_t *option) ;
34
35   void SetInputFile(TString inname="Run_1234.fz"){fInName=inname ; }
36   void SetDebugLevel(Int_t idebug=1){fDebug=idebug ;}
37
38   //Set position of the target in the given run.
39   //The reference system is following
40   //Z axis along beam direction, from target to prototype (0-surface of prototype)
41   //X axis along columns of prototype (0-center of prototype)
42   //Y axis along raws of prototype    (0-center of prototype)
43   void SetTargetPosition(Double_t * pos)
44     {for(Int_t i=0;i<3;i++)fTarget[i]=pos[i] ;}
45   void SetConTableDB(AliPHOSConTableDB * ctdb){fctdb = ctdb ;}
46   void Print(Option_t *option="")const ;
47
48 private:
49   void FinishRun() ;
50   Bool_t ProcessRawFile() ;
51   void Swab4(void *from, void *to, size_t nwords)  ;
52   void Swab2(void *from, void *to, size_t nwords)  ;
53   Bool_t Init() ;
54   void WriteDigits(void) ;
55
56   TClonesArray * fDigits ;             //!list of final digits
57   AliPHOSBeamTestEvent * fPHOSHeader ; //!
58   AliPHOSConTableDB * fctdb ;          //!
59   Double_t fTarget[3] ;                //!Position of the target
60   Int_t   fEvent ;         //
61   Int_t   fStatus ;        //status of input file: OK, not found etc.
62   TString fInName ;        // FileName of the input file
63   Bool_t  fDebug ;         //!
64   Bool_t  fIsInitialized ; //!
65   UInt_t  fMK1 ;     //!ZEBRA markers
66   UInt_t  fMK2 ;     //!
67   UInt_t  fMK3 ;     //!
68   UInt_t  fMK4 ;     //!
69   UInt_t  fCKW ;     //!
70
71   ClassDef(AliPHOSRaw2Digits,1)  // description 
72
73 };
74
75 #endif // AliPHOSRAW2DIGITS_H