SynAPSE  0.6.0
Synergistic Analysis of Phase Space Evolution
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends
Public Member Functions | Private Attributes
ParticleIdentification Class Reference

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...
 

Detailed Description

Performs particle identification.

Currently only one implemented identification method (TOF).

Time-of-flight particle identification:

  1. fills a histogram with the time-of-flights between TOF stations i and j;
  2. fits the muon and pion peaks with a two-peak Gaussian;
  3. determines the time limits between the e, mu and pi peaks.
  4. when called, checks in which interval the time-of-flight falls.

Returns the particle species as a Geant4 particle ID:

Constructor & Destructor Documentation

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.

Parameters
data_filesList of file names to be processed
idsIDs of the TOF stations to take into account
nentriesNumber 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.

Parameters
idsIDs of the TOF stations to take into account
muminLower boundary of the muon peak
mumaxUpper boundary of the muon peak
ParticleIdentification::ParticleIdentification ( const ParticleIdentification &  pid)

Copy constructor.

ParticleIdentification::~ParticleIdentification ( )

Destructor.

Member Function Documentation

int ParticleIdentification::GetID ( MAUS::ReconEvent *  event) const

Returns the ID of the particle using whichever method was initialized.

Parameters
eventMAUS reconstructed event (single trigger)
Returns
Geant4 particle ID
int ParticleIdentification::GetTofID ( MAUS::ReconEvent *  event) const

Returns the ID of the particle using the TOF identification method.

Parameters
eventMAUS reconstructed event (single trigger)
Returns
Geant4 particle ID
void ParticleIdentification::InitializeTOF ( std::vector< std::string >  data_files,
size_t  nentries 
)

Initializes the TOF particle identificator.

Parameters
data_filesList of file names to be processed
nentriesNumber of entries required to make the fit
ParticleIdentification & ParticleIdentification::operator= ( const ParticleIdentification &  pid)

Equality operator.

Field Documentation

std::string ParticleIdentification::_method
private

Name of the method used for PID.

double ParticleIdentification::_tof_dz
private

Distance between the TOFs.

std::vector<size_t> ParticleIdentification::_tof_ids
private

IDs of the TOFs used for PID.

std::vector<double> ParticleIdentification::_tof_params
private

Parameters of the TOF PID.


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