AliRoot Core  a565103 (a565103)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMUONHitStoreV1.h
Go to the documentation of this file.
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 
13 // Author Laurent Aphecetche
14 
15 #ifndef ALIMUONVHITSTORE_H
16 # include "AliMUONVHitStore.h"
17 #endif
18 
19 class TClonesArray;
20 
22 {
23 public:
25  AliMUONHitStoreV1(TRootIOCtor* /*dummy*/);
26  virtual ~AliMUONHitStoreV1();
27 
29 
30  virtual void Add(const AliMUONHit& hit);
31 
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 
46 
47  virtual Int_t GetSize() const;
48 
49 private:
55  TClonesArray** HitsPtr() const { return const_cast<TClonesArray**>(&fHits); }
57  TClonesArray* Hits() const { return fHits; }
58 
59 private:
60  TClonesArray* fHits;
61 
62  ClassDef(AliMUONHitStoreV1,1) // Implementation of AliMUONVHitStore
63 };
64 
65 #endif
TClonesArray ** HitsPtr() const
Return the address of array of hits.
Virtual store to hold digit.
Implementation of AliMUONVHitStore.
AliMUONHitStoreV1 & operator=(const AliMUONHitStoreV1 &)
Not implemented.
virtual Int_t GetSize() const =0
The number of objects stored.
virtual Int_t GetSize() const
The number of objects stored.
TClonesArray * Hits() const
Return the array of hits.
TTree * tree
virtual Bool_t CanConnect() const
Whether the Connect(TTree&) method is implemented.
virtual TCollection * Collection()
Must be implemented to allow connection using MCApp()->AddHitList()
virtual Bool_t Connect(TTree &tree, Bool_t alone=kTRUE) const
Connect us to a TTree (only valid if CanConnect()==kTRUE)
virtual AliMUONHitStoreV1 * Create() const
Create an empty copy of this.
virtual void Add(const AliMUONHit &hit)
Add a digit.
virtual Bool_t Add(TObject *object)
Add an object, if of type AliMUONHit.
TClonesArray * fHits
array of hits
MonteCarlo hit.
Definition: AliMUONHit.h:24
virtual void Clear(Option_t *opt="")
Clear ourselves (i.e. Reset)
virtual TIterator * CreateIterator() const
Return an iterator to loop over hits.