X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;ds=sidebyside;f=EMCAL%2FAliEMCALTracker.cxx;h=9e08247faa3f137ebe0318f277d1c7c77c1e8a8a;hb=2c7d7ac07a19c418fc4e59a1dcef6258e175a561;hp=9359ef85f514e0bb12fbe1ca4932324295e5faf1;hpb=5a14e69187116c844d8799887f344094dabe2f84;p=u%2Fmrichter%2FAliRoot.git diff --git a/EMCAL/AliEMCALTracker.cxx b/EMCAL/AliEMCALTracker.cxx index 9359ef85f51..9e08247faa3 100644 --- a/EMCAL/AliEMCALTracker.cxx +++ b/EMCAL/AliEMCALTracker.cxx @@ -49,10 +49,15 @@ #include "AliEMCALTrack.h" #include "AliEMCALLoader.h" #include "AliEMCALGeometry.h" +#include "AliEMCALReconstructor.h" +#include "AliEMCALRecParam.h" +#include "AliCDBEntry.h" +#include "AliCDBManager.h" #include "AliEMCALTracker.h" ClassImp(AliEMCALTracker) + // //------------------------------------------------------------------------------ // @@ -80,6 +85,7 @@ AliEMCALTracker::AliEMCALTracker() // and all collections to NULL. // Output file name is set to a default value. // + InitParameters(); } // //------------------------------------------------------------------------------ @@ -136,8 +142,37 @@ AliEMCALTracker& AliEMCALTracker::operator=(const AliEMCALTracker& copy) // //------------------------------------------------------------------------------ // +void AliEMCALTracker::InitParameters() +{ + // + // Retrieve initialization parameters + // + + // Check if the instance of AliEMCALRecParam exists, + const AliEMCALRecParam* recParam = AliEMCALReconstructor::GetRecParam(); + if(!recParam){ + AliFatal("Reconstruction parameters for EMCAL not set!"); + } + + fCutX = recParam->GetTrkCutX(); + fCutY = recParam->GetTrkCutY(); + fCutZ = recParam->GetTrkCutZ(); + fMaxDist = recParam->GetTrkCutR(); + fCutAngle = recParam->GetTrkCutAngle(); + fCutAlphaMin = recParam->GetTrkCutAlphaMin(); + fCutAlphaMax = recParam->GetTrkCutAlphaMax(); + +} +// +//------------------------------------------------------------------------------ +// TTree* AliEMCALTracker::SearchTrueMatches() { + //Search through the list of + //track match candidates and clusters + //and look for true matches + // + // if (!fClusters) return 0; if (fClusters->IsEmpty()) return 0; if (!fTracks) return 0;