ATLAS Offline Software
Loading...
Searching...
No Matches
TilePulse.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_TILEPULSEFORM_H
6#define TILECONDITIONS_TILEPULSEFORM_H
7
8// Tile includes
10
15class TilePulse {
16 public:
17
18 TilePulse(std::unique_ptr<TileCalibDataFlt> pulseShape) : m_pulseShape{std::move(pulseShape)} {};
19 virtual ~TilePulse() = default;
20
21 bool getPulseShapeYDY(unsigned int drawerIdx, unsigned int channel, unsigned int adc,
22 float time, float &y, float &dy) const;
23
24 TilePulse(const TilePulse&) = delete;
25 TilePulse& operator= (const TilePulse&) = delete;
26
27 private:
28
29 //=== TileCalibData
30 std::unique_ptr<TileCalibDataFlt> m_pulseShape;
31};
32
33// inlines
34inline
35bool TilePulse::getPulseShapeYDY(unsigned int drawerIdx, unsigned int channel, unsigned int adc,
36 float time, float &y, float &dy) const {
37 return m_pulseShape->getCalibDrawer(drawerIdx)->getYDY(channel, adc, time, y, dy);
38}
39
42
43CLASS_DEF(TilePulse, 239991006, 0)
45
46#endif
Hold mappings of ranges to condition objects.
#define CONDCONT_DEF(...)
Definition CondCont.h:1413
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
#define y
Condition object to keep and provide Tile pulse shape.
Definition TilePulse.h:15
bool getPulseShapeYDY(unsigned int drawerIdx, unsigned int channel, unsigned int adc, float time, float &y, float &dy) const
Definition TilePulse.h:35
TilePulse(std::unique_ptr< TileCalibDataFlt > pulseShape)
Definition TilePulse.h:18
TilePulse(const TilePulse &)=delete
std::unique_ptr< TileCalibDataFlt > m_pulseShape
Definition TilePulse.h:30
virtual ~TilePulse()=default
TilePulse & operator=(const TilePulse &)=delete
STL namespace.