AliRoot Core  3abf5b4 (3abf5b4)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMUONTrackStoreV1.h
Go to the documentation of this file.
1 #ifndef ALIMUONTRACKSTOREV1_H
2 #define ALIMUONTRACKSTOREV1_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 
13 // Author Laurent Aphecetche
14 
15 #ifndef ALIMUONVTRACKSTORE_H
16 # include "AliMUONVTrackStore.h"
17 #endif
18 
19 class TClonesArray;
20 
22 {
23 public:
25  AliMUONTrackStoreV1(TRootIOCtor* dummy);
26  virtual ~AliMUONTrackStoreV1();
27 
29 
30  virtual AliMUONTrack* Add(const AliMUONTrack& track);
31 
32  virtual AliMUONTrack* Remove(AliMUONTrack& track);
33 
35  virtual Bool_t CanConnect() const { return kTRUE; }
36 
37  virtual Bool_t Connect(TTree& tree, Bool_t alone=kTRUE) const;
38 
39  virtual AliMUONTrackStoreV1* Create() const { return new AliMUONTrackStoreV1; }
40 
41  virtual TIterator* CreateIterator() const;
42 
43  virtual void Clear(Option_t* opt="");
44 
46 
47  virtual Int_t GetSize() const;
48 
49 private:
51  TClonesArray* Tracks() const { return fTracks; }
52 
53  void CreateTracks();
54 
56  TClonesArray** TracksPtr() const { return const_cast<TClonesArray**>(&fTracks); }
57 
62 
63 private:
64  TClonesArray* fTracks;
65 
66  ClassDef(AliMUONTrackStoreV1,1) // Implementation of AliMUONVTrackStore
67 };
68 
69 #endif
Base class of a track container.
TClonesArray * Tracks() const
Return the tracks array.
virtual AliMUONTrack * Remove(AliMUONTrack &track)
Remove a track from the store.
virtual Bool_t CanConnect() const
Whether the Connect(TTree&) method is implemented.
virtual Int_t GetSize() const =0
The number of objects stored.
AliTPCfastTrack * track
TTree * tree
TClonesArray ** TracksPtr() const
Return the address of the tracks array.
virtual void Clear(Option_t *opt="")
Clear ourselves (i.e. Reset)
Implementation of AliMUONVTrackStore.
AliMUONTrackStoreV1 & operator=(const AliMUONTrackStoreV1 &)
Not implemented.
virtual AliMUONTrack * Add(const AliMUONTrack &track)
Add a track.
TClonesArray * fTracks
Internal array.
Reconstructed track in ALICE dimuon spectrometer.
Definition: AliMUONTrack.h:24
virtual Bool_t Add(TObject *object)
Add an object, if of the right type.
virtual AliMUONTrackStoreV1 * Create() const
Create an empty copy of this.
virtual Bool_t Connect(TTree &tree, Bool_t alone=kTRUE) const
Connect us to a TTree (only valid if CanConnect()==kTRUE)
virtual TIterator * CreateIterator() const
Create an iterator to loop over tracks.
virtual Int_t GetSize() const
The number of objects stored.