ATLAS Offline Software
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMCPHits.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 // CMMCPHits.h - description
6 // -------------------
7 // begin : 25 05 2006
8 // email : Alan.Watson@cern.ch
9 // ***************************************************************************/
10 
11 
12  #ifndef CMMCPHits_H
13  #define CMMCPHits_H
14 
15  #include "AthenaKernel/CLASS_DEF.h"
16 
17 
18  #include <iostream>
19  #ifndef TRIGGERSPACE
21  #else
22  #include "Coordinate.h"
23  #endif
24  namespace LVL1 {
25 
30  class CMMCPHits {
31  public:
32 
34 
36  CMMCPHits() = default;
37  CMMCPHits(int crate, int dataID);
38  CMMCPHits(int crate, int dataID, const std::vector<unsigned int>& hits0,
39  const std::vector<unsigned int>& hits1,
40  const std::vector<int>& error0,
41  const std::vector<int>& error1,
42  int peak);
43 
44 
46  void setPeak(int peak);
48  void addHits(const std::vector<unsigned int>& hits0,
49  const std::vector<unsigned int>& hits1,
50  const std::vector<int>& error0,
51  const std::vector<int>& error1);
52 
54  int crate() const;
55  int dataID() const;
57  unsigned int HitWord0() const;
58  unsigned int HitWord1() const;
59  int Error0() const;
60  int Error1() const;
62  const std::vector<unsigned int>& HitsVec0() const;
63  const std::vector<unsigned int>& HitsVec1() const;
64  const std::vector<int>& ErrorVec0() const;
65  const std::vector<int>& ErrorVec1() const;
66  int peak() const;
67 
69  private:
70  int m_crate{};
71  int m_dataID{};
72  int m_peak{};
73  std::vector<unsigned int> m_hits0{0};
74  std::vector<unsigned int> m_hits1{0};
75  std::vector<int> m_error0{0};
76  std::vector<int> m_error1{0};
77 
78  };
79 
80  typedef std::map<int, const CMMCPHits*> CMMCPHitsMap_t;
81  } // end of namespace
82 
83 #ifndef CMMCPHits_ClassDEF_H
85 #endif
86 
87 #endif
LVL1::CMMCPHits::m_hits0
std::vector< unsigned int > m_hits0
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMCPHits.h:73
LVL1::CMMCPHits::setPeak
void setPeak(int peak)
For multi-slice readout, need to indicate position of triggered BC.
Definition: CMMCPHits.cxx:113
LVL1::CMMCPHits::ErrorVec1
const std::vector< int > & ErrorVec1() const
returns error1
Definition: CMMCPHits.cxx:97
LVL1::CMMCPHits::crate
int crate() const
Data accessors.
Definition: CMMCPHits.cxx:52
LVL1::CMMCPHits::m_hits1
std::vector< unsigned int > m_hits1
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMCPHits.h:74
LVL1::CMMCPHits::m_crate
int m_crate
Internal data.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMCPHits.h:70
LVL1::CMMCPHits::peak
int peak() const
returns peak slice number
Definition: CMMCPHits.cxx:118
LVL1::CMMCPHits::addHits
void addHits(const std::vector< unsigned int > &hits0, const std::vector< unsigned int > &hits1, const std::vector< int > &error0, const std::vector< int > &error1)
Add data to existing object.
Definition: CMMCPHits.cxx:102
LVL1
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
Definition: ICMMCPHitsCnvTool.h:18
LVL1::CMMCPHits::CMMCPHits
CMMCPHits()=default
Constructors.
LVL1::CMMCPHits::REMOTE_0
@ REMOTE_0
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMCPHits.h:33
LVL1::CMMCPHitsMap_t
std::map< int, const CMMCPHits * > CMMCPHitsMap_t
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMCPHits.h:80
LVL1::CMMCPHits::MAXID
@ MAXID
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMCPHits.h:33
LVL1::CMMCPHits
Summary of CP (EM/tau) hits received by the merger modules.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMCPHits.h:30
LVL1::CMMCPHits::ErrorVec0
const std::vector< int > & ErrorVec0() const
returns error0
Definition: CMMCPHits.cxx:92
LVL1::CMMCPHits::LOCAL
@ LOCAL
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMCPHits.h:33
LVL1::CMMCPHits::HitsVec1
const std::vector< unsigned int > & HitsVec1() const
returns hits1
Definition: CMMCPHits.cxx:87
Coordinate.h
Coordinate policies.
LVL1::CMMCPHits::HitWord1
unsigned int HitWord1() const
returns hits1 for peak sample
Definition: CMMCPHits.cxx:67
LVL1::CMMCPHits::dataID
int dataID() const
returns data ID of data
Definition: CMMCPHits.cxx:57
LVL1::CMMCPHits::TOTAL
@ TOTAL
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMCPHits.h:33
Coordinate.h
LVL1::CMMCPHits::m_dataID
int m_dataID
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMCPHits.h:71
LVL1::CMMCPHits::HitsVec0
const std::vector< unsigned int > & HitsVec0() const
For multi-slice readout.
Definition: CMMCPHits.cxx:82
LVL1::CMMCPHits::DataIDs
DataIDs
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMCPHits.h:33
LVL1::CMMCPHits::Error0
int Error0() const
returns error0 for peak sample
Definition: CMMCPHits.cxx:72
CMMCPHits_ClassDEF.h
LVL1::CMMCPHits::m_error0
std::vector< int > m_error0
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMCPHits.h:75
LVL1::CMMCPHits::m_peak
int m_peak
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMCPHits.h:72
LVL1::CMMCPHits::REMOTE_2
@ REMOTE_2
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMCPHits.h:33
LVL1::CMMCPHits::m_error1
std::vector< int > m_error1
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMCPHits.h:76
LVL1::CMMCPHits::REMOTE_1
@ REMOTE_1
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMCPHits.h:33
LVL1::CMMCPHits::Error1
int Error1() const
returns error1 for peak sample
Definition: CMMCPHits.cxx:77
CLASS_DEF.h
macros to associate a CLID to a type
LVL1::CMMCPHits::HitWord0
unsigned int HitWord0() const
For triggered time slice.
Definition: CMMCPHits.cxx:62