Adding new macros in loadmacros.C
[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>
b8dc484b 14
15class TClonesArray;
61fed964 16class TFile;
17class TTree;
18class AliESDEvent;
96ebe67e 19class AliMCEventHandler;
48217459 20class AliMUONVTrackStore;
b8dc484b 21
22class AliMUONRecoCheck : public TObject
23{
24public:
1f2d22de 25 AliMUONRecoCheck(const Char_t *chLoader, const Char_t *pathSim = "./");
7c29acf1 26 AliMUONRecoCheck(AliESDEvent *esdEvent, AliMCEventHandler *mcEventHandler);
48217459 27 virtual ~AliMUONRecoCheck();
28
9bdda5f6 29 /// Return the list of reconstructed tracks
48217459 30 AliMUONVTrackStore* ReconstructedTracks(Int_t event);
31
9bdda5f6 32 /// Return reference muon tracks
48217459 33 AliMUONVTrackStore* TrackRefs(Int_t event);
b8dc484b 34
9bdda5f6 35 /// Return reconstructible reference tracks
48217459 36 AliMUONVTrackStore* ReconstructibleTracks(Int_t event);
37
9bdda5f6 38 /// Return the total number of events.
39 Int_t NumberOfEvents() const;
40
61fed964 41 /// Return the reconstructed data of current event
42 const AliESDEvent* GetESDEvent() { return fESDEvent; }
9bdda5f6 43
61fed964 44 /// Return the interface to the Monte Carlo data of current event
45 const AliMCEventHandler* GetMCEventHandler() { return fMCEventHandler; }
9bdda5f6 46
b8dc484b 47private:
71a2d3aa 48 /// Not implemented
49 AliMUONRecoCheck(const AliMUONRecoCheck& rhs);
50 /// Not implemented
51 AliMUONRecoCheck& operator = (const AliMUONRecoCheck& rhs);
068e4c36 52
96ebe67e 53 void ResetStores();
54
61fed964 55 void MakeReconstructedTracks();
56
96ebe67e 57 void MakeTrackRefs();
48217459 58
96ebe67e 59 void CleanMuonTrackRef(const AliMUONVTrackStore *tmpTrackRefStore);
48217459 60
96ebe67e 61 void MakeReconstructibleTracks();
62
48217459 63private:
96ebe67e 64 AliMCEventHandler* fMCEventHandler; ///< to access MC truth information
61fed964 65 AliESDEvent* fESDEvent; ///< ESD event to access MUON data
66 TTree* fESDTree; ///< ESD tree to access MUON data
67 TFile* fESDFile; ///< ESD file to access MUON data
48217459 68
96ebe67e 69 Int_t fCurrentEvent; ///< current event number
70
71 AliMUONVTrackStore* fTrackRefStore; ///< current simulated tracks (owner)
72 AliMUONVTrackStore* fRecoTrackRefStore; ///< current reconstructible tracks (owner)
73 AliMUONVTrackStore* fRecoTrackStore; ///< current reconstructed tracks (owner)
74
7c29acf1 75 Bool_t fESDEventOwner; ///< using constructor from the analysis task
76
54d7ba50 77 ClassDef(AliMUONRecoCheck, 0) //Utility class to check reconstruction
b8dc484b 78};
79
80#endif
81