Added DetElemId() method and changed the Print() (Laurent)
[u/mrichter/AliRoot.git] / MUON / AliMUONRecoCheck.h
CommitLineData
b8dc484b 1#ifndef ALIMUONRECOCHECK_H
2#define ALIMUONRECOCHECK_H
3
4/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
6
692de412 7/* $Id$ */
8
6b092dfc 9/// \ingroup evaluation
692de412 10/// \class AliMUONRecoCheck
11/// \brief Utility class to check reconstruction
12
b8dc484b 13#include <TObject.h>
14#include "AliMUONTrack.h"
15
16class TClonesArray;
6b092dfc 17class AliMUONRecData;
18class AliMUONSimData;
b8dc484b 19class AliRunLoader;
20
21
22class AliMUONRecoCheck : public TObject
23{
24public:
6b092dfc 25 AliMUONRecoCheck(Char_t *chLoader, Char_t *chLoaderSim);
26 AliMUONRecoCheck(AliRunLoader *runloader, AliMUONRecData *muondata,
27 AliRunLoader *runloaderSim, AliMUONSimData *muondataSim);
b8dc484b 28 virtual ~AliMUONRecoCheck();
29
068e4c36 30 /// Return MUON data
6b092dfc 31 AliMUONRecData* GetMUONData() {return fMUONData;}
068e4c36 32 /// Return run loader
6b092dfc 33 AliRunLoader* GetRunLoader() {return fRunLoader;}
07547aa3 34 /// Return run loader for sim data
6b092dfc 35 AliRunLoader* GetRunLoaderSim() {return fRunLoaderSim;}
068e4c36 36
b8dc484b 37 void MakeTrackRef();
5398f946 38 /// Add track reference
b8dc484b 39 void AddMuonTrackReference(const AliMUONTrack *muonTrack)
40 {new ((*fMuonTrackRef)[fMuonTrackRef->GetEntriesFast()]) AliMUONTrack(*muonTrack);}
5398f946 41
b8dc484b 42 void PrintEvent() const;
43 void ResetTracks() const;
b8dc484b 44 void CleanMuonTrackRef();
45 void ReconstructibleTracks();
5398f946 46 /// Return number of reconstructible tracks
b8dc484b 47 Int_t GetNumberOfReconstuctibleTracks() {return fReconstructibleTracks;}
5398f946 48 /// Return number of reconstructed tracks
b8dc484b 49 Int_t GetNumberOfRecoTracks() {return fRecoTracks;}
50 TClonesArray *GetTrackReco();
5398f946 51 /// Return reference muon tracks
b8dc484b 52 TClonesArray *GetMuonTrackRef() {return fMuonTrackRef;}
53
54private:
71a2d3aa 55 /// Not implemented
56 AliMUONRecoCheck(const AliMUONRecoCheck& rhs);
57 /// Not implemented
58 AliMUONRecoCheck& operator = (const AliMUONRecoCheck& rhs);
b8dc484b 59
6b092dfc 60 AliRunLoader* fRunLoader; ///< alice run loader
61 AliMUONRecData* fMUONData; ///< Data container for MUON subsystem
62 AliRunLoader* fRunLoaderSim; ///< alice run loader
63 AliMUONSimData* fMUONDataSim; ///< Data container for MUON subsystem
64 TClonesArray* fMuonTrackRef; ///< reference muon tracks
65 TClonesArray* fTrackReco; ///< reconstructed muon tracks
d59274fa 66 Int_t fReconstructibleTracks; ///< number of reconstructible tracks
67 Int_t fRecoTracks; ///< number of reconstructed tracks
068e4c36 68 Bool_t fIsLoadConstructor; //!< \brief boolean to tag the constructor,
69 /// to decide if the class should or not deal with the loaders
70
d59274fa 71
54d7ba50 72 ClassDef(AliMUONRecoCheck, 0) //Utility class to check reconstruction
b8dc484b 73};
74
75#endif
76
77
78
79
80
81
82
83