/* $Id$ */
-// --------------------
+//-----------------------------------------------------------------------------
// Class AliMUONv1
// --------------------
// AliDetector class for MUON subsystem which implements
// functions for simulation
+//-----------------------------------------------------------------------------
#include "AliMUONv1.h"
#include "AliMUONConstants.h"
#include "AliMUONStringIntMap.h"
#include "AliMUONGeometryDetElement.h"
+#include "AliMpCDB.h"
#include "AliMpDEManager.h"
#include "AliConst.h"
AliDebug(1,Form("ctor this=%p",this));
+ // Load mapping
+ if ( ! AliMpCDB::LoadMpSegmentation() ) {
+ AliFatal("Could not access mapping from OCDB !");
+ }
+
// By default include all stations
fStepSum = new Float_t [AliMUONConstants::NCh()];
//
// Build response
//
- AliMUONResponseFactory respFactory("default");
+ AliMUONResponseFactory respFactory("default", fIsTailEffect);
respFactory.Build(this);
}
// Filling TrackRefs file for MUON. Our Track references are the active volume of the chambers
if ( (gMC->IsTrackEntering() || gMC->IsTrackExiting() ) ) {
AliTrackReference* trackReference
- = AddTrackReference(gAlice->GetMCApp()->GetCurrentTrackNumber());
+ = AddTrackReference(gAlice->GetMCApp()->GetCurrentTrackNumber(), AliTrackReference::kMUON);
trackReference->SetUserId(detElemId);
}