ATLAS Offline Software
Loading...
Searching...
No Matches
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMHits.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
5 //***************************************************************************
6 // CPMHits.h - description
7 // -------------------
8 // begin : 25 05 2006
9 // email : Alan.Watson@cern.ch
10 // ***************************************************************************/
11
12
13 #ifndef CPMHits_H
14 #define CPMHits_H
15
17
18
19 #ifndef TRIGGERSPACE
21 #else
22 #include "Coordinate.h"
23 #endif
24 namespace LVL1 {
25
33
34 class CPMHits {
35 public:
36
38 CPMHits() = default;
39 CPMHits(int crate, int module);
40 CPMHits(int crate, int module, const std::vector<unsigned int>& EMTauHits0,
41 const std::vector<unsigned int>& EMTauHits1, int peak);
42
43
44
46 void setPeak(int peak);
48 void addHits(const std::vector<unsigned int>& hits0,
49 const std::vector<unsigned int>& hits1);
50
52 int crate() const;
53 int module() const;
54 unsigned int HitWord0() const;
55 unsigned int HitWord1() const;
56
58 const std::vector<unsigned int>& HitsVec0() const;
59 const std::vector<unsigned int>& HitsVec1() const;
60 int peak() const;
61
63 private:
64 int m_crate{};
65 int m_module{};
66 int m_peak{};
67 std::vector <unsigned int> m_Hits0{0};
68 std::vector <unsigned int> m_Hits1{0};
69
70 };
71
72 typedef std::map<int, const CPMHits*> CPMHitsMap_t;
73 } // end of namespace
74
75#ifndef CPMHits_ClassDEF_H
77#endif
78
79#endif
macros to associate a CLID to a type
Coordinate policies.
CPMHits()=default
Constructors.
int crate() const
Data accessors.
Definition CPMHits.cxx:45
int module() const
returns module number
Definition CPMHits.cxx:50
int peak() const
returns peak slice number
Definition CPMHits.cxx:83
const std::vector< unsigned int > & HitsVec0() const
Multi-slice accessors.
Definition CPMHits.cxx:63
void addHits(const std::vector< unsigned int > &hits0, const std::vector< unsigned int > &hits1)
Add hits to existing object.
Definition CPMHits.cxx:71
const std::vector< unsigned int > & HitsVec1() const
Definition CPMHits.cxx:66
unsigned int HitWord0() const
returns hits for peak sample
Definition CPMHits.cxx:55
unsigned int HitWord1() const
Definition CPMHits.cxx:58
CPMHits(int crate, int module)
CPMHits(int crate, int module, const std::vector< unsigned int > &EMTauHits0, const std::vector< unsigned int > &EMTauHits1, int peak)
void setPeak(int peak)
In multi-slice readout, need to specify which is peak slice.
Definition CPMHits.cxx:78
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
std::map< int, const CPMHits * > CPMHitsMap_t