ATLAS Offline Software
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  */
13 #ifndef CALOLUMICONDITIONS_CALOBCIDLUMI_H
14 #define CALOLUMICONDITIONS_CALOBCIDLUMI_H
15 
16 
18 #include <vector>
19 
20 
21 class CaloBCIDCoeffs;
23 class LuminosityCondData;
24 
25 
47 {
48 public:
55  const BunchCrossingCondData& bcData);
56 
57 
64  const LuminosityCondData& lumiData);
65 
66 
73  void calc (const size_t bcid,
74  const float averageInteractionsPerCrossing,
76 
77 
78 private:
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 
99 #include "AthenaKernel/CLASS_DEF.h"
100 CLASS_DEF( CaloBCIDLumi , 184361154 , 1 )
101 #include "AthenaKernel/CondCont.h"
103 
104 
105 #endif // not CALOLUMICONDITIONS_CALOBCIDLUMI_H
CaloBCIDLumi::m_lumi
const float * m_lumi
Pointer to the luminosity data for BCID 0 (after initial padding).
Definition: CaloBCIDLumi.h:91
CxxUtils::vec_aligned_vector
aligned_vector< T, 64 > vec_aligned_vector
A std::vector with alignment sufficient for any vector instructions on this platform.
Definition: aligned_vector.h:51
BunchCrossingCondData
Definition: BunchCrossingCondData.h:23
CaloBCIDLumi
Luminosity-dependent pileup offset correction conditions object.
Definition: CaloBCIDLumi.h:47
CaloBCIDLumi::m_coeffs
const CaloBCIDCoeffs & m_coeffs
Associated coefficients conditions object.
Definition: CaloBCIDLumi.h:95
CONDCONT_MIXED_DEF
CONDCONT_MIXED_DEF(CaloBCIDLumi, 5332886)
python.AthDsoLogger.out
out
Definition: AthDsoLogger.py:71
CaloBCIDLumi::m_lumiData
std::vector< float > m_lumiData
Per-BCID luminosities. Padded at the start and end as described above.
Definition: CaloBCIDLumi.h:87
perfmonmt-refit.coeffs
coeffs
Definition: perfmonmt-refit.py:105
CaloBCIDLumi::CaloBCIDLumi
CaloBCIDLumi(const CaloBCIDCoeffs &coeffs, const BunchCrossingCondData &bcData)
Constructor (for MC).
Definition: CaloBCIDLumi.cxx:23
LuminosityCondData
Definition: LuminosityCondData.h:23
xAOD::bcid
setEventNumber setTimeStamp bcid
Definition: EventInfo_v1.cxx:133
CaloBCIDLumi::calc
void calc(const size_t bcid, const float averageInteractionsPerCrossing, CxxUtils::vec_aligned_vector< float > &out) const
Perform the calculation for a given BCID.
Definition: CaloBCIDLumi.cxx:94
aligned_vector.h
std::vector with extra alignment.
CLASS_DEF
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Definition: Control/AthenaKernel/AthenaKernel/CLASS_DEF.h:64
CaloBCIDCoeffs
Luminosity-dependent pileup offset correction conditions object.
Definition: CaloBCIDCoeffs.h:84
CaloBCIDLumi::initLumi
void initLumi(const std::vector< float > &lumiVec)
Initialize m_lumiData.
Definition: CaloBCIDLumi.cxx:62
CLASS_DEF.h
macros to associate a CLID to a type