45def histdefs_jetvariables(pprefix, plabel, pflow=False):
46 """
47 Return a list of jet-specific histogram definitions for jet moment distributions
48
49 @param pprefix Prefix of histogram names
50 @param plabel Human-readable name of the jet to use in labeling axes
51 @param pflow bool to indicate that this is the PFlow jet collection, so that the track-based variables are added.
52 False indicates that this is the calo jet collection, and additional calo variables are monitored.
53 """
54
55 histograms=[
56 {'name' :f'{pprefix}ActiveArea',
57 'ylabel':f'{plabel}s',
58 'xlabel':f'{plabel} ActiveArea',
59 'xunit' :'',
60 'xmin' :0,
61 'xmax' :2.,
62 'xbins' :200},
63 ]
64 if pflow:
65 histograms+=[
66 {'name' :f'{pprefix}TrackWidthPt1000',
67 'ylabel':f'{plabel}s',
68 'xlabel':f'{plabel} TrackWidthPt1000',
69 'xmin' :-0.5,
70 'xmax' :0.95,
71 'xbins' :50},
72 {'name' :f'{pprefix}NumTrkPt1000',
73 'ylabel':f'{plabel}s',
74 'xlabel':f'{plabel} NumTrkPt1000',
75 'xmin' :-0.5,
76 'xmax' :39.5,
77 'xbins' :40},
78 {'name' :f'{pprefix}SumPtTrkPt500',
79 'ylabel':f'{plabel}s',
80 'xlabel':f'{plabel} SumPtTrkPt500',
81 'xmin' :-0.5,
82 'xmax' :500e3,
83 'xunit' : 'MeV',
84 'xbins' :200},
85 {'name' :f'{pprefix}SumPtChargedPFOPt500',
86 'ylabel':f'{plabel}s',
87 'xlabel':f'{plabel} SumPtChargedPFOPt500',
88 'xmin' :-0.5,
89 'xmax' :500e3,
90 'xunit' : 'MeV',
91 'xbins' :200},
92 {'name' :f'{pprefix}Jvt',
93 'ylabel':f'{plabel}s',
94 'xlabel':f'{plabel} Jvt',
95 'xmin' :-0.2,
96 'xmax' :1.2,
97 'xbins' :70},
98 {'name' :f'{pprefix}JvtRpt',
99 'ylabel':f'{plabel}s',
100 'xlabel':f'{plabel} JvtRpt',
101 'xmin' :-0.1,
102 'xmax' :1.4,
103 'xbins' :75},
104 {'name' :f'{pprefix}fastDIPS20211215_pu',
105 'ylabel':f'{plabel}s',
106 'xlabel':f'{plabel} fastDips_pu',
107 'xmin' :-0.2,
108 'xmax' :1.2,
109 'xbins' :70},
110 {'name' :f'{pprefix}fastDIPS20211215_pb',
111 'ylabel':f'{plabel}s',
112 'xlabel':f'{plabel} fastDips_pb',
113 'xmin' :-0.2,
114 'xmax' :1.2,
115 'xbins' :70},
116 {'name' :f'{pprefix}fastDIPS20211215_pc',
117 'ylabel':f'{plabel}s',
118 'xlabel':f'{plabel} fastDips_pc',
119 'xmin' :-0.2,
120 'xmax' :1.2,
121 'xbins' :70},
122 {'name' :f'{pprefix}GN120230331_pu',
123 'ylabel':f'{plabel}s',
124 'xlabel':f'{plabel} GN120230331_pu',
125 'xmin' :-0.2,
126 'xmax' :1.2,
127 'xbins' :70},
128 {'name' :f'{pprefix}GN120230331_pb',
129 'ylabel':f'{plabel}s',
130 'xlabel':f'{plabel} GN120230331_pb',
131 'xmin' :-0.2,
132 'xmax' :1.2,
133 'xbins' :70},
134 {'name' :f'{pprefix}GN120230331_pc',
135 'ylabel':f'{plabel}s',
136 'xlabel':f'{plabel} GN120230331_pc',
137 'xmin' :-0.2,
138 'xmax' :1.2,
139 'xbins' :70},
140 ]
141 else:
142 histograms+=[
143 {'name' :f'{pprefix}EMFrac',
144 'ylabel':f'{plabel}s',
145 'xlabel':f'{plabel} EMFrac',
146 'xmin' :-0.1,
147 'xmax' :1.4,
148 'xbins' :75},
149 {'name' :f'{pprefix}HECFrac',
150 'ylabel':f'{plabel}s',
151 'xlabel':f'{plabel} HECFrac',
152 'xmin' :-0.1,
153 'xmax' :1.4,
154 'xbins' :75},
155 {'name' :f'{pprefix}Timing',
156 'ylabel':f'{plabel}s',
157 'xlabel':f'{plabel} Timing',
158 'xunit' :'ns',
159 'xmin' :-50,
160 'xmax' :50,
161 'xbins' :50},
162 {'name' :f'{pprefix}N90Constituents',
163 'ylabel':f'{plabel}s',
164 'xlabel':f'{plabel} N90Constituents',
165 'xunit' :'',
166 'xmin' :0,
167 'xmax' :20,
168 'xbins' :20},
169 ]
170 return histograms
171