FairShip
Loading...
Searching...
No Matches
test_signal_particle.FakeTrack Class Reference

Public Member Functions

 __init__ (self, pdg, mother, process=PRIMARY_PROCESS, weight=1.0)
 GetPdgCode (self)
 GetMotherId (self)
 GetProcName (self)
 GetWeight (self)

Public Attributes

 pdg = pdg
 mother = mother
 process = process
 weight = weight

Detailed Description

Minimal stand-in for ShipMCTrack, so the tests need no ROOT.

Definition at line 8 of file test_signal_particle.py.

Constructor & Destructor Documentation

◆ __init__()

test_signal_particle.FakeTrack.__init__ ( self,
pdg,
mother,
process = PRIMARY_PROCESS,
weight = 1.0 )

Definition at line 11 of file test_signal_particle.py.

11 def __init__(self, pdg, mother, process=PRIMARY_PROCESS, weight=1.0):
12 self.pdg = pdg
13 self.mother = mother
14 self.process = process
15 self.weight = weight
16

Member Function Documentation

◆ GetMotherId()

test_signal_particle.FakeTrack.GetMotherId ( self)

Definition at line 20 of file test_signal_particle.py.

20 def GetMotherId(self):
21 return self.mother
22

◆ GetPdgCode()

test_signal_particle.FakeTrack.GetPdgCode ( self)

Definition at line 17 of file test_signal_particle.py.

17 def GetPdgCode(self):
18 return self.pdg
19

◆ GetProcName()

test_signal_particle.FakeTrack.GetProcName ( self)

Definition at line 23 of file test_signal_particle.py.

23 def GetProcName(self):
24 return self.process
25

◆ GetWeight()

test_signal_particle.FakeTrack.GetWeight ( self)

Definition at line 26 of file test_signal_particle.py.

26 def GetWeight(self):
27 return self.weight
28
29
30# The five MCTrack layouts the SHiP generators produce. Each is (tracks,
31# expected signal index); see shipgen/HNLPythia8Generator.cxx:269-283,
32# shipgen/DPPythia8Generator.cxx:246-298 and shipgen/EvtCalcGenerator.cxx:205.

Member Data Documentation

◆ mother

test_signal_particle.FakeTrack.mother = mother

Definition at line 13 of file test_signal_particle.py.

◆ pdg

test_signal_particle.FakeTrack.pdg = pdg

Definition at line 12 of file test_signal_particle.py.

◆ process

test_signal_particle.FakeTrack.process = process

Definition at line 14 of file test_signal_particle.py.

◆ weight

test_signal_particle.FakeTrack.weight = weight

Definition at line 15 of file test_signal_particle.py.


The documentation for this class was generated from the following file: