]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/AliMUONTrackerRawDataMaker.h
Let the number of sigma cut be a recoparam, and not a hard-coded constant anylonger
[u/mrichter/AliRoot.git] / MUON / AliMUONTrackerRawDataMaker.h
CommitLineData
0145e89a 1#ifndef ALIMUONTRACKERRAWDATAMAKER_H
2#define ALIMUONTRACKERRAWDATAMAKER_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
4ef00a18 9/// \ingroup rec
0145e89a 10/// \class AliMUONTrackerRawDataMaker
8741815f 11/// \brief Creator of raw AliMUONVTrackerData from AliRawReader
0145e89a 12///
13// Author Laurent Aphecetche, Subatech
14
15#ifndef ALIMUONVTRACKERDATAMAKER_H
16# include "AliMUONVTrackerDataMaker.h"
17#endif
18#ifndef ROOT_TString
19# include "TString.h"
20#endif
21
22class AliRawReader;
0145e89a 23class AliMUONVStore;
8741815f 24class AliMUONVTrackerData;
0145e89a 25
26class AliMUONTrackerRawDataMaker : public AliMUONVTrackerDataMaker
27{
28public:
515cc5b5 29 AliMUONTrackerRawDataMaker(TRootIOCtor* ioCtor);
30
31 AliMUONTrackerRawDataMaker(Int_t runNumber,
32 AliRawReader* reader,
33 Bool_t histogram=kFALSE,
34 Bool_t useHPdecoder=kFALSE);
35
49419555 36 AliMUONTrackerRawDataMaker(AliRawReader* reader = 0x0,
37 Bool_t histogram=kFALSE,
38 Bool_t useHPdecoder=kFALSE);
515cc5b5 39
0145e89a 40 virtual ~AliMUONTrackerRawDataMaker();
41
9016a84e 42 /// Whether we have a valid raw reader
0145e89a 43 Bool_t IsValid() const { return fRawReader != 0x0; }
44
9016a84e 45 /// Our data
0145e89a 46 AliMUONVTrackerData* Data() const { return fAccumulatedData; }
47
49419555 48 /// Whether we're only handling event-by-event data (i.e. no accumulation)
49 virtual Bool_t IsEventByEvent() const { return fIsEventByEvent; }
50
51 /// Set event-by-event mode
52 virtual void SetEventByEvent(Bool_t flag) { fIsEventByEvent = flag; }
53
54 /// We can be run if we have a reader
55 virtual Bool_t IsRunnable() const { return IsValid(); }
0145e89a 56
9016a84e 57 /// Whether we are running or not
0145e89a 58 virtual Bool_t IsRunning() const { return fIsRunning; }
59
9016a84e 60 /// Set the running status
0145e89a 61 virtual void SetRunning(Bool_t flag) { fIsRunning = flag; }
62
515cc5b5 63 Bool_t ProcessEvent();
64
0145e89a 65 Bool_t NextEvent();
66
67 void Print(Option_t* opt="") const;
68
69 void Rewind();
70
9016a84e 71 /// Get our source URI
0145e89a 72 virtual TString Source() const { return fSource.Data(); }
73
9016a84e 74 /// Set our source URI
0145e89a 75 void SetSource(const char* source) { fSource = source; }
76
d59411b9 77 /// Number of events seen
8741815f 78 Int_t NumberOfEvents() const { return fNumberOfEvents; }
d59411b9 79
49419555 80 Long64_t Merge(TCollection* li);
81
515cc5b5 82 void SetRawReader(AliRawReader* rawReader);
83
0145e89a 84private:
85 /// Not implemented
86 AliMUONTrackerRawDataMaker(const AliMUONTrackerRawDataMaker& rhs);
87 /// Not implemented
88 AliMUONTrackerRawDataMaker& operator=(const AliMUONTrackerRawDataMaker& rhs);
89
515cc5b5 90 void Ctor(Bool_t histogram);
91
0145e89a 92private:
515cc5b5 93 AliRawReader* fRawReader; //!< reader of the data (owner or not)
94 Bool_t fIsOwnerOfRawReader; //!< whether we must delete rawReader or not
49419555 95 AliMUONVTrackerData* fAccumulatedData; ///< data (owner)
0145e89a 96 AliMUONVStore* fOneEventData; ///< data for one event (owner)
0145e89a 97 TString fSource; ///< where the data comes from
98 Bool_t fIsRunning; ///< whether we are running or are paused
d59411b9 99 Int_t fNumberOfEvents; ///< number of events seen
49419555 100 Int_t fRunNumber; ///< run number of the data
101 Bool_t fIsEventByEvent; ///< we only keep one event's data (no accumulation)
515cc5b5 102 Bool_t fUseHPDecoder; ///< whether to use high performance decoder or not
0145e89a 103 static Int_t fgkCounter; ///< to count the number of instances
104
515cc5b5 105 ClassDef(AliMUONTrackerRawDataMaker,4) // Producer of AliMUONVTrackerData from raw data
0145e89a 106};
107
108#endif