]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliTriggerDetector.cxx
online hot channels introduced
[u/mrichter/AliRoot.git] / STEER / AliTriggerDetector.cxx
index f3cb1b515acbb82b78ad218a570323feeac04d7f..c90071ad36275e029de89d5418dc6208e8dd2dbc 100644 (file)
@@ -78,11 +78,17 @@ AliTriggerDetector::~AliTriggerDetector()
 }
 
 //_____________________________________________________________________________
-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
@@ -105,7 +111,7 @@ void AliTriggerDetector::CreateInputs(const TObjArray &inputs)
        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 {
@@ -119,7 +125,7 @@ void AliTriggerDetector::CreateInputs(const TObjArray &inputs)
      if (inp->GetSignature() == -1 &&
         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()));
      }
    }
@@ -149,7 +155,7 @@ void AliTriggerDetector::Trigger()
    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();