143 for (
int wheel = 0; wheel <
kNumWheels; wheel++) {
144 std::stringstream wheelname;
146 else if (wheel ==
kWheelMinus1) wheelname <<
"wheelm1_";
147 else if (wheel ==
kWheelZero) wheelname <<
"wheelz_";
148 else if (wheel ==
kWheelPlus1) wheelname <<
"wheelp1_";
149 else if (wheel ==
kWheelPlus2) wheelname <<
"wheelp2_";
150 else if (wheel ==
kWheelMEm11) wheelname <<
"wheelmem11_";
151 else if (wheel ==
kWheelMEm12) wheelname <<
"wheelmem12_";
152 else if (wheel ==
kWheelMEm13) wheelname <<
"wheelmem13_";
153 else if (wheel ==
kWheelMEm14) wheelname <<
"wheelmem14_";
154 else if (wheel ==
kWheelMEp11) wheelname <<
"wheelmep11_";
155 else if (wheel ==
kWheelMEp12) wheelname <<
"wheelmep12_";
156 else if (wheel ==
kWheelMEp13) wheelname <<
"wheelmep13_";
157 else if (wheel ==
kWheelMEp14) wheelname <<
"wheelmep14_";
159 for (
int sector = 0; sector < 12; sector++) {
160 std::stringstream sectorname;
161 if (sector == 0) sectorname <<
"sector01_";
162 else if (sector == 1) sectorname <<
"sector02_";
163 else if (sector == 2) sectorname <<
"sector03_";
164 else if (sector == 3) sectorname <<
"sector04_";
165 else if (sector == 4) sectorname <<
"sector05_";
166 else if (sector == 5) sectorname <<
"sector06_";
167 else if (sector == 6) sectorname <<
"sector07_";
168 else if (sector == 7) sectorname <<
"sector08_";
169 else if (sector == 8) sectorname <<
"sector09_";
170 else if (sector == 9) sectorname <<
"sector10_";
171 else if (sector == 10) sectorname <<
"sector11_";
172 else if (sector == 11) sectorname <<
"sector12_";
174 for (
int component = 0; component <
kNumComponents; component++) {
175 std::stringstream th2f_name, tprofile_name;
176 th2f_name <<
"th2f_" << wheelname.str() << sectorname.str();
177 tprofile_name <<
"tprofile_" << wheelname.str() << sectorname.str();
181 th2f_name <<
"deltax";
182 tprofile_name <<
"deltax";
186 th2f_name <<
"deltadxdz";
187 tprofile_name <<
"deltadxdz";
190 else if (component ==
kPtErr) {
191 th2f_name <<
"pterr";
192 tprofile_name <<
"pterr";
196 th2f_name <<
"curverr";
197 tprofile_name <<
"curverr";
201 if (component ==
kPtErr) {
202 th2f_wheelsector[wheel][sector][component] =
book2D(
"/iterN/", th2f_name.str().c_str(),
"", 25, -200., 200., 30, -minmax, minmax);
206 th2f_wheelsector[wheel][sector][component] =
book2D(
"/iterN/", th2f_name.str().c_str(),
"", 25, -0.05, 0.05, 30, -minmax, minmax);
207 tprofile_wheelsector[wheel][sector][component] =
bookProfile(
"/iterN/", tprofile_name.str().c_str(),
"", 25, -0.05, 0.05);
214 std::stringstream endcapname;
224 for (
int component = 0; component <
kNumComponents; component++) {
225 std::stringstream componentname;
228 componentname <<
"deltax";
232 componentname <<
"deltadxdz";
235 else if (component ==
kPtErr) {
236 componentname <<
"pterr";
240 componentname <<
"curverr";
244 std::stringstream th2f_evens_name, th2f_odds_name, tprofile_evens_name, tprofile_odds_name;
245 th2f_evens_name <<
"th2f_" << endcapname.str() <<
"evens_" << componentname.str();
246 th2f_odds_name <<
"th2f_" << endcapname.str() <<
"odds_" << componentname.str();
247 tprofile_evens_name <<
"tprofile_" << endcapname.str() <<
"evens_" << componentname.str();
248 tprofile_odds_name <<
"tprofile_" << endcapname.str() <<
"odds_" << componentname.str();
250 if (component ==
kPtErr) {
251 th2f_evens[
endcap][component] =
book2D(
"/iterN/", th2f_evens_name.str().c_str(),
"", 25, -200., 200., 30, -minmax, minmax);
252 th2f_odds[
endcap][component] =
book2D(
"/iterN/", th2f_odds_name.str().c_str(),
"", 25, -200., 200., 30, -minmax, minmax);
257 th2f_evens[
endcap][component] =
book2D(
"/iterN/", th2f_evens_name.str().c_str(),
"", 25, -0.05, 0.05, 30, -minmax, minmax);
258 th2f_odds[
endcap][component] =
book2D(
"/iterN/", th2f_odds_name.str().c_str(),
"", 25, -0.05, 0.05, 30, -minmax, minmax);
259 tprofile_evens[
endcap][component] =
bookProfile(
"/iterN/", tprofile_evens_name.str().c_str(),
"", 25, -0.05, 0.05);
263 for (
int chamber = 0; chamber < 36; chamber++) {
264 std::stringstream chambername;
265 if (chamber == 0) chambername <<
"chamber01_";
266 else if (chamber == 1) chambername <<
"chamber02_";
267 else if (chamber == 2) chambername <<
"chamber03_";
268 else if (chamber == 3) chambername <<
"chamber04_";
269 else if (chamber == 4) chambername <<
"chamber05_";
270 else if (chamber == 5) chambername <<
"chamber06_";
271 else if (chamber == 6) chambername <<
"chamber07_";
272 else if (chamber == 7) chambername <<
"chamber08_";
273 else if (chamber == 8) chambername <<
"chamber09_";
274 else if (chamber == 9) chambername <<
"chamber10_";
275 else if (chamber == 10) chambername <<
"chamber11_";
276 else if (chamber == 11) chambername <<
"chamber12_";
277 else if (chamber == 12) chambername <<
"chamber13_";
278 else if (chamber == 13) chambername <<
"chamber14_";
279 else if (chamber == 14) chambername <<
"chamber15_";
280 else if (chamber == 15) chambername <<
"chamber16_";
281 else if (chamber == 16) chambername <<
"chamber17_";
282 else if (chamber == 17) chambername <<
"chamber18_";
283 else if (chamber == 18) chambername <<
"chamber19_";
284 else if (chamber == 19) chambername <<
"chamber20_";
285 else if (chamber == 20) chambername <<
"chamber21_";
286 else if (chamber == 21) chambername <<
"chamber22_";
287 else if (chamber == 22) chambername <<
"chamber23_";
288 else if (chamber == 23) chambername <<
"chamber24_";
289 else if (chamber == 24) chambername <<
"chamber25_";
290 else if (chamber == 25) chambername <<
"chamber26_";
291 else if (chamber == 26) chambername <<
"chamber27_";
292 else if (chamber == 27) chambername <<
"chamber28_";
293 else if (chamber == 28) chambername <<
"chamber29_";
294 else if (chamber == 29) chambername <<
"chamber30_";
295 else if (chamber == 30) chambername <<
"chamber31_";
296 else if (chamber == 31) chambername <<
"chamber32_";
297 else if (chamber == 32) chambername <<
"chamber33_";
298 else if (chamber == 33) chambername <<
"chamber34_";
299 else if (chamber == 34) chambername <<
"chamber35_";
300 else if (chamber == 35) chambername <<
"chamber36_";
302 std::stringstream th2f_name, tprofile_name;
303 th2f_name <<
"th2f_" << endcapname.str() << chambername.str() << componentname.str();
304 tprofile_name <<
"tprofile_" << endcapname.str() << chambername.str() << componentname.str();
306 if (component ==
kPtErr) {
307 th2f_endcap[
endcap][chamber][component] =
book2D(
"/iterN/", th2f_name.str().c_str(),
"", 25, -200., 200., 30, -minmax, minmax);
311 th2f_endcap[
endcap][chamber][component] =
book2D(
"/iterN/", th2f_name.str().c_str(),
"", 25, -0.05, 0.05, 30, -minmax, minmax);
312 tprofile_endcap[
endcap][chamber][component] =
bookProfile(
"/iterN/", tprofile_name.str().c_str(),
"", 25, -0.05, 0.05);
TH2F * th2f_wheelsector[kNumWheels][12][kNumComponents]
TProfile * tprofile_endcap[kNumEndcap][36][kNumComponents]
TH2F * book2D(std::string dir, std::string name, std::string title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
TH2F * th2f_odds[kNumEndcap][kNumComponents]
TProfile * bookProfile(std::string dir, std::string name, std::string title, int nchX, double lowX, double highX, int nchY=1, double lowY=0., double highY=0., const char *option="s")
TH1F * th1f_trackerRedChi2Diff
TH2F * th2f_endcap[kNumEndcap][36][kNumComponents]
TProfile * tprofile_wheelsector[kNumWheels][12][kNumComponents]
TH1F * book1D(std::string dir, std::string name, std::string title, int nchX, double lowX, double highX)
TH1F * th1f_trackerRedChi2
TH2F * th2f_evens[kNumEndcap][kNumComponents]
TProfile * tprofile_odds[kNumEndcap][kNumComponents]
TProfile * tprofile_evens[kNumEndcap][kNumComponents]