|
| rfile |
| Output file to store all plots.
|
|
| profiles |
| flat list of all profiles for easy access
|
|
| eff |
| layer/momentum hierachy of all profiles
|
|
Plot Efficiency to find a U and V cluster for each given truehit.
Definition at line 32 of file ClusterEfficiency.py.
◆ event()
Update the efficienies by iterating over all primary particles
Definition at line 146 of file ClusterEfficiency.py.
148 Update the efficienies by iterating over all primary particles
151 for mcp
in mcparticles:
153 if not mcp.hasStatus(1):
158 p = mcp.getMomentum()
161 if abs(p.Mag() - i) < 0.05:
167 B2WARNING(
"Strange particle momentum: %f, expected one of %s" %
168 (p.Mag(),
", ".join(str()
for p
in momenta)))
172 pxdtruehits = mcp.getRelationsTo(
"PXDTrueHits")
173 self.fill_truehits(math.degrees(p.Phi()), p_gen, pxdtruehits)
174 svdtruehits = mcp.getRelationsTo(
"SVDTrueHits")
175 self.fill_truehits(math.degrees(p.Phi()), p_gen, svdtruehits)
◆ 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 105 of file ClusterEfficiency.py.
◆ initialize()
◆ terminate()
The documentation for this class was generated from the following file: