Updating the AliAnalysisFemtoTask to work with
[u/mrichter/AliRoot.git] / SHUTTLE / AliShuttleTrigger.cxx
index 8599c4b..d53ae72 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
  $Log$
+ Revision 1.15  2007/12/10 18:29:23  acolla
+ Some log added to the listen mode
+
  Revision 1.14  2007/12/07 19:14:36  acolla
  in AliShuttleTrigger:
 
@@ -126,8 +129,7 @@ Bool_t TerminateSignalHandler::Notify()
 }
 
 //______________________________________________________________________________________________
-AliShuttleTrigger::AliShuttleTrigger(const AliShuttleConfig* config,
-               UInt_t timeout, Int_t retries):
+AliShuttleTrigger::AliShuttleTrigger(const AliShuttleConfig* config):
        fConfig(config), fShuttle(NULL),
        fNotified(kFALSE), fTerminate(kFALSE),
        fMutex(), fCondition(&fMutex),
@@ -142,6 +144,8 @@ AliShuttleTrigger::AliShuttleTrigger(const AliShuttleConfig* config,
        //
 
        if (!fConfig->IsValid()) AliFatal("********** !!!!! Invalid configuration !!!!! **********");
+       UInt_t timeout = fConfig->GetDCSTimeOut();
+       Int_t retries = fConfig->GetDCSRetries();
        fShuttle = new AliShuttle(config, timeout, retries);
 
        TerminateSignalHandler* fQuitSignalHandler = new TerminateSignalHandler(this, kSigQuit);
@@ -246,10 +250,11 @@ void AliShuttleTrigger::Run() {
                        break;
                }
                
+               nTry++;
+               AliInfo(Form("Received %d triggers so far", nTry));
+               
                if (fConfig->GetRunMode() == AliShuttleConfig::kTest)
                {
-                       nTry++;
-                       AliInfo(Form("Received %d triggers so far", nTry));
                        if(nTry>=nMaxTry)
                        {
                                AliInfo(Form("Collect() ran more than %d times -> Exiting!",