]> git.uio.no Git - u/mrichter/AliRoot.git/blame - ITS/AliITSDDLRawData.h
Coding conventions for AliITSvtest. Method GetEUCLID() moved to the base class AliITS...
[u/mrichter/AliRoot.git] / ITS / AliITSDDLRawData.h
CommitLineData
2e9f335b 1/* Copyright(c) 1998-2003, ALICE Experiment at CERN, All rights reserved. *
2 * See cxx source for full Copyright notice */
3
a79660fb 4///////////////////////////////////////////////////////////////////////////////////////////
5// Class used for generating the files containing raw data, required for Data Challenge //
6///////////////////////////////////////////////////////////////////////////////////////////
2e9f335b 7
8#ifndef AliITSDDLRAWDATA_H
9#define AliITSDDLRAWDATA_H
10
11class AliITS;
12class TTree;
13
14class AliITSDDLRawData:public TObject{
15 public:
16 AliITSDDLRawData();//default constructor
17 virtual ~AliITSDDLRawData(){;}//destructor
18 AliITSDDLRawData(const AliITSDDLRawData &source); // copy constructor
19 AliITSDDLRawData& operator=(const AliITSDDLRawData &source); // ass. op.
0421c3d1 20 Int_t RawDataSPD(TBranch* branch);
2e9f335b 21 // This method generates the files with the Silicon pixel detector data
0421c3d1 22 Int_t RawDataSDD(TBranch* branch);
2e9f335b 23 // This method generates the files with the Silicon drift detector data
0421c3d1 24 Int_t RawDataSSD(TBranch* branch);
a79660fb 25 // This method generates the files with the Silicon pixel detector data
9f992f70 26 void SetVerbose(Int_t Verbose){fVerbose=Verbose;}
27 // To set the verbose level
2e9f335b 28 private:
0b3c7dfc 29 void GetDigitsSPD(TClonesArray *ITSdigits, Int_t mod,Int_t ddl,UInt_t *buf);
a79660fb 30 //This method formats and stores in buf all the digits of a SPD module
0b3c7dfc 31 void GetDigitsSDD(TClonesArray *ITSdigits, Int_t mod,Int_t modR,Int_t ddl,UInt_t *buf);
a79660fb 32 //This method formats and stores in buf all the digits of a SDD module
0b3c7dfc 33 void GetDigitsSSD(TClonesArray *ITSdigits, Int_t mod,Int_t modR,Int_t ddl,UInt_t *buf);
a79660fb 34 //This method formats and stores in buf all the digits of a SSD module
0b3c7dfc 35 void PackWord(UInt_t &BaseWord, UInt_t Word, Int_t StartBit, Int_t StopBit);
2e9f335b 36 //This method stores the value of the variable Word of StopBit-StartBit+1 bits
37 //in BaseWord, starting from the bit StartBit
0b3c7dfc 38 void UnpackWord(UInt_t PackedWord, Int_t StartBit, Int_t StopBit, UInt_t &Word);
a79660fb 39 //This method extracts a group of adjacent bits, specified by StartBit and StopBit,
40 //from the word PackedWord. The resulting word is saved in the Word variable
0b3c7dfc 41 void WriteChipHeader(Int_t ChipAddr,Int_t EventCnt,UInt_t &BaseWord);
42 void WriteChipTrailer(UInt_t *buf,Int_t ChipHitCount,UInt_t &BaseWord);
43 void WriteHit(UInt_t *buf,Int_t RowAddr,Int_t HitAddr,UInt_t &BaseWord);
a79660fb 44 //The three previous methods are used to store the data according to the
45 //Silicon pixel detector data format
0b3c7dfc 46 void ReadChipHeader(Int_t &ChipAddr,Int_t &EventCnt,UInt_t BaseWord);
47 void ReadChipTrailer(Int_t &ChipHitCount,UInt_t BaseWord);
a79660fb 48 //Methods used for reading and dubugging SPD data files
9f992f70 49 Int_t fVerbose; //Verbose level (0:no msg, 1:msg, 2:digits in txt files)
0b3c7dfc 50 Int_t fIndex; //number of 32 words to be stored into the output file
a79660fb 51 Int_t fHalfStaveModule; //first or second half of an Half Stave module
2e9f335b 52 ClassDef(AliITSDDLRawData,1)
53};
54
55#endif