]> git.uio.no Git - u/mrichter/AliRoot.git/blame - EVE/EveDet/AliEveTPCData.h
Handle missing rec-point tree in a uniform way: return null pointer to TEvePointSet.
[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;
20class AliTPCRawStream;
21class AliTPCRawStreamOld;
22
d810d0de 23class AliEveTPCSectorData;
915dabe1 24
a15e6d7d 25//------------------------------------------------------------------------------
26// AliEveTPCData
27//
28// Container for TPC data for all sectors.
29
d810d0de 30class AliEveTPCData : public TObject, public TEveRefCnt
915dabe1 31{
915dabe1 32public:
d810d0de 33 AliEveTPCData();
34 virtual ~AliEveTPCData();
915dabe1 35
36 void CreateSector(Int_t sector);
37 void CreateAllSectors();
092578a7 38 void DropAllSectors();
39 void DeleteAllSectors();
915dabe1 40
d810d0de 41 AliEveTPCSectorData* GetSectorData(Int_t sector, Bool_t spawnSectors=kFALSE);
915dabe1 42
43 Int_t GetSectorBlockSize() const { return fSectorBlockSize; }
44 void SetSectorBlockSize(Int_t bs) { fSectorBlockSize = bs; }
45
46 Short_t GetLoadThreshold() const { return fLoadThreshold; }
47 void SetLoadThreshold(Short_t lt) { fLoadThreshold = lt; }
48
b56d8877 49 Short_t GetLoadPedestal() const { return fLoadPedestal; }
50 void SetLoadPedestal(Short_t lp) { fLoadPedestal = lp; }
51
d6433e5d 52 Bool_t GetAutoPedestal() const { return fAutoPedestal; }
53 void SetAutoPedestal(Bool_t ap) { fAutoPedestal = ap; }
54
915dabe1 55 void LoadDigits(TTree* tree, Bool_t spawnSectors=kTRUE);
5987168b 56 void LoadRaw(AliTPCRawStream& input, Bool_t spawnSectors=kTRUE, Bool_t warn=kFALSE);
915dabe1 57
4b456ebb 58protected:
59 std::vector<AliEveTPCSectorData*> fSectors; // Vector of sector-data.
60 Int_t fSectorBlockSize; // Block-size of sector-data.
61 Short_t fLoadThreshold; // Threshold at load-time.
62 Short_t fLoadPedestal; // Pedestal at load-time.
63 Bool_t fAutoPedestal; // If true determine pedestals automatically for each pad.
64
65private:
66 AliEveTPCData(const AliEveTPCData&); // Not implemented
67 AliEveTPCData& operator=(const AliEveTPCData&); // Not implemented
68
69 ClassDef(AliEveTPCData, 0); // Manages TPC data for an event.
70};
915dabe1 71
72#endif