AliRoot Core  v5-06-30 (35d6c57)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMUONRecoCheck Class Reference

Utility class to check reconstruction. More...

#include <AliMUONRecoCheck.h>

Inheritance diagram for AliMUONRecoCheck:

Public Member Functions

 AliMUONRecoCheck (const Char_t *chLoader, const Char_t *pathSim="./")
 
 AliMUONRecoCheck (AliESDEvent *esdEvent, AliMCEventHandler *mcEventHandler)
 
virtual ~AliMUONRecoCheck ()
 
AliMUONVTrackStoreReconstructedTracks (Int_t event, Bool_t refit=kTRUE)
 Return the list of reconstructed tracks. More...
 
AliMUONVTriggerTrackStoreTriggeredTracks (Int_t event)
 Return the list of reconstructed trigger tracks. More...
 
Bool_t TriggerToTrack (const AliMUONLocalTrigger &locTrg, AliMUONTriggerTrack &triggerTrack)
 
AliMUONVTrackStoreTrackRefs (Int_t event)
 Return reference muon tracks. More...
 
AliMUONVTriggerTrackStoreTriggerableTracks (Int_t event)
 Return triggerable reference tracks. More...
 
AliMUONVTrackStoreReconstructibleTracks (Int_t event, UInt_t requestedStationMask=0x1F, Bool_t request2ChInSameSt45=kTRUE, Bool_t hitInFrontOfPad=kFALSE)
 Return reconstructible reference tracks. More...
 
Int_t GetRunNumber ()
 Return the run number of the current ESD event. More...
 
Int_t NumberOfEvents () const
 Return the total number of events. More...
 
const AliESDEvent * GetESDEvent () const
 Return the reconstructed data of current event. More...
 
const AliMCEventHandler * GetMCEventHandler () const
 Return the interface to the Monte Carlo data of current event. More...
 

Static Public Member Functions

static AliMUONTrackFindCompatibleTrack (AliMUONTrack &track, AliMUONVTrackStore &trackStore, Int_t &nMatchClusters, Bool_t useLabel=kFALSE, Double_t sigmaCut=10.)
 Return the track from the store matched with the given track (or 0x0) and the fraction of matched clusters. More...
 
static AliMUONTriggerTrackFindCompatibleTrack (AliMUONTriggerTrack &track, const AliMUONVTriggerTrackStore &triggerTrackStore, Double_t sigmaCut=10.)
 Return the trigger track from the store matched with the given track (or 0x0) More...
 

Private Member Functions

 AliMUONRecoCheck (const AliMUONRecoCheck &rhs)
 Not implemented. More...
 
AliMUONRecoCheckoperator= (const AliMUONRecoCheck &rhs)
 Not implemented. More...
 
void ResetStores ()
 
void MakeReconstructedTracks (Bool_t refit)
 
void MakeTriggeredTracks ()
 
void MakeTrackRefs ()
 
void CleanMuonTrackRef (const AliMUONVTrackStore *tmpTrackRefStore)
 
void MakeReconstructibleTracks (UInt_t requestedStationMask, Bool_t request2ChInSameSt45=kTRUE, Bool_t hitInFrontOfPad=kFALSE)
 
void MakeTriggerableTracks ()
 
Bool_t InitCircuit ()
 
Bool_t InitTriggerResponse ()
 
Bool_t InitCalibrationData ()
 
Bool_t InitGeometryTransformer ()
 
Bool_t IsHitInFrontOfPad (AliMUONTrackParam *param) const
 

Private Attributes

AliMCEventHandler * fMCEventHandler
 to access MC truth information More...
 
AliESDEvent * fESDEvent
 ESD event to access MUON data. More...
 
TTree * fESDTree
 ESD tree to access MUON data. More...
 
TFile * fESDFile
 ESD file to access MUON data. More...
 
Int_t fCurrentEvent
 current event number More...
 
AliMUONVTrackStorefTrackRefStore
 current simulated tracks (owner) More...
 
AliMUONVTrackStorefRecoTrackRefStore
 current reconstructible tracks (owner) More...
 
AliMUONVTriggerTrackStorefRecoTriggerRefStore
 current triggerable tracks (owner) More...
 
AliMUONVTrackStorefRecoTrackStore
 current reconstructed tracks (owner) More...
 
AliMUONVTriggerTrackStorefRecoTriggerTrackStore
 current reconstructed trigger tracks (owner) More...
 
AliMUONGeometryTransformerfGeometryTransformer
 geometry transformer More...
 
AliMUONTriggerCircuitfTriggerCircuit
 trigger circuit More...
 
