![]() |
Project
|
#include <InteractionSampler.h>
Public Member Functions | |
const o2::InteractionTimeRecord & | generateCollisionTime () |
void | generateCollisionTimes (std::vector< o2::InteractionTimeRecord > &dest) |
void | init () |
void | setInteractionRate (float rateHz) |
float | getInteractionRate () const |
void | setFirstIR (const o2::InteractionRecord &ir) |
const o2::InteractionRecord & | getFirstIR () const |
void | setMuPerBC (float mu) |
float | getMuPerBC () const |
void | setBCTimeRMS (float tNS=0.2) |
float | getBCTimeRMS () const |
const BunchFilling & | getBunchFilling () const |
BunchFilling & | getBunchFilling () |
void | setBunchFilling (const BunchFilling &bc) |
void | setBunchFilling (const std::string &bcFillingFile) |
void | print () const |
Static Public Attributes | |
static constexpr float | Sec2NanoSec = 1.e9 |
Protected Member Functions | |
int | simulateInteractingBC () |
void | nextCollidingBC (int n) |
ClassDefNV (InteractionSampler, 1) | |
Protected Attributes | |
o2::math_utils::RandomRing< 10000 > | mBCJumpGenerator |
o2::math_utils::RandomRing< 1000 > | mNCollBCGenerator |
o2::math_utils::RandomRing< 1000 > | mCollTimeGenerator |
o2::InteractionTimeRecord | mIR {{0, 0}, 0.} |
o2::InteractionTimeRecord | mFirstIR {{4, 0}, 0.} |
int | mIntBCCache = 0 |
N interactions left for current BC. | |
float | mIntRate = -1. |
total interaction rate in Hz | |
float | mBCTimeRMS = 0.2 |
BC time spread in NANOSECONDS. | |
double | mMuBC = -1. |
interaction probability per BC | |
o2::BunchFilling | mBCFilling |
patter of active BCs | |
std::vector< float > | mTimeInBC |
interaction times within single BC | |
std::vector< uint16_t > | mInteractingBCs |
int | mCurrBCIdx = 0 |
counter for current interacting bunch | |
Static Protected Attributes | |
static constexpr float | DefIntRate = 50e3 |
default interaction rate | |
Definition at line 30 of file InteractionSampler.h.
|
protected |
const o2::InteractionTimeRecord & InteractionSampler::generateCollisionTime | ( | ) |
Definition at line 97 of file InteractionSampler.cxx.
|
inline |
Definition at line 96 of file InteractionSampler.h.
|
inline |
Definition at line 61 of file InteractionSampler.h.
|
inline |
Definition at line 63 of file InteractionSampler.h.
|
inline |
Definition at line 62 of file InteractionSampler.h.
|
inline |
Definition at line 52 of file InteractionSampler.h.
|
inline |
Definition at line 44 of file InteractionSampler.h.
|
inline |
Definition at line 59 of file InteractionSampler.h.
void InteractionSampler::init | ( | ) |
Definition at line 18 of file InteractionSampler.cxx.
get colliding BC as n-th after current one
Definition at line 106 of file InteractionSampler.h.
void InteractionSampler::print | ( | ) | const |
Definition at line 85 of file InteractionSampler.cxx.
|
inline |
Definition at line 60 of file InteractionSampler.h.
|
inline |
Definition at line 64 of file InteractionSampler.h.
void InteractionSampler::setBunchFilling | ( | const std::string & | bcFillingFile | ) |
Definition at line 134 of file InteractionSampler.cxx.
|
inline |
Definition at line 45 of file InteractionSampler.h.
|
inline |
Definition at line 39 of file InteractionSampler.h.
|
inline |
Definition at line 54 of file InteractionSampler.h.
|
protected |
Definition at line 115 of file InteractionSampler.cxx.
|
staticconstexprprotected |
default interaction rate
Definition at line 90 of file InteractionSampler.h.
|
protected |
patter of active BCs
Definition at line 85 of file InteractionSampler.h.
|
protected |
Definition at line 73 of file InteractionSampler.h.
|
protected |
BC time spread in NANOSECONDS.
Definition at line 82 of file InteractionSampler.h.
|
protected |
Definition at line 75 of file InteractionSampler.h.
|
protected |
counter for current interacting bunch
Definition at line 88 of file InteractionSampler.h.
|
protected |
Definition at line 78 of file InteractionSampler.h.
|
protected |
N interactions left for current BC.
Definition at line 79 of file InteractionSampler.h.
|
protected |
Definition at line 87 of file InteractionSampler.h.
|
protected |
total interaction rate in Hz
Definition at line 81 of file InteractionSampler.h.
|
protected |
Definition at line 77 of file InteractionSampler.h.
|
protected |
interaction probability per BC
Definition at line 83 of file InteractionSampler.h.
|
protected |
Definition at line 74 of file InteractionSampler.h.
|
protected |
interaction times within single BC
Definition at line 86 of file InteractionSampler.h.
|
staticconstexpr |
Definition at line 33 of file InteractionSampler.h.