Create the magnetic field map in the reconstruction macros (Yuri)
[u/mrichter/AliRoot.git] / MUON / AliMUONTrackerDataWrapper.h
CommitLineData
923109ce 1#ifndef ALIMUONTRACKERDATAWRAPPER_H
2#define ALIMUONTRACKERDATAWRAPPER_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 graphics
10/// \class AliMUONTrackerDataWrapper
11/// \brief Simple wrapper of AliMUONVTrackerData (for backward compatibility)
12///
13// Author Laurent Aphecetche, Subatech
14
15#ifndef ALIMUONVTRACKERDATAMAKER_H
16# include "AliMUONVTrackerDataMaker.h"
17#endif
18
19#ifndef ROOT_TString
20# include "TString.h"
21#endif
22
23class AliMUONTrackerDataWrapper : public AliMUONVTrackerDataMaker
24{
25public:
26 AliMUONTrackerDataWrapper(AliMUONVTrackerData* data=0x0);
27 virtual ~AliMUONTrackerDataWrapper();
28
29 /// Whether we are valid or not
30 virtual Bool_t IsValid() const { return kTRUE; }
31
32 /// Our data
33 virtual AliMUONVTrackerData* Data() const { return fData; }
34
35 /// Whether we can be run
36 virtual Bool_t IsRunnable() const { return kFALSE; }
37
38 /// Whether we are running (must be false if IsRunnable is false)
39 virtual Bool_t IsRunning() const { return kFALSE; }
40
41 /// Set the running state (no effect if not runnable)
42 virtual void SetRunning(Bool_t /*flag*/) {}
43
44 /// Advance to next event (no effect if not runnable)
45 virtual Bool_t NextEvent() { return kFALSE; }
46
47 /// Rewind events (no effect if not runnable)
48 virtual void Rewind() { }
49
50 /// Set our source URI
51 virtual void SetSource(const char* /*source*/) {}
52
53 /// Get our source URI
54 virtual TString Source() const { return ""; }
55
56 /// Get the number of events we have seen (but not necessarily used...)
57 virtual Int_t NumberOfEvents() const;
58
59 virtual Long64_t Merge(TCollection* li);
60
61private:
99f1b909 62 /// not implemented.
923109ce 63 AliMUONTrackerDataWrapper(const AliMUONTrackerDataWrapper& rhs);
99f1b909 64 /// not implemented.
923109ce 65 AliMUONTrackerDataWrapper& operator=(const AliMUONTrackerDataWrapper& rhs);
66
67private:
68 AliMUONVTrackerData* fData; ///< our data (owner)
69
70 ClassDef(AliMUONTrackerDataWrapper,1) // Wrapper of AliMUONVTrackerData
71};
72
73#endif