ATLAS Offline Software
Loading...
Searching...
No Matches
CaloBCIDLumi.h
Go to the documentation of this file.
1// This file's extension implies that it's C, but it's really -*- C++ -*-.
2/*
3 * Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration.
4 */
11
12
13#ifndef CALOLUMICONDITIONS_CALOBCIDLUMI_H
14#define CALOLUMICONDITIONS_CALOBCIDLUMI_H
15
16
18#include <vector>
19
20
21class CaloBCIDCoeffs;
24
25
47{
48public:
54 CaloBCIDLumi (const CaloBCIDCoeffs& coeffs,
55 const BunchCrossingCondData& bcData);
56
57
63 CaloBCIDLumi (const CaloBCIDCoeffs& coeffs,
64 const LuminosityCondData& lumiData);
65
66
73 void calc (const size_t bcid,
74 const float averageInteractionsPerCrossing,
76
77
78private:
83 void initLumi (const std::vector<float>& lumiVec);
84
85
87 std::vector<float> m_lumiData;
88
89
91 const float* m_lumi = nullptr;
92
93
96};
97
98
100CLASS_DEF( CaloBCIDLumi , 184361154 , 1 )
101#include "AthenaKernel/CondCont.h"
103
104
105#endif // not CALOLUMICONDITIONS_CALOBCIDLUMI_H
#define CONDCONT_MIXED_DEF(...)
Definition CondCont.h:1446
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
std::vector with extra alignment.
Luminosity-dependent pileup offset correction conditions object.
Luminosity-dependent pileup offset correction conditions object.
void calc(const size_t bcid, const float averageInteractionsPerCrossing, CxxUtils::vec_aligned_vector< float > &out) const
Perform the calculation for a given BCID.
const float * m_lumi
Pointer to the luminosity data for BCID 0 (after initial padding).
void initLumi(const std::vector< float > &lumiVec)
Initialize m_lumiData.
std::vector< float > m_lumiData
Per-BCID luminosities. Padded at the start and end as described above.
CaloBCIDLumi(const CaloBCIDCoeffs &coeffs, const BunchCrossingCondData &bcData)
Constructor (for MC).
const CaloBCIDCoeffs & m_coeffs
Associated coefficients conditions object.
aligned_vector< T, 64 > vec_aligned_vector
A std::vector with alignment sufficient for any vector instructions on this platform.