![]() |
SynAPSE
0.6.0
Synergistic Analysis of Phase Space Evolution
|
Performs particle identification. More...
#include <ParticleIdentification.hh>
Public Member Functions | |
| ParticleIdentification () | |
| Default constructor, initilizes everything to 0. More... | |
| ParticleIdentification (const std::vector< std::string > &data_files, const std::vector< size_t > &ids, const size_t nentries=1e4) | |
| TOF PID constructor, sets the distance between used TOF stations and their ids. More... | |
| ParticleIdentification (const std::vector< size_t > &ids, const double &mumin, const double &mumax) | |
| Manual TOF PID constructor, sets the boundaries of the muon peak manually. More... | |
| ParticleIdentification (const ParticleIdentification &pid) | |
| Copy constructor. More... | |
| ParticleIdentification & | operator= (const ParticleIdentification &pid) |
| Equality operator. More... | |
| ~ParticleIdentification () | |
| Destructor. More... | |
| void | InitializeTOF (std::vector< std::string > data_files, size_t nentries) |
| Initializes the TOF particle identificator. More... | |
| int | GetID (MAUS::ReconEvent *event) const |
| Returns the ID of the particle using whichever method was initialized. More... | |
| int | GetTofID (MAUS::ReconEvent *event) const |
| Returns the ID of the particle using the TOF identification method. More... | |
Private Attributes | |
| std::string | _method |
| Name of the method used for PID. More... | |
| std::vector< size_t > | _tof_ids |
| IDs of the TOFs used for PID. More... | |
| std::vector< double > | _tof_params |
| Parameters of the TOF PID. More... | |
| double | _tof_dz |
| Distance between the TOFs. More... | |
Performs particle identification.
Currently only one implemented identification method (TOF).
Time-of-flight particle identification:
Returns the particle species as a Geant4 particle ID:
| ParticleIdentification::ParticleIdentification | ( | ) |
Default constructor, initilizes everything to 0.
| ParticleIdentification::ParticleIdentification | ( | const std::vector< std::string > & | data_files, |
| const std::vector< size_t > & | ids, | ||
| const size_t | nentries = 1e4 |
||
| ) |
TOF PID constructor, sets the distance between used TOF stations and their ids.
| data_files | List of file names to be processed |
| ids | IDs of the TOF stations to take into account |
| nentries | Number of entries required to make the fit |
| ParticleIdentification::ParticleIdentification | ( | const std::vector< size_t > & | ids, |
| const double & | mumin, | ||
| const double & | mumax | ||
| ) |
Manual TOF PID constructor, sets the boundaries of the muon peak manually.
| ids | IDs of the TOF stations to take into account |
| mumin | Lower boundary of the muon peak |
| mumax | Upper boundary of the muon peak |
| ParticleIdentification::ParticleIdentification | ( | const ParticleIdentification & | pid | ) |
Copy constructor.
| ParticleIdentification::~ParticleIdentification | ( | ) |
Destructor.
| int ParticleIdentification::GetID | ( | MAUS::ReconEvent * | event | ) | const |
Returns the ID of the particle using whichever method was initialized.
| event | MAUS reconstructed event (single trigger) |
| int ParticleIdentification::GetTofID | ( | MAUS::ReconEvent * | event | ) | const |
Returns the ID of the particle using the TOF identification method.
| event | MAUS reconstructed event (single trigger) |
| void ParticleIdentification::InitializeTOF | ( | std::vector< std::string > | data_files, |
| size_t | nentries | ||
| ) |
Initializes the TOF particle identificator.
| data_files | List of file names to be processed |
| nentries | Number of entries required to make the fit |
| ParticleIdentification & ParticleIdentification::operator= | ( | const ParticleIdentification & | pid | ) |
Equality operator.
|
private |
Name of the method used for PID.
|
private |
Distance between the TOFs.
|
private |
IDs of the TOFs used for PID.
|
private |
Parameters of the TOF PID.
1.8.6