]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Update of the event-specie selection routine according to the discussions with trigge...
authorcvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 24 Jun 2009 10:12:10 +0000 (10:12 +0000)
committercvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 24 Jun 2009 10:12:10 +0000 (10:12 +0000)
STEER/AliRecoParam.cxx

index cc0dba90fb4c8caa555d278b6838ed0d79d79fb6..9da24f92c726531f07f357dd9d0fa9dd21499c57 100644 (file)
@@ -231,56 +231,62 @@ void AliRecoParam::SetEventSpecie(const AliRunInfo *runInfo, const AliEventInfo
 
     // Now we look into the trigger type in order to decide
     // on the remaining cases (cosmic event within LHC run,
 
     // Now we look into the trigger type in order to decide
     // on the remaining cases (cosmic event within LHC run,
-    // high-mult event based on high-mult SPD trigger
-    // within p-p run, laser triggers within physics run,
+    // calibration, for example TPC laser, triggers within physics run,
     // special DAQ events considered as calibration etc...)
     if (evInfo.GetEventType() != 7) {
       // START_OF_*, END_OF_*, CALIBRATION etc events
       fEventSpecie = kCalib;
     // special DAQ events considered as calibration etc...)
     if (evInfo.GetEventType() != 7) {
       // START_OF_*, END_OF_*, CALIBRATION etc events
       fEventSpecie = kCalib;
+      return;
     }
 
     TString triggerClasses = evInfo.GetTriggerClasses();
     TObjArray* trClassArray = triggerClasses.Tokenize(" ");
     Int_t nTrClasses = trClassArray->GetEntriesFast();
     Bool_t cosmicTrigger = kFALSE,
     }
 
     TString triggerClasses = evInfo.GetTriggerClasses();
     TObjArray* trClassArray = triggerClasses.Tokenize(" ");
     Int_t nTrClasses = trClassArray->GetEntriesFast();
     Bool_t cosmicTrigger = kFALSE,
-      laserTrigger = kFALSE,
-      highMultTrigger = kFALSE,
+      calibTrigger = kFALSE,
       otherTrigger = kFALSE;
     for( Int_t i=0; i<nTrClasses; ++i ) {
       TString trClass = ((TObjString*)trClassArray->At(i))->String();
       otherTrigger = kFALSE;
     for( Int_t i=0; i<nTrClasses; ++i ) {
       TString trClass = ((TObjString*)trClassArray->At(i))->String();
-      if (trClass.BeginsWith("C0A") ||
-         trClass.BeginsWith("C0SC") ||
-         trClass.BeginsWith("C0OC")) {
-      // ACORDE/SPD/TOF cosmic trigger, so we have cosmic event
-      // not always true, but we don't have a better idea...
-       cosmicTrigger = kTRUE;
-      }
-      else if (trClass.BeginsWith("C0LSR")) {
-       // Laser trigger
-       laserTrigger = kTRUE;
+
+      if (trClass.BeginsWith("C0L")) {
+       // Calibration triggers always start with C0L
+       calibTrigger = kTRUE;
+       continue;
       }
       }
-      else if (trClass.BeginsWith("C0SH")) {
-       // High-multiplicity SPD trugger
-       // Have to add other high-mult triggers here...
-       highMultTrigger = kTRUE;
+
+      TObjArray* tmp = trClass.Tokenize("-");
+      TObjString* bcName = (TObjString*)tmp->At(1);
+      if (bcName) {
+       if ((bcName->String().CompareTo("ABCE") == 0) ||
+           (bcName->String().CompareTo("E")    == 0) ||
+           (bcName->String().CompareTo("NONE") == 0)) {
+         // Cosmic triggers are identified by empty bunch-crossing mask
+         // The naming comvention is:
+         // A  filled bunch from A side, empty from C side
+         // B  filled bunch from both sides
+         // C  filled bunch from C side, empty from A side
+         // E  empty bunch from both sides
+         cosmicTrigger = kTRUE;
+         delete tmp;
+         continue;
+       }
       }
       else {
       }
       else {
-       otherTrigger = kTRUE;
+       AliWarning(Form("Trigger class %s doesn't comply with the naming convention!",trClass.Data()));
       }
       }
+      delete tmp;
+
+      otherTrigger = kTRUE;
     }
 
     }
 
-    if (laserTrigger) {
+    if (calibTrigger) {
       fEventSpecie = kCalib;
       return;
     }
       fEventSpecie = kCalib;
       return;
     }
-    if (cosmicTrigger && !highMultTrigger && !otherTrigger) {
+    if (cosmicTrigger && !otherTrigger) {
       fEventSpecie = kCosmic;
       return;
     }
       fEventSpecie = kCosmic;
       return;
     }
-    if (highMultTrigger) {
-      fEventSpecie = kHighMult;
-      return;
-    }
 
     // Here we have to add if we have other cases
     // and also HLT info if any...
 
     // Here we have to add if we have other cases
     // and also HLT info if any...