Line data Source code
1 : #ifndef ALIMUONVHITSTORE_H
2 : #define ALIMUONVHITSTORE_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 AliMUONVHitStore
11 : /// \brief Virtual store to hold digit
12 : ///
13 : // Author Laurent Aphecetche, Subatech
14 :
15 : #ifndef ALIMUONVSTORE_H
16 : # include "AliMUONVStore.h"
17 : #endif
18 :
19 : class AliMUONHit;
20 : class TClonesArray;
21 : class TCollection;
22 :
23 0 : class AliMUONVHitStore : public AliMUONVStore
24 : {
25 : public:
26 : AliMUONVHitStore();
27 : virtual ~AliMUONVHitStore();
28 :
29 : /// Add an object, if of type AliMUONHit
30 : virtual Bool_t Add(TObject* object);
31 :
32 : /// Add a digit
33 : virtual void Add(const AliMUONHit& hit) = 0;
34 :
35 : using AliMUONVStore::Create;
36 :
37 : /// Create a store from the tree (if possible).
38 : static AliMUONVHitStore* Create(TTree& tree);
39 :
40 : /// Return an iterator to loop over hits
41 : virtual TIterator* CreateIterator() const = 0;
42 :
43 : /// Must be implemented to allow connection using MCApp()->AddHitList()
44 : virtual TCollection* Collection() = 0;
45 :
46 : using AliMUONVStore::GetSize;
47 :
48 16 : ClassDef(AliMUONVHitStore,1) // Base class of a MUON hit store
49 : };
50 :
51 : #endif
|