#include "AliMUONVClusterServer.h"
#include "AliMUONVDigitStore.h"
#include "AliMUONVTriggerStore.h"
+#include "AliMUONDigitMaker.h"
#include <Riostream.h>
#include <TRandom.h>
#include <TTree.h>
//_____________________________________________________________________________
AliMUONTracker::AliMUONTracker(const AliMUONRecoParam* recoParam,
AliMUONVClusterServer* clusterServer,
- const AliMUONVDigitStore& digitStore,
+ AliMUONVDigitStore& digitStore,
const AliMUONDigitMaker* digitMaker,
const AliMUONGeometryTransformer* transformer,
const AliMUONTriggerCircuit* triggerCircuit)
if (!fClusterServer)
{
- AliInfo("No cluster server given. Will use AliMUONLegacyClusterServer");
+ AliDebug(1,"No cluster server given. Will use AliMUONLegacyClusterServer");
fIsOwnerOfClusterServer = kTRUE;
}
else
{
TIter next(fkDigitStore.CreateIterator());
- fClusterServer->UseDigits(next);
+ fClusterServer->UseDigits(next,&digitStore);
SetupClusterServer(*fClusterServer);
}
fInputClusterStore = AliMUONVClusterStore::Create(*clustersTree);
if ( fInputClusterStore )
{
- AliInfo(Form("Created %s from cluster tree",fInputClusterStore->ClassName()));
+ AliDebug(1,Form("Created %s from cluster tree",fInputClusterStore->ClassName()));
fInputClusterStore->Clear();
fInputClusterStore->Connect(*clustersTree,kFALSE);
}
fTrackReco->EventReconstructTrigger(*fkTriggerCircuit,*fTriggerStore,*(TriggerTrackStore()));
}
- if ( ( GetRecoParam()->BypassSt4() ||
- GetRecoParam()->BypassSt5() ) &&
- TriggerTrackStore()->GetSize() > 5 )
+ if ( TriggerTrackStore()->GetSize() > GetRecoParam()->GetMaxTriggerTracks() )
{
- // Hard cut to reject shower events
+ // cut to reject shower events
AliCodeTimerAuto("MUON Shower events");
if (matched) break;
}
if (matched) continue;
-
- AliMUONESDInterface::MUONToESD(*locTrg, esdTrack, ghostId);
+
+ AliMUONESDInterface::MUONToESD(*locTrg, esdTrack, ghostId, triggerTrack);
esd->AddMuonTrack(&esdTrack);
ghostId -= 1;
return 0x0;
}
- AliInfoClass(Form("Will use %s for tracking",trackReco->ClassName()));
+ AliDebugClass(1,Form("Will use %s for tracking",trackReco->ClassName()));
return trackReco;
}