]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/AliMUONVHitStore.h
Merge branch 'flatdev' of https://git.cern.ch/reps/AliRoot into flatdev
[u/mrichter/AliRoot.git] / MUON / AliMUONVHitStore.h
CommitLineData
85c7a460 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
19class AliMUONHit;
20class TClonesArray;
21class TCollection;
22
23class AliMUONVHitStore : public AliMUONVStore
24{
25public:
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 ClassDef(AliMUONVHitStore,1) // Base class of a MUON hit store
49};
50
51#endif