1 #ifndef ALIMUONHITSTOREV1_H
2 #define ALIMUONHITSTOREV1_H
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
10 /// \class AliMUONHitStoreV1
11 /// \brief Implementation of AliMUONVHitStore
13 // Author Laurent Aphecetche
15 #ifndef ALIMUONVHITSTORE_H
16 # include "AliMUONVHitStore.h"
21 class AliMUONHitStoreV1 : public AliMUONVHitStore
25 AliMUONHitStoreV1(TRootIOCtor* /*dummy*/);
26 virtual ~AliMUONHitStoreV1();
28 using AliMUONVHitStore::Add;
30 virtual void Add(const AliMUONHit& hit);
32 /// Whether the Connect(TTree&) method is implemented
33 virtual Bool_t CanConnect() const { return kTRUE; }
35 virtual void Clear(Option_t* opt="");
37 virtual Bool_t Connect(TTree& tree, Bool_t alone=kTRUE) const;
39 virtual AliMUONHitStoreV1* Create() const { return new AliMUONHitStoreV1; }
41 virtual TIterator* CreateIterator() const;
43 virtual TCollection* Collection();
45 using AliMUONVHitStore::GetSize;
47 virtual Int_t GetSize() const;
51 AliMUONHitStoreV1(const AliMUONHitStoreV1&);
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; }
60 TClonesArray* fHits; ///< array of hits
62 ClassDef(AliMUONHitStoreV1,1) // Implementation of AliMUONVHitStore