ATLAS Offline Software
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 
16  #include "AthenaKernel/CLASS_DEF.h"
17 
18 
19  #ifndef TRIGGERSPACE
21  #else
22  #include "Coordinate.h"
23  #endif
24  namespace LVL1 {
25 
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
LVL1::CPMHits::HitsVec0
const std::vector< unsigned int > & HitsVec0() const
Multi-slice accessors.
Definition: CPMHits.cxx:68
LVL1::CPMHits::addHits
void addHits(const std::vector< unsigned int > &hits0, const std::vector< unsigned int > &hits1)
Add hits to existing object.
Definition: CPMHits.cxx:76
LVL1::CPMHits::m_Hits0
std::vector< unsigned int > m_Hits0
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMHits.h:67
LVL1::CPMHits::CPMHits
CPMHits(int crate, int module, const std::vector< unsigned int > &EMTauHits0, const std::vector< unsigned int > &EMTauHits1, int peak)
LVL1::CPMHits::setPeak
void setPeak(int peak)
In multi-slice readout, need to specify which is peak slice.
Definition: CPMHits.cxx:83
LVL1::CPMHits::HitWord1
unsigned int HitWord1() const
Definition: CPMHits.cxx:63
LVL1::CPMHits::CPMHits
CPMHits(int crate, int module)
LVL1::CPMHits
The CPMHits object contains the hit data produced by a given Cluster Processor Module,...
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMHits.h:34
LVL1
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
Definition: ICMMCPHitsCnvTool.h:18
CPMHits_ClassDEF.h
LVL1::CPMHits::m_peak
int m_peak
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMHits.h:66
LVL1::CPMHits::HitWord0
unsigned int HitWord0() const
returns hits for peak sample
Definition: CPMHits.cxx:60
LVL1::CPMHitsMap_t
std::map< int, const CPMHits * > CPMHitsMap_t
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMHits.h:72
Coordinate.h
Coordinate policies.
LVL1::CPMHits::CPMHits
CPMHits()=default
Constructors.
LVL1::CPMHits::crate
int crate() const
Data accessors.
Definition: CPMHits.cxx:50
Coordinate.h
LVL1::CPMHits::m_Hits1
std::vector< unsigned int > m_Hits1
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMHits.h:68
LVL1::CPMHits::peak
int peak() const
returns peak slice number
Definition: CPMHits.cxx:88
LVL1::CPMHits::m_crate
int m_crate
Internal data.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMHits.h:64
LVL1::CPMHits::module
int module() const
returns module number
Definition: CPMHits.cxx:55
LVL1::CPMHits::HitsVec1
const std::vector< unsigned int > & HitsVec1() const
Definition: CPMHits.cxx:71
LVL1::CPMHits::m_module
int m_module
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMHits.h:65
CLASS_DEF.h
macros to associate a CLID to a type