38 hitTFile = TFile(inputHitFileName)
39 list1 = hitTFile.GetListOfKeys()
41 print '==> In plotHits, using file name {0:s}'.
format(inputHitFileName)
45 if i.GetClassName() ==
'TDirectoryFile':
46 if i.GetName() !=
"mcassociations":
48 hitTFile.cd(i.GetName())
49 histogramList = gDirectory.GetListOfKeys()
50 can[canIdx] = TCanvas(
"MC vs Reco",
"MC vs Reco", 800, 600)
51 can[canIdx].Divide(2,2)
52 nHitsPerPrimary =
GetObject(
"NHitsPerPrimary", histogramList)
53 primaryRecoNHits =
GetObject(
"PrimaryRecoNHits", histogramList)
54 deltaNHits =
GetObject(
"DeltaNHits", histogramList)
55 primaryLength =
GetObject(
"PrimaryLength", histogramList)
56 primaryRecLength =
GetObject(
"PrimaryRecLength", histogramList)
57 deltaTrackLen =
GetObject(
"DeltaTrackLen", histogramList)
59 nHitsPerPrimary.SetLineColor(4)
60 nHitsPerPrimary.SetStats(0)
61 nHitsPerPrimary.Draw()
62 primaryRecoNHits.SetLineColor(2)
63 primaryRecoNHits.SetStats(0)
64 primaryRecoNHits.Draw(
"SAMES")
66 deltaNHits.SetLineColor(4)
67 deltaNHits.SetStats(0)
70 primaryLength.SetLineColor(4)
71 primaryLength.SetStats(0)
73 primaryRecLength.SetLineColor(2)
74 primaryRecLength.SetStats(0)
75 primaryRecLength.Draw(
"SAMES")
77 deltaTrackLen.SetLineColor(4)
78 deltaTrackLen.SetStats(0)
84 can[canIdx] = TCanvas(
"Completeness",
"Completeness", 800, 600)
85 can[canIdx].Divide(2,2)
86 primCompleteness =
GetObject(
"PrimaryCompleteness", histogramList)
87 primCompVsNHits =
GetObject(
"PrimaryCompVsLogHits", histogramList)
88 primCompVsLen =
GetObject(
"PrimaryCompVsLen", histogramList)
89 primCompVsMom =
GetObject(
"PrimaryCompVsMom", histogramList)
91 primCompleteness.SetLineColor(4)
92 primCompleteness.SetStats(0)
93 primCompleteness.Draw()
95 primCompVsNHits.SetLineColor(4)
96 primCompVsNHits.SetStats(0)
97 primCompVsNHits.Draw()
99 primCompVsLen.SetLineColor(4)
100 primCompVsLen.SetStats(0)
103 primCompVsMom.SetLineColor(4)
104 primCompVsMom.SetStats(0)
110 can[canIdx] = TCanvas(
"Efficiency",
"Efficiency", 800, 600)
111 can[canIdx].Divide(2,2)
112 primEfficiency =
GetObject(
"PrimaryEfficiency", histogramList)
113 primEffVsNHits =
GetObject(
"PrimaryEffVsLogHits", histogramList)
114 primEffVsLen =
GetObject(
"PrimaryEffVsLen", histogramList)
115 primEffVsMom =
GetObject(
"PrimaryEffVsMom", histogramList)
117 primEfficiency.SetLineColor(4)
118 primEfficiency.SetStats(0)
119 primEfficiency.Draw()
121 primEffVsNHits.SetLineColor(4)
122 primEffVsNHits.SetStats(0)
123 primEffVsNHits.Draw()
125 primEffVsLen.SetLineColor(4)
126 primEffVsLen.SetStats(0)
129 primEffVsMom.SetLineColor(4)
130 primEffVsMom.SetStats(0)
136 can[canIdx] = TCanvas(
"Purity",
"Purity", 800, 600)
137 can[canIdx].Divide(2,2)
138 primPurity =
GetObject(
"PrimaryPurity", histogramList)
139 primPurVsNHits =
GetObject(
"PrimaryPurityVsLogHits", histogramList)
140 primPurVsLen =
GetObject(
"PrimaryPurVsLen", histogramList)
141 primPurVsMom =
GetObject(
"PrimaryPurVsMom", histogramList)
143 primPurity.SetLineColor(4)
144 primPurity.SetStats(0)
147 primPurVsNHits.SetLineColor(4)
148 primPurVsNHits.SetStats(0)
149 primPurVsNHits.Draw()
151 primPurVsLen.SetLineColor(4)
152 primPurVsLen.SetStats(0)
155 primPurVsMom.SetLineColor(4)
156 primPurVsMom.SetStats(0)
static std::string format(PyObject *obj, unsigned int pos, unsigned int indent, unsigned int maxlen, unsigned int depth)
bool Update(detinfo::DetectorClocksData const &clockData, detinfo::DetectorPropertiesData const &detProp, const TCSlice &slc, PFPStruct &pfp, bool prt)