}
//_____________________________________________________________________________
-void AliTriggerDetector::CreateInputs(const TObjArray &inputs)
+void AliTriggerDetector::AssignInputs(const TObjArray &inputs)
{
- // Define the inputs to the Central Trigger Processor
- // This is a dummy version
-
+ // Cross-check the trigger inputs provided by the detector trigger
+ // processor (TP) and the inputs defined in CTP
+ // a) If the input is defined in the TP, but not in CTP it
+ // will be generated but not used by CTP. It will be possibly stored
+ // in the detector raw data if the hardware allows this.
+ // b) If hte input is not defined in the TP, but is defined in CTP
+ // then a warning is issued and the CTP simulation is working
+ // with this input disabled.
+
// Check if we have to create the inputs first
if( fInputs.GetEntriesFast() == 0 ) {
// Create the inputs that the detector can provide
delete availInputs->Remove(tempObj);
fInputs.AddAt( inp, tempIndex );
inp->Enable();
- AliInfo(Form("Trigger input (%s) is found in the CTP configuration. Therefore it is enabled for trigger detector (%s)",
+ AliDebug(1,Form("Trigger input (%s) is found in the CTP configuration. Therefore it is enabled for trigger detector (%s)",
inp->GetInputName().Data(),name.Data()));
}
else {
for( Int_t j=0; j<fInputs.GetEntriesFast(); j++ ) {
AliTriggerInput *inp = (AliTriggerInput *)fInputs.At(j);
if (inp->GetSignature() == -1 &&
- inp->GetMask() == 0)
+ inp->GetMask() == 0) {
inp->Enable();
- AliInfo(Form("Trigger input (%s) was not found in the CTP configuration. Therefore it will be run in a stand-alone mode",
+ AliDebug(1,Form("Trigger input (%s) was not found in the CTP configuration. Therefore it will be run in a stand-alone mode",
inp->GetInputName().Data()));
+ }
}
fInputs.SetOwner(kFALSE);
AliWarning( Form( "Triggering dummy detector %s", GetName() ) );
// ********** Get Digits for the current event **********
- AliRunLoader* runLoader = gAlice->GetRunLoader();
+ AliRunLoader* runLoader = AliRunLoader::Instance();
AliInfo( Form( "Event %d", runLoader->GetEventNumber() ) );
TString loadername = GetName();