]> git.uio.no Git - u/mrichter/AliRoot.git/blame - ITS/AliITSDDLRawData.h
Undo previous commit of this file
[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
979b5a5f 4/////////////////////////////////////////////////////////////////////////////
5// Class used for generating the files containing raw data, //
6// required for Data Challenge //
7/////////////////////////////////////////////////////////////////////////////
8
9/* $Id$ */
2e9f335b 10
11#ifndef AliITSDDLRAWDATA_H
12#define AliITSDDLRAWDATA_H
13
2e9f335b 14class TTree;
979b5a5f 15class AliITSDDLModuleMapSDD;
2e9f335b 16
17class AliITSDDLRawData:public TObject{
18 public:
19 AliITSDDLRawData();//default constructor
20 virtual ~AliITSDDLRawData(){;}//destructor
21 AliITSDDLRawData(const AliITSDDLRawData &source); // copy constructor
22 AliITSDDLRawData& operator=(const AliITSDDLRawData &source); // ass. op.
0421c3d1 23 Int_t RawDataSPD(TBranch* branch);
2e9f335b 24 // This method generates the files with the Silicon pixel detector data
979b5a5f 25 Int_t RawDataSDD(TBranch* branch, AliITSDDLModuleMapSDD* ddlsdd);
2e9f335b 26 // This method generates the files with the Silicon drift detector data
0421c3d1 27 Int_t RawDataSSD(TBranch* branch);
a79660fb 28 // This method generates the files with the Silicon pixel detector data
9f992f70 29 void SetVerbose(Int_t Verbose){fVerbose=Verbose;}
30 // To set the verbose level
2e9f335b 31 private:
0b3c7dfc 32 void GetDigitsSPD(TClonesArray *ITSdigits, Int_t mod,Int_t ddl,UInt_t *buf);
a79660fb 33 //This method formats and stores in buf all the digits of a SPD module
0b3c7dfc 34 void GetDigitsSDD(TClonesArray *ITSdigits, Int_t mod,Int_t modR,Int_t ddl,UInt_t *buf);
a79660fb 35 //This method formats and stores in buf all the digits of a SDD module
0b3c7dfc 36 void GetDigitsSSD(TClonesArray *ITSdigits, Int_t mod,Int_t modR,Int_t ddl,UInt_t *buf);
a79660fb 37 //This method formats and stores in buf all the digits of a SSD module
a643f6be 38 void WriteChipHeader(Int_t ChipAddr,Int_t halfStave,UInt_t &BaseWord);
0b3c7dfc 39 void WriteChipTrailer(UInt_t *buf,Int_t ChipHitCount,UInt_t &BaseWord);
40 void WriteHit(UInt_t *buf,Int_t RowAddr,Int_t HitAddr,UInt_t &BaseWord);
a79660fb 41 //The three previous methods are used to store the data according to the
42 //Silicon pixel detector data format
9f992f70 43 Int_t fVerbose; //Verbose level (0:no msg, 1:msg, 2:digits in txt files)
0b3c7dfc 44 Int_t fIndex; //number of 32 words to be stored into the output file
a79660fb 45 Int_t fHalfStaveModule; //first or second half of an Half Stave module
2e9f335b 46 ClassDef(AliITSDDLRawData,1)
47};
48
49#endif