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 ALIEVE_TPCData_H
11 #define ALIEVE_TPCData_H
20 class AliTPCRawStream;
21 class AliTPCRawStreamOld;
24 class AliEveTPCSectorData;
26 class AliEveTPCData : public TObject, public TEveRefCnt
29 std::vector<AliEveTPCSectorData*> fSectors; // Vector of sector-data.
30 Int_t fSectorBlockSize; // Block-size of sector-data.
31 Short_t fLoadThreshold; // Threshold at load-time.
32 Short_t fLoadPedestal; // Pedestal at load-time.
33 Bool_t fAutoPedestal; // If true determine pedestals automatically for each pad.
37 virtual ~AliEveTPCData();
39 void CreateSector(Int_t sector);
40 void CreateAllSectors();
41 void DropAllSectors();
42 void DeleteAllSectors();
44 AliEveTPCSectorData* GetSectorData(Int_t sector, Bool_t spawnSectors=kFALSE);
46 Int_t GetSectorBlockSize() const { return fSectorBlockSize; }
47 void SetSectorBlockSize(Int_t bs) { fSectorBlockSize = bs; }
49 Short_t GetLoadThreshold() const { return fLoadThreshold; }
50 void SetLoadThreshold(Short_t lt) { fLoadThreshold = lt; }
52 Short_t GetLoadPedestal() const { return fLoadPedestal; }
53 void SetLoadPedestal(Short_t lp) { fLoadPedestal = lp; }
55 Bool_t GetAutoPedestal() const { return fAutoPedestal; }
56 void SetAutoPedestal(Bool_t ap) { fAutoPedestal = ap; }
58 void LoadDigits(TTree* tree, Bool_t spawnSectors=kTRUE);
59 void LoadRaw(AliTPCRawStream& input, Bool_t spawnSectors=kTRUE, Bool_t warn=kFALSE);
61 ClassDef(AliEveTPCData, 1); // Manages TPC data for an event.
62 }; // endclass AliEveTPCData