ATLAS Offline Software
Loading...
Searching...
No Matches
LArTTL1.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// * author : Fabienne Ledroit *
6// * date of creation : 09/01/2003 *
7// * last change 05 april 2004 (FL): added offline id and changed double to float *
8
9
10#ifndef LARTTL1_H
11#define LARTTL1_H
12#include <vector>
13
14#include "Identifier/Identifier.h"
16
17
28
29class LArTTL1 final{
30
31public:
32
33
39 LArTTL1(const HWIdentifier& onlineId, const Identifier& offlineId, const std::vector<float>& sampleValues);
40
42 const HWIdentifier & ttOnlineID() const;
43
45 const Identifier & ttOfflineID() const;
46
48 short nsamples() const;
49
51 const std::vector<float> & samples() const;
52
54 ~LArTTL1() = default;
55
57 LArTTL1() = default;
58
59private:
60
63
66
68 std::vector <float> m_samples;
69
70};
71
72#endif //LARTTL1_H
73
const HWIdentifier & ttOnlineID() const
return LArTTChannelID (online Id)
Definition LArTTL1.cxx:14
std::vector< float > m_samples
vector of samples
Definition LArTTL1.h:68
const std::vector< float > & samples() const
return a reference to a stl vector containing the sample values
Definition LArTTL1.cxx:26
LArTTL1(const HWIdentifier &onlineId, const Identifier &offlineId, const std::vector< float > &sampleValues)
Constructor Beware that sampleValues is a reference to a STL vector of float's which is filled b...
Definition LArTTL1.cxx:7
short nsamples() const
return number of samples
Definition LArTTL1.cxx:22
LArTTL1()=default
default constructor for persistency
Identifier m_offlineId
offline Id (CaloLVL1_ID)
Definition LArTTL1.h:65
~LArTTL1()=default
Destructor.
HWIdentifier m_onlineId
online Id
Definition LArTTL1.h:62
const Identifier & ttOfflineID() const
return TT offline Identifier
Definition LArTTL1.cxx:18