ATLAS Offline Software
Loading...
Searching...
No Matches
LArTBWarmTCHit.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
5//=================================================
6// LArTBWarmTCHit class
7//
8// information stored
9//=================================================
10
11#ifndef LArTBWarmTCHit_h
12#define LArTBWarmTCHit_h 1
13
14#include "CLHEP/Vector/ThreeVector.h"
15#include <vector>
16
18{
19 public:
20 LArTBWarmTCHit() = default;
21 LArTBWarmTCHit(int ad, double en) : m_addr(ad), m_energy(en) {};
22
23//Set- Get- methods
24 // energy deposit
25 inline void SetEnergy(double ed) { m_energy = ed; }
26 inline void AddEnergy(double ed) { m_energy += ed; }
27 inline double GetEnergy() { return m_energy; }
28
29 // address
30 inline void SetAddr(int d) { m_addr = d; }
31 inline int GetAddr() { return m_addr; }
32
33 private:
34 int m_addr{}; // Address:
35 double m_energy{};
36};
37
38typedef std::vector<LArTBWarmTCHit> LArTBWarmTCHitsCollection;
39
40#endif
std::vector< LArTBWarmTCHit > LArTBWarmTCHitsCollection
void AddEnergy(double ed)
void SetEnergy(double ed)
LArTBWarmTCHit()=default
LArTBWarmTCHit(int ad, double en)
void SetAddr(int d)