|
ATLAS Offline Software
|
Go to the documentation of this file.
32 const float xlumiMC = 0.158478605;
36 std::vector<float> lumiVec (MAX_BCID);
37 for (
size_t i = 0;
i < MAX_BCID;
i++) {
69 m_lumiData.resize (nbefore + lumiVec.size() + nafter);
72 std::copy (lumiVec.end() - nbefore, lumiVec.end(),
76 std::copy (lumiVec.begin(), lumiVec.end(),
80 std::copy (lumiVec.begin(), lumiVec.begin() + nafter,
81 m_lumiData.begin() + nbefore + lumiVec.size());
95 const float averageInteractionsPerCrossing,
102 if (averageInteractionsPerCrossing != 1) {
103 for (
float& o :
out) {
104 o *= averageInteractionsPerCrossing;
const float * m_lumi
Pointer to the luminosity data for BCID 0 (after initial padding).
const std::vector< float > & lbLuminosityPerBCIDVector() const
aligned_vector< T, 64 > vec_aligned_vector
A std::vector with alignment sufficient for any vector instructions on this platform.
const CaloBCIDCoeffs & m_coeffs
Associated coefficients conditions object.
size_t nshapes() const
Return the number of shape points per cell.
size_t nsamples_coeff() const
Return the number of samples per cell used in the calculation (after padding).
std::vector< float > m_lumiData
Per-BCID luminosities. Padded at the start and end as described above.
static constexpr int m_MAX_BCID
Luminosity-dependent pileup offset correction conditions object.
CaloBCIDLumi(const CaloBCIDCoeffs &coeffs, const BunchCrossingCondData &bcData)
Constructor (for MC).
Hold luminosity data produced by LuminosityCondAlg.
setEventNumber setTimeStamp bcid
void calc(const size_t bcid, const float averageInteractionsPerCrossing, CxxUtils::vec_aligned_vector< float > &out) const
Perform the calculation for a given BCID.
Luminosity-dependent pileup offset correction conditions object.
Replaces the BunchCrossing AlgTool used in run1/2.
void calc(const float *lumi, CxxUtils::vec_aligned_vector< float > &out) const
Perform the calculation for a given set of per-bunch luminosities.
void initLumi(const std::vector< float > &lumiVec)
Initialize m_lumiData.
Luminosity-dependent pileup offset correction conditions object.
bool isFilled(const bcid_type bcid) const
The simplest query: Is the bunch crossing filled or not?