- if (besttimeA > 0 && besttimeA <99999 ) SetInput("START_A_L0");
- if (besttimeC>0 && besttimeC<99999) SetInput("START_C_L0");
- if (timeDiff >5500 && timeDiff < 6500) SetInput("START_Vertex_L0");
- if (sumMult > 175) SetInput("START_Centr_L0");
- if (sumMult>155 && sumMult <= 175) SetInput("START_SemiCentral_L0");;
+ //trigger parameteres
+
+ Float_t timeWindowLow = fTrigPar->GetTimeWindowLow();
+ Float_t timeWindowHigh = fTrigPar->GetTimeWindowHigh();
+ Int_t ampCentr = fTrigPar->GetAmpCentr();
+ Int_t ampSemiCentr = fTrigPar->GetAmpSemiCentr();
+
+ if (besttimeA > 0 && besttimeA <99999) SetInput("0T0A");
+ if (besttimeC > 0 && besttimeC<99999) SetInput("0T0C");
+ //6093 corrsponds to vertex -20cm, 6202 vertex +20 with delay 150nc eqalized on the TVDC unit
+ if (timeDiff >timeWindowLow && timeDiff < timeWindowHigh) SetInput("0TVX");
+ if (sumMult > ampCentr) SetInput("T0_Centr_L0");
+ if (sumMult> ampSemiCentr && sumMult <= ampCentr) SetInput("T0_SemiCentral_L0");;