File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -661,14 +661,13 @@ def load_cuts(self):
661661 print ("No custom cuts given, hence not cutting..." )
662662 self .analysis_cuts = [None ] * self .p_nptfinbins
663663 if not raw_mult_cuts :
664- print ("No multiplicity cuts given, hence not cutting..." )
664+ self . logger . info ("No multiplicity cuts given, hence not cutting..." )
665665 self .analysis_mult_cuts = [None ] * self .p_nptfinbins
666666 if not raw_cuts and not raw_mult_cuts :
667667 return
668668
669669 if raw_cuts and len (raw_cuts ) != self .p_nptfinbins :
670- print (f"You have { self .p_nptfinbins } but you passed { len (raw_cuts )} cuts. Exit..." )
671- sys .exit (1 )
670+ self .logger .critical ("You have %i but you passed %i cuts. Exit..." , self .p_nptfinbins , len (raw_cuts ))
672671 if raw_mult_cuts and len (raw_mult_cuts ) != self .p_nptfinbins :
673672 print (f"You have { self .p_nptfinbins } but you passed { len (raw_mult_cuts )} cuts. Exit..." )
674673 sys .exit (1 )
@@ -705,7 +704,7 @@ def apply_cut_for_ipt(df_full, ipt: int):
705704
706705 if any (self .analysis_cuts ):
707706 df_ipt = df_ipt .query (self .analysis_cuts [ipt ]) if in_range else df_ipt
708- if any (self .analysis_mult_cuts ) and self .mcordata == ' data' :
707+ if any (self .analysis_mult_cuts ) and self .mcordata == " data" :
709708 df_ipt = df_ipt .query (self .analysis_mult_cuts [ipt ]) if in_range else df_ipt
710709 return df_ipt
711710
You can’t perform that action at this time.
0 commit comments