ATLAS Offline Software
TileTiming.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TILECONDITIONS_TILETIMING_H
6 #define TILECONDITIONS_TILETIMING_H
7 
8 // Tile includes
10 #include "AthenaKernel/CLASS_DEF.h"
11 #include "AthenaKernel/CondCont.h"
12 
17 class TileTiming {
18  public:
19 
20  TileTiming(std::unique_ptr<TileCalibDataFlt> timing) : m_timing{std::move(timing)} {};
21  virtual ~TileTiming() = default;
22 
23  float getSignalPhase(unsigned int drawerIdx, unsigned int channel, unsigned int adc) const;
24 
25  TileTiming(const TileTiming&) = delete;
26  TileTiming& operator= (const TileTiming&) = delete;
27 
28  private:
29 
30  //=== TileCalibData
31  std::unique_ptr<TileCalibDataFlt> m_timing;
32 };
33 
34 // inlines
35 inline
36 float TileTiming::getSignalPhase(unsigned int drawerIdx, unsigned int channel, unsigned int adc) const {
37  return m_timing->getCalibDrawer(drawerIdx)->getData(channel, adc, 0);
38 }
39 
40 // Set up the ClassID of this class (obtained using 'clid -s TileTiming')
41 CLASS_DEF(TileTiming, 45959584, 0)
42 // Set up the ClassID of the container (obtained using 'clid -cs TileTiming')
44 
45 #endif
CondCont.h
Hold mappings of ranges to condition objects.
plotting.yearwise_efficiency.channel
channel
Definition: yearwise_efficiency.py:24
TileCalibData.h
TileTiming::TileTiming
TileTiming(const TileTiming &)=delete
TileTiming
Condition object to keep and provide Tile timing.
Definition: TileTiming.h:17
CONDCONT_DEF
CONDCONT_DEF(TileTiming, 72660768)
TileTiming::getSignalPhase
float getSignalPhase(unsigned int drawerIdx, unsigned int channel, unsigned int adc) const
Definition: TileTiming.h:36
TileTiming::~TileTiming
virtual ~TileTiming()=default
trigDumpTimers.timing
def timing(hist)
Definition: trigDumpTimers.py:13
TileTiming::TileTiming
TileTiming(std::unique_ptr< TileCalibDataFlt > timing)
Definition: TileTiming.h:20
ReadFloatFromCool.adc
adc
Definition: ReadFloatFromCool.py:48
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
TileTiming::operator=
TileTiming & operator=(const TileTiming &)=delete
CLASS_DEF.h
macros to associate a CLID to a type
TileTiming::m_timing
std::unique_ptr< TileCalibDataFlt > m_timing
Definition: TileTiming.h:31