2 // Main authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007
4 /**************************************************************************
5 * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
6 * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for *
7 * full copyright notice. *
8 **************************************************************************/
10 #ifndef AliEveTPCData_H
11 #define AliEveTPCData_H
20 class AliTPCRawStreamV3;
22 class AliEveTPCSectorData;
24 //------------------------------------------------------------------------------
27 // Container for TPC data for all sectors.
29 class AliEveTPCData : public TObject, public TEveRefCnt
33 virtual ~AliEveTPCData();
35 void CreateSector(Int_t sector);
36 void CreateAllSectors();
37 void DropAllSectors();
38 void DeleteAllSectors();
40 AliEveTPCSectorData* GetSectorData(Int_t sector, Bool_t spawnSectors=kFALSE);
42 Int_t GetSectorBlockSize() const { return fSectorBlockSize; }
43 void SetSectorBlockSize(Int_t bs) { fSectorBlockSize = bs; }
45 Short_t GetLoadThreshold() const { return fLoadThreshold; }
46 void SetLoadThreshold(Short_t lt) { fLoadThreshold = lt; }
48 Short_t GetLoadPedestal() const { return fLoadPedestal; }
49 void SetLoadPedestal(Short_t lp) { fLoadPedestal = lp; }
51 Bool_t GetAutoPedestal() const { return fAutoPedestal; }
52 void SetAutoPedestal(Bool_t ap) { fAutoPedestal = ap; }
54 void LoadDigits(TTree* tree, Bool_t spawnSectors=kTRUE);
55 void LoadRaw(AliTPCRawStreamV3& input, Bool_t spawnSectors=kTRUE, Bool_t warn=kFALSE);
58 std::vector<AliEveTPCSectorData*> fSectors; // Vector of sector-data.
59 Int_t fSectorBlockSize; // Block-size of sector-data.
60 Short_t fLoadThreshold; // Threshold at load-time.
61 Short_t fLoadPedestal; // Pedestal at load-time.
62 Bool_t fAutoPedestal; // If true determine pedestals automatically for each pad.
65 AliEveTPCData(const AliEveTPCData&); // Not implemented
66 AliEveTPCData& operator=(const AliEveTPCData&); // Not implemented
68 ClassDef(AliEveTPCData, 0); // Manages TPC data for an event.