- 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;
+ }