]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/AliMUONHitStoreV1.h
Masking of not calibrated chambers
[u/mrichter/AliRoot.git] / MUON / AliMUONHitStoreV1.h
1 #ifndef ALIMUONHITSTOREV1_H
2 #define ALIMUONHITSTOREV1_H
3
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice                               */
6
7 // $Id$
8
9 /// \ingroup sim
10 /// \class AliMUONHitStoreV1
11 /// \brief Implementation of AliMUONVHitStore
12 /// 
13 // Author Laurent Aphecetche
14
15 #ifndef ALIMUONVHITSTORE_H
16 #  include "AliMUONVHitStore.h"
17 #endif
18
19 class TClonesArray;
20
21 class AliMUONHitStoreV1 : public AliMUONVHitStore
22 {
23 public:
24   AliMUONHitStoreV1();
25   AliMUONHitStoreV1(TRootIOCtor* /*dummy*/);
26   virtual ~AliMUONHitStoreV1();
27   
28   using AliMUONVHitStore::Add;
29
30   virtual void Add(const AliMUONHit& hit);
31
32   /// Whether the Connect(TTree&) method is implemented
33   virtual Bool_t CanConnect() const { return kTRUE; }
34
35   virtual void Clear(Option_t* opt="");
36   
37   virtual Bool_t Connect(TTree& tree, Bool_t alone=kTRUE) const;
38   
39   virtual AliMUONHitStoreV1* Create() const { return new AliMUONHitStoreV1; }
40   
41   virtual TIterator* CreateIterator() const;
42   
43   virtual TCollection* Collection();
44   
45   using AliMUONVHitStore::GetSize;
46   
47   virtual Int_t GetSize() const;
48   
49 private:
50   /// Not implemented
51   AliMUONHitStoreV1(const AliMUONHitStoreV1&);
52   /// Not implemented
53   AliMUONHitStoreV1& operator=(const AliMUONHitStoreV1&);
54   /// Return the address of array of hits
55   TClonesArray** HitsPtr() const { return const_cast<TClonesArray**>(&fHits); }
56   /// Return the array of hits
57   TClonesArray* Hits() const { return fHits; }
58
59 private:
60     TClonesArray* fHits; ///< array of hits
61   
62   ClassDef(AliMUONHitStoreV1,1) // Implementation of AliMUONVHitStore
63 };
64
65 #endif