ATLAS Offline Software
Loading...
Searching...
No Matches
TileBeamElem.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3*/
4
5//***************************************************************************
6// Filename : TileBeamElem.h
7// Author : AS
8// Created : Oct 29, 2003
9//
10// DESCRIPTION:
11// A TileBeamElem is the data class corresponding to the amplitude information
12// obtained in various beam elements (scintillators, wire chambers etc).
13// It contains a hardware identifier ("ADC" identifier)
14// and one or many uint32 amplitudes stored in a vector
15//
16// HISTORY:
17// 29Oct03 Created
18//
19// ***************************************************************************
20
21#ifndef TILEEVENT_TILEBEAMELEM_H
22#define TILEEVENT_TILEBEAMELEM_H
23
25
27{
28public:
29
30 /* Constructors */
31
33
34 TileBeamElem(const HWIdentifier& HWid, const std::vector<uint32_t>& digits );
35 TileBeamElem(const HWIdentifier& HWid, std::vector<uint32_t>&& digits );
36
37 // Needs to come after HWIdentifier for proper overload resolution
38 // with pyroot.
39 TileBeamElem(const Identifier& id, const std::vector<uint32_t>& digits );
40
41 TileBeamElem(const HWIdentifier& HWid, uint32_t digit );
42
43 /* Inline access methods */
44
45 inline int size(void) const { return m_digits.size(); }
46
47 inline const std::vector<uint32_t>& get_digits(void) const { return m_digits; }
48
49 std::string whoami (void) const { return "TileBeamElem"; }
50 void print (void) const;
51 // Convertion operator to a std::string
52 // Can be used in a cast operation : (std::string) TileBeamElem
53 operator std::string() const;
54
55private:
56
57 /* Member variables: */
58 std::vector<uint32_t> m_digits;
59};
60
61#endif //TILEEVENT_TILEBEAMELEM_H
62
std::string whoami(void) const
void print(void) const
const std::vector< uint32_t > & get_digits(void) const
std::vector< uint32_t > m_digits
int size(void) const