@@ -200,6 +200,18 @@ struct HfEventSelection : o2::framework::ConfigurableGroup {
200200 static constexpr char NameHistCollisionsCentOcc[] = " hCollisionsCentOcc" ;
201201 static constexpr char NameHistUPC[] = " hUPCollisions" ;
202202
203+ // upc preselection
204+ constexpr int MinNdtcoll = 1 ; // Default number of sigma (NDtcoll)
205+ constexpr int MinNBCs = 2 ; // Minimum number of bunch crossings (NBCs)
206+ constexpr int MinNTracks = 2 ; // Minimum number of PV contributors
207+ constexpr int MaxNTracks = 1000 ; // Maximum number of PV contributors
208+ constexpr float MaxFITtime = 34 .f; // Maximum FIT time in ns
209+ constexpr float FITAmpFV0 = -1 .f; // FV0 amplitude
210+ constexpr float FITAmpFT0A = 150 .f; // Max FT0A amplitude
211+ constexpr float FITAmpFT0C = 50 .f; // Max FT0C amplitude
212+ constexpr float FITAmpFDDA = -1 .f; // FDDA amplitude
213+ constexpr float FITAmpFDDC = -1 .f; // FDDC amplitude
214+
203215 std::shared_ptr<TH1> hCollisions, hSelCollisionsCent, hPosZBeforeEvSel, hPosZAfterEvSel, hPosXAfterEvSel, hPosYAfterEvSel, hNumPvContributorsAfterSel, hUPCollisions;
204216 std::shared_ptr<TH2> hCollisionsCentOcc;
205217
@@ -214,18 +226,16 @@ struct HfEventSelection : o2::framework::ConfigurableGroup {
214226 // / Set standard preselection gap trigger (values taken from UD group)
215227 void setSGCutsFromUD (SGCutParHolder& sgCuts)
216228 {
217- sgCuts.SetNDtcoll (1 ); // Number of sigma
218- sgCuts.SetMinNBCs (2 ); // Minimum number of BCs
219- sgCuts.SetNTracks (2 , 1000 ); // Min and max number of PV contributors
220- sgCuts.SetMaxFITtime (34 .f ); // Max FIT time in ns
221-
222- sgCuts.SetFITAmpLimits ({
223- -1 .f , // FV0
224- 150 .f , // FT0A
225- 50 .f , // FT0C
226- -1 .f , // FDDA
227- -1 .f // FDDC
228- });
229+ sgCuts.SetNDtcoll (MinNdtcoll);
230+ sgCuts.SetMinNBCs (MinNBCs);
231+ sgCuts.SetNTracks (MinNTracks, MaxNTracks);
232+ sgCuts.SetMaxFITtime (MaxFITtime);
233+
234+ sgCuts.SetFITAmpLimits ({FITAmpFV0,
235+ FITAmpFT0A,
236+ FITAmpFT0C,
237+ FITAmpFDDA,
238+ FITAmpFDDC});
229239 }
230240
231241 // / \brief Adds collision monitoring histograms in the histogram registry.
@@ -339,7 +349,7 @@ struct HfEventSelection : o2::framework::ConfigurableGroup {
339349 auto bcRange = udhelpers::compatibleBCs (collision, sgCuts.NDtcoll (), bcs, sgCuts.minNBCs ());
340350 auto isSGEvent = sgSelector.IsSelected (sgCuts, collision, bcRange, bc);
341351 int issgevent = isSGEvent.value ;
342- if (issgevent > 2 ) {
352+ if (issgevent > UPCEvent::DoubleGap ) {
343353 SETBIT (rejectionMask, EventRejection::UpcEventCut);
344354 } else {
345355 if (issgevent == UPCEvent::SingleGapA) {
0 commit comments