AliMUONCalibrationDatafCalibrationData
 ! Used to load Local, Regional and Global masks More...
 
AliMUONTriggerElectronicsfTriggerElectronics
 object to re-compute the trigger info More...
 
Bool_t fESDEventOwner
 using constructor from the analysis task More...
 

Detailed Description

Utility class to check reconstruction.

Utility class to check reconstruction Reconstructed tracks are compared to reference tracks. The reference tracks are built from AliTrackReference for the hit in chamber (0..9) and from kinematics for the vertex parameters.

Definition at line 31 of file AliMUONRecoCheck.h.

Constructor & Destructor Documentation

AliMUONRecoCheck::AliMUONRecoCheck ( const Char_t *  chLoader,
const Char_t *  pathSim = "./" 
)

Normal ctor

Definition at line 89 of file AliMUONRecoCheck.cxx.

AliMUONRecoCheck::AliMUONRecoCheck ( AliESDEvent *  esdEvent,
AliMCEventHandler *  mcEventHandler 
)

Normal ctor

Definition at line 131 of file AliMUONRecoCheck.cxx.

AliMUONRecoCheck::~AliMUONRecoCheck ( )
virtual

Destructor

Definition at line 159 of file AliMUONRecoCheck.cxx.

AliMUONRecoCheck::AliMUONRecoCheck ( const AliMUONRecoCheck rhs)
private

Not implemented.

Member Function Documentation

void AliMUONRecoCheck::CleanMuonTrackRef ( const AliMUONVTrackStore tmpTrackRefStore)
private

Re-calculate hits parameters because two AliTrackReferences are recorded for each chamber (one when particle is entering + one when particle is leaving the sensitive volume)

Definition at line 661 of file AliMUONRecoCheck.cxx.

Referenced by MakeTrackRefs().

AliMUONTrack * AliMUONRecoCheck::FindCompatibleTrack ( AliMUONTrack track,
AliMUONVTrackStore trackStore,
Int_t &  nMatchClusters,
Bool_t  useLabel = kFALSE,
Double_t  sigmaCut = 10. 
)
static

Return the track from the store matched with the given track (or 0x0) and the fraction of matched clusters.

Return the track from the store matched with the given track (or 0x0) and the number of matched clusters. Matching is done by using the MC label of by comparing cluster/TrackRef positions according to the flag "useLabel". WARNING: Who match who matters since the matching algorithm uses the fraction of matched clusters of the given track

Definition at line 825 of file AliMUONRecoCheck.cxx.

Referenced by DecodeRecoCocktail(), DIMUONFakes(), and MUONFakes().

AliMUONTriggerTrack * AliMUONRecoCheck::FindCompatibleTrack ( AliMUONTriggerTrack track,
const AliMUONVTriggerTrackStore triggerTrackStore,
Double_t  sigmaCut = 10. 
)
static

Return the trigger track from the store matched with the given track (or 0x0)

Return the trigger track from the store matched with the given track (or 0x0). Matching is done by comparing cluster/TrackRef positions.

Definition at line 874 of file AliMUONRecoCheck.cxx.

const AliESDEvent* AliMUONRecoCheck::GetESDEvent ( ) const
inline

Return the reconstructed data of current event.

Definition at line 65 of file AliMUONRecoCheck.h.

Referenced by DecodeRecoCocktail(), DIMUONFakes(), and MUONFakes().

const AliMCEventHandler* AliMUONRecoCheck::GetMCEventHandler ( ) const
inline

Return the interface to the Monte Carlo data of current event.

Definition at line 68 of file AliMUONRecoCheck.h.

Referenced by DecodeRecoCocktail().

Int_t AliMUONRecoCheck::GetRunNumber ( )

Return the run number of the current ESD event.

Return the run number of the current ESD event

Definition at line 203 of file AliMUONRecoCheck.cxx.

Referenced by DIMUONFakes(), MUONFakes(), and MUONRecoCheck().

Bool_t AliMUONRecoCheck::InitCalibrationData ( )
private

Initialize calibration data

Definition at line 919 of file AliMUONRecoCheck.cxx.

Referenced by InitTriggerResponse().

Bool_t AliMUONRecoCheck::InitCircuit ( )
private

Definition at line 186 of file AliMUONRecoCheck.cxx.

Referenced by MakeTriggeredTracks(), and TriggerToTrack().

Bool_t AliMUONRecoCheck::InitGeometryTransformer ( )
private

Return geometry transformer (create it if necessary)

Definition at line 931 of file AliMUONRecoCheck.cxx.

Referenced by InitCircuit(), InitTriggerResponse(), and MakeReconstructibleTracks().

Bool_t AliMUONRecoCheck::InitTriggerResponse ( )
private

Initialize trigger electronics for building of triggerable tracks from MC

Definition at line 899 of file AliMUONRecoCheck.cxx.

Referenced by MakeTriggerableTracks().

Bool_t AliMUONRecoCheck::IsHitInFrontOfPad ( AliMUONTrackParam param) const
private

Return kTRUE if the hit is located in front of at least 1 pad

Definition at line 953 of file AliMUONRecoCheck.cxx.

Referenced by MakeReconstructibleTracks().

void AliMUONRecoCheck::MakeReconstructedTracks ( Bool_t  refit)
private

Make reconstructed tracks

Definition at line 372 of file AliMUONRecoCheck.cxx.

Referenced by ReconstructedTracks().

void AliMUONRecoCheck::MakeReconstructibleTracks ( UInt_t  requestedStationMask,
Bool_t  request2ChInSameSt45 = kTRUE,
Bool_t  hitInFrontOfPad = kFALSE 
)
private

Isolate the reconstructible tracks

Definition at line 774 of file AliMUONRecoCheck.cxx.

Referenced by ReconstructibleTracks().

void AliMUONRecoCheck::MakeTrackRefs ( )
private

Make reconstructible tracks

Definition at line 423 of file AliMUONRecoCheck.cxx.

Referenced by TrackRefs().

void AliMUONRecoCheck::MakeTriggerableTracks ( )
private

Make triggerable tracks

Definition at line 545 of file AliMUONRecoCheck.cxx.

Referenced by TriggerableTracks().

void AliMUONRecoCheck::MakeTriggeredTracks ( )
private

Make reconstructed trigger tracks

Definition at line 388 of file AliMUONRecoCheck.cxx.

Referenced by TriggeredTracks().

Int_t AliMUONRecoCheck::NumberOfEvents ( ) const

Return the total number of events.

Return the number of events

Definition at line 218 of file AliMUONRecoCheck.cxx.

Referenced by DecodeRecoCocktail(), DIMUONFakes(), MUONFakes(), and MUONRecoCheck().

AliMUONRecoCheck& AliMUONRecoCheck::operator= ( const AliMUONRecoCheck rhs)
private

Not implemented.

AliMUONVTrackStore * AliMUONRecoCheck::ReconstructedTracks ( Int_t  event,
Bool_t  refit = kTRUE 
)

Return the list of reconstructed tracks.

Return a track store containing the reconstructed tracks (converted into MUONTrack objects) for a given event. Track parameters at each clusters are computed or not depending on the flag "refit". If not, only the track parameters at first cluster are valid.

Definition at line 226 of file AliMUONRecoCheck.cxx.

Referenced by DecodeRecoCocktail(), DIMUONFakes(), MUONFakes(), and MUONRecoCheck().

AliMUONVTrackStore * AliMUONRecoCheck::ReconstructibleTracks ( Int_t  event,
UInt_t  requestedStationMask = 0x1F,
Bool_t  request2ChInSameSt45 = kTRUE,
Bool_t  hitInFrontOfPad = kFALSE 
)

Return reconstructible reference tracks.

Return a track store containing the reconstructible tracks for a given event, according to the mask of requested stations and the minimum number of chambers hit in stations 4 & 5.

Definition at line 343 of file AliMUONRecoCheck.cxx.

Referenced by MUONRecoCheck().

void AliMUONRecoCheck::ResetStores ( )
private

Deletes all the store objects that have been created and resets the pointers to 0x0

Definition at line 175 of file AliMUONRecoCheck.cxx.

Referenced by ReconstructedTracks(), ReconstructibleTracks(), TrackRefs(), TriggerableTracks(), TriggeredTracks(), and ~AliMUONRecoCheck().

AliMUONVTrackStore * AliMUONRecoCheck::TrackRefs ( Int_t  event)

Return reference muon tracks.

Return a track store containing the track references (converted into MUONTrack objects) for a given event

Definition at line 286 of file AliMUONRecoCheck.cxx.

Referenced by DecodeRecoCocktail(), DIMUONFakes(), MUONFakes(), and ReconstructibleTracks().

AliMUONVTriggerTrackStore * AliMUONRecoCheck::TriggerableTracks ( Int_t  event)

Return triggerable reference tracks.

Return a trigger track store containing the triggerable track references (converted into AliMUONTriggerTrack objects) for a given event

Definition at line 314 of file AliMUONRecoCheck.cxx.

Referenced by MUONRecoCheck().

AliMUONVTriggerTrackStore * AliMUONRecoCheck::TriggeredTracks ( Int_t  event)

Return the list of reconstructed trigger tracks.

Return a track store containing the reconstructed trigger tracks (converted into MUONTriggerTrack objects) for a given event.

Definition at line 257 of file AliMUONRecoCheck.cxx.

Referenced by MUONRecoCheck().

Bool_t AliMUONRecoCheck::TriggerToTrack ( const AliMUONLocalTrigger locTrg,
AliMUONTriggerTrack triggerTrack 
)

Make trigger track from local trigger info

Definition at line 413 of file AliMUONRecoCheck.cxx.

Member Data Documentation

AliMUONCalibrationData* AliMUONRecoCheck::fCalibrationData
private

! Used to load Local, Regional and Global masks

Definition at line 124 of file AliMUONRecoCheck.h.

Referenced by InitCalibrationData(), InitTriggerResponse(), and ~AliMUONRecoCheck().

Int_t AliMUONRecoCheck::fCurrentEvent
private
AliESDEvent* AliMUONRecoCheck::fESDEvent
private

ESD event to access MUON data.

Definition at line 110 of file AliMUONRecoCheck.h.

Referenced by AliMUONRecoCheck(), GetESDEvent(), GetRunNumber(), MakeReconstructedTracks(), MakeTriggeredTracks(), and ~AliMUONRecoCheck().

Bool_t AliMUONRecoCheck::fESDEventOwner
private
TFile* AliMUONRecoCheck::fESDFile
private

ESD file to access MUON data.

Definition at line 112 of file AliMUONRecoCheck.h.

Referenced by ~AliMUONRecoCheck().

TTree* AliMUONRecoCheck::fESDTree
private

ESD tree to access MUON data.

Definition at line 111 of file AliMUONRecoCheck.h.

Referenced by GetRunNumber(), NumberOfEvents(), ReconstructedTracks(), and TriggeredTracks().

AliMUONGeometryTransformer* AliMUONRecoCheck::fGeometryTransformer
private

geometry transformer

Definition at line 122 of file AliMUONRecoCheck.h.

Referenced by InitCircuit(), InitGeometryTransformer(), IsHitInFrontOfPad(), MakeTriggerableTracks(), and ~AliMUONRecoCheck().

AliMCEventHandler* AliMUONRecoCheck::fMCEventHandler
private
AliMUONVTrackStore* AliMUONRecoCheck::fRecoTrackRefStore
private

current reconstructible tracks (owner)

Definition at line 117 of file AliMUONRecoCheck.h.

Referenced by MakeReconstructibleTracks(), ReconstructibleTracks(), and ResetStores().

AliMUONVTrackStore* AliMUONRecoCheck::fRecoTrackStore
private

current reconstructed tracks (owner)

Definition at line 119 of file AliMUONRecoCheck.h.

Referenced by GetRunNumber(), MakeReconstructedTracks(), ReconstructedTracks(), and ResetStores().

AliMUONVTriggerTrackStore* AliMUONRecoCheck::fRecoTriggerRefStore
private

current triggerable tracks (owner)

Definition at line 118 of file AliMUONRecoCheck.h.

Referenced by MakeTriggerableTracks(), ResetStores(), and TriggerableTracks().

AliMUONVTriggerTrackStore* AliMUONRecoCheck::fRecoTriggerTrackStore
private

current reconstructed trigger tracks (owner)

Definition at line 120 of file AliMUONRecoCheck.h.

Referenced by GetRunNumber(), MakeTriggeredTracks(), ResetStores(), and TriggeredTracks().

AliMUONVTrackStore* AliMUONRecoCheck::fTrackRefStore
private

current simulated tracks (owner)

Definition at line 116 of file AliMUONRecoCheck.h.

Referenced by CleanMuonTrackRef(), MakeReconstructibleTracks(), ResetStores(), and TrackRefs().

AliMUONTriggerCircuit* AliMUONRecoCheck::fTriggerCircuit
private

trigger circuit

Definition at line 123 of file AliMUONRecoCheck.h.

Referenced by InitCircuit(), MakeTriggeredTracks(), TriggerToTrack(), and ~AliMUONRecoCheck().

AliMUONTriggerElectronics* AliMUONRecoCheck::fTriggerElectronics
private

object to re-compute the trigger info

Definition at line 125 of file AliMUONRecoCheck.h.

Referenced by InitTriggerResponse(), MakeTriggerableTracks(), and ~AliMUONRecoCheck().


The documentation for this class was generated from the following files: