Coverity
[u/mrichter/AliRoot.git] / EVE / EveDet / AliEveTPCData.h
CommitLineData
d810d0de 1// $Id$
2// Main authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007
3
4/**************************************************************************
5 * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
6 * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for *
51346b82 7 * full copyright notice. *
d810d0de 8 **************************************************************************/
915dabe1 9
a15e6d7d 10#ifndef AliEveTPCData_H
11#define AliEveTPCData_H
915dabe1 12
84aff7a4 13#include <TEveUtil.h>
915dabe1 14
15#include <TObject.h>
16
17#include <vector>
18
19class TTree;
375fd576 20class AliTPCRawStreamV3;
915dabe1 21
d810d0de 22class AliEveTPCSectorData;
915dabe1 23
a15e6d7d 24//------------------------------------------------------------------------------
25// AliEveTPCData
26//
27// Container for TPC data for all sectors.
28
d810d0de 29class AliEveTPCData : public TObject, public TEveRefCnt
915dabe1 30{
915dabe1 31public:
d810d0de 32 AliEveTPCData();
33 virtual ~AliEveTPCData();
915dabe1 34
35 void CreateSector(Int_t sector);
36 void CreateAllSectors();
092578a7 37 void DropAllSectors();
38 void DeleteAllSectors();
915dabe1 39
d810d0de 40 AliEveTPCSectorData* GetSectorData(Int_t sector, Bool_t spawnSectors=kFALSE);
915dabe1 41
42 Int_t GetSectorBlockSize() const { return fSectorBlockSize; }
43 void SetSectorBlockSize(Int_t bs) { fSectorBlockSize = bs; }
44
45 Short_t GetLoadThreshold() const { return fLoadThreshold; }
46 void SetLoadThreshold(Short_t lt) { fLoadThreshold = lt; }
47
b56d8877 48 Short_t GetLoadPedestal() const { return fLoadPedestal; }
49 void SetLoadPedestal(Short_t lp) { fLoadPedestal = lp; }
50
d6433e5d 51 Bool_t GetAutoPedestal() const { return fAutoPedestal; }
52 void SetAutoPedestal(Bool_t ap) { fAutoPedestal = ap; }
53
915dabe1 54 void LoadDigits(TTree* tree, Bool_t spawnSectors=kTRUE);
375fd576 55 void LoadRaw(AliTPCRawStreamV3& input, Bool_t spawnSectors=kTRUE, Bool_t warn=kFALSE);
915dabe1 56
4b456ebb 57protected:
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.
63
64private:
65 AliEveTPCData(const AliEveTPCData&); // Not implemented
66 AliEveTPCData& operator=(const AliEveTPCData&); // Not implemented
67
68 ClassDef(AliEveTPCData, 0); // Manages TPC data for an event.
69};
915dabe1 70
71#endif