Project
Loading...
Searching...
No Matches
o2::mid::TrackGenerator Class Reference

Class to generate tracks for MID. More...

#include <TrackGenerator.h>

Public Member Functions

std::vector< Trackgenerate ()
 
std::vector< Trackgenerate (int nTracks)
 
void setSeed (unsigned int seed)
 Sets the seed.
 
void setMeanTracksPerEvent (int meanTracksPerEvent)
 Sets the mean number of track per events.
 
void setSlopeLimits (float slopeXmin, float slopeXmax, float slopeYmin, float slopeYmax)
 Sets the limits of the track slope.
 
void setPositionLimits (float xMin, float xMax, float yMin, float yMax, float zMin, float zMax)
 Sets the limits of the track origin.
 

Detailed Description

Class to generate tracks for MID.

Definition at line 30 of file TrackGenerator.h.

Member Function Documentation

◆ generate() [1/2]

std::vector< Track > o2::mid::TrackGenerator::generate ( )

Generate tracks. The number of tracks follows a poissonian distribution

Definition at line 25 of file TrackGenerator.cxx.

◆ generate() [2/2]

std::vector< Track > o2::mid::TrackGenerator::generate ( int  nTracks)

Generate N tracks

Parameters
nTracksNumber of tracks to generate

Definition at line 34 of file TrackGenerator.cxx.

◆ setMeanTracksPerEvent()

void o2::mid::TrackGenerator::setMeanTracksPerEvent ( int  meanTracksPerEvent)
inline

Sets the mean number of track per events.

Definition at line 40 of file TrackGenerator.h.

◆ setPositionLimits()

void o2::mid::TrackGenerator::setPositionLimits ( float  xMin,
float  xMax,
float  yMin,
float  yMax,
float  zMin,
float  zMax 
)
inline

Sets the limits of the track origin.

Definition at line 47 of file TrackGenerator.h.

◆ setSeed()

void o2::mid::TrackGenerator::setSeed ( unsigned int  seed)
inline

Sets the seed.

Definition at line 37 of file TrackGenerator.h.

◆ setSlopeLimits()

void o2::mid::TrackGenerator::setSlopeLimits ( float  slopeXmin,
float  slopeXmax,
float  slopeYmin,
float  slopeYmax 
)
inline

Sets the limits of the track slope.

Definition at line 42 of file TrackGenerator.h.


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