//___________________________________________
AliMUONDigitizerv2::AliMUONDigitizerv2() : AliMUONDigitizer()
{
- // Default ctor - don't use it
+/// Default ctor - don't use it
}
//___________________________________________
AliMUONDigitizerv2::AliMUONDigitizerv2(AliRunDigitizer* manager) : AliMUONDigitizer(manager)
{
- // ctor which should be used
+/// ctor which should be used
}
//___________________________________________
AliMUONDigitizerv2::~AliMUONDigitizerv2()
{
- // Destructor
+/// Destructor
}
//-----------------------------------------------------------------------
void AliMUONDigitizerv2::GenerateTransientDigits()
{
-// Loop over all chambers and s-digits in the input stream and create
-// AliMUONTransientDigit objects from them. These are then added to fTDList.
+/// Loop over all chambers and s-digits in the input stream and create
+/// AliMUONTransientDigit objects from them. These are then added to fTDList.
AliDebug(2,"Generating transient digits using treeH = 0x%X");
//
//------------------------------------------------------------------------
void AliMUONDigitizerv2::MakeTransientDigitFromSDigit(Int_t iChamber, AliMUONDigit* sDigit)
{
-// Makes a transient digit from the specified s-digit from the specified chamber.
-// Once the digit is created it is added to the fTDList.
+/// Makes a transient digit from the specified s-digit from the specified chamber.
+/// Once the digit is created it is added to the fTDList.
AliDebug(4,Form("Making transient digit from s-digit for chamber %d.", iChamber));
Int_t digits[7];
//------------------------------------------------------------------------
void AliMUONDigitizerv2::AddDigit(Int_t chamber, Int_t tracks[kMAXTRACKS], Int_t charges[kMAXTRACKS], Int_t digits[7])
{
-// Override to add new digits to the digits tree TreeD.
+/// Override to add new digits to the digits tree TreeD.
fMUONData->AddDigit(chamber, tracks, charges, digits);
}
//------------------------------------------------------------------------
Int_t AliMUONDigitizerv2::GetSignalFrom(AliMUONTransientDigit* td)
{
-// Derived to apply the chamber response model to the digit.
-// Using AliMUONChamber::ResponseModel() for this.
+/// Derived to apply the chamber response model to the digit.
+/// Using AliMUONChamber::ResponseModel() for this.
AliDebug(4, "Applying response of chamber to TransientDigit signal.");
//
//------------------------------------------------------------------------
Bool_t AliMUONDigitizerv2::InitInputData(AliMUONLoader* muonloader)
{
-// Overridden to initialize fMUONData to read from the s-digits tree TreeS.
-// If the s-digits are not loaded then the muon loader is used to load the
-// s-digits into memory.
+/// Overridden to initialize fMUONData to read from the s-digits tree TreeS.
+/// If the s-digits are not loaded then the muon loader is used to load the
+/// s-digits into memory.
AliDebug(3,"Loading s-digits in READ mode and setting the tree address.");
fMUONData->SetLoader(muonloader);
//------------------------------------------------------------------------
void AliMUONDigitizerv2::CleanupInputData(AliMUONLoader* muonloader)
{
-// Overridden to release and unload s-digits from memory.
+/// Overridden to release and unload s-digits from memory.
AliDebug(3,"Releasing loaded s-digits.");
fMUONData->ResetSDigits();
//------------------------------------------------------------------------
Bool_t AliMUONDigitizerv2::InitOutputData(AliMUONLoader* muonloader)
{
-// Derived to initialize the output digits tree TreeD, create it if necessary
-// and sets the fMUONData tree address to treeD.
+/// Derived to initialize the output digits tree TreeD, create it if necessary
+/// and sets the fMUONData tree address to treeD.
AliDebug(3, "Creating digits branch and setting the tree address.");
//------------------------------------------------------------------------
void AliMUONDigitizerv2::FillOutputData()
{
-// Derived to fill TreeD and resets the digit array in fMUONData.
+/// Derived to fill TreeD and resets the digit array in fMUONData.
AliDebug(3, "Filling trees with digits.");
fMUONData->Fill("D");
//------------------------------------------------------------------------
void AliMUONDigitizerv2::CleanupOutputData(AliMUONLoader* muonloader)
{
-// Derived to write the digits tree and then unload the digits tree once written.
+/// Derived to write the digits tree and then unload the digits tree once written.
AliDebug(3, "Writing digits and releasing pointers.");
muonloader->WriteDigits("OVERWRITE");
void AliMUONDigitizerv2::CleanupTriggerArrays()
{
+/// Cleanup trigger arrays
+
fTrigDec->ClearDigits();
}
Int_t digitindex
)
{
-// Derived to add digits to TreeD for trigger.
+/// Derived to add digits to TreeD for trigger.
fTrigDec->AddDigit(chamber, tracks, charges, digits, digitindex);
}
//------------------------------------------------------------------------
void AliMUONDigitizerv2::FillTriggerOutput()
{
-// Derived to fill TreeD and resets the trigger array in fMUONData.
+/// Derived to fill TreeD and resets the trigger array in fMUONData.
AliDebug(3,"Filling trees with trigger.");
fMUONData->Fill("GLT");
//------------------------------------------------------------------------
void AliMUONDigitizerv2::CreateTrigger()
{
+/// Create trigger data
+
fMUONData->MakeBranch("GLT");
fMUONData->SetTreeAddress("GLT");
fTrigDec->Digits2Trigger();