|
| rfile |
| Output file to store all plots.
|
|
| profiles |
| flat list of all profiles for easy access
|
|
| eff |
| layer/momentum hierarchy of all profiles
|
|
Plot Efficiency to find a U and V cluster for each given truehit.
Definition at line 37 of file ClusterEfficiency.py.
◆ event()
Update the efficiencies by iterating over all primary particles
Definition at line 152 of file ClusterEfficiency.py.
154 Update the efficiencies by iterating over all primary particles
157 for mcp
in mcparticles:
159 if not mcp.hasStatus(1):
164 p = mcp.getMomentum()
167 if abs(p.R() - i) < 0.05:
173 b2.B2WARNING(
"Strange particle momentum: %f, expected one of %s" %
174 (p.R(),
", ".join(str()
for p
in momenta)))
178 pxdtruehits = mcp.getRelationsTo(
"PXDTrueHits")
179 self.fill_truehits(math.degrees(p.Phi()), p_gen, pxdtruehits)
180 svdtruehits = mcp.getRelationsTo(
"SVDTrueHits")
181 self.fill_truehits(math.degrees(p.Phi()), p_gen, svdtruehits)
A (simplified) python wrapper for StoreArray.
◆ fill_truehits()
def fill_truehits |
( |
|
self, |
|
|
|
phi, |
|
|
|
p, |
|
|
|
truehits |
|
) |
| |
Loop over all truehits for a track with the given angle phi and momentum
p and update the efficiency profiles.
Definition at line 111 of file ClusterEfficiency.py.
◆ initialize()
◆ terminate()
The documentation for this class was generated from the following file: