1 #ifndef ALIMUONTRACKSTOREV1_H
2 #define ALIMUONTRACKSTOREV1_H
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
10 /// \class AliMUONTrackStoreV1
11 /// \brief Implementation of AliMUONVTrackStore
13 // Author Laurent Aphecetche
15 #ifndef ALIMUONVTRACKSTORE_H
16 # include "AliMUONVTrackStore.h"
21 class AliMUONTrackStoreV1 : public AliMUONVTrackStore
24 AliMUONTrackStoreV1();
25 virtual ~AliMUONTrackStoreV1();
27 using AliMUONVTrackStore::Add;
29 virtual AliMUONTrack* Add(const AliMUONTrack& track);
31 virtual AliMUONTrack* Remove(AliMUONTrack& track);
33 /// Whether the Connect(TTree&) method is implemented
34 virtual Bool_t CanConnect() const { return kTRUE; }
36 virtual Bool_t Connect(TTree& tree, Bool_t alone=kTRUE) const;
38 virtual AliMUONTrackStoreV1* Create() const { return new AliMUONTrackStoreV1; }
40 virtual TIterator* CreateIterator() const;
42 virtual void Clear(Option_t* opt="");
44 using AliMUONVTrackStore::GetSize;
46 virtual Int_t GetSize() const;
49 /// Return the tracks array
50 TClonesArray* Tracks() const { return fTracks; }
52 /// Return the address of the tracks array
53 TClonesArray** TracksPtr() const { return const_cast<TClonesArray**>(&fTracks); }
56 AliMUONTrackStoreV1(const AliMUONTrackStoreV1&);
58 AliMUONTrackStoreV1& operator=(const AliMUONTrackStoreV1&);
61 TClonesArray* fTracks; ///< Internal array
63 ClassDef(AliMUONTrackStoreV1,1) // Implementation of AliMUONVTrackStore