ATLAS Offline Software
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMHits.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  // 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  #include <iostream>
20  #ifndef TRIGGERSPACE
22  #else
23  #include "Coordinate.h"
24  #endif
25  namespace LVL1 {
26 
35  class CPMHits {
36  public:
37 
39  CPMHits();
40  CPMHits(int crate, int module);
41  CPMHits(int crate, int module, const std::vector<unsigned int>& EMTauHits0,
42  const std::vector<unsigned int>& EMTauHits1, int peak);
43 
45  virtual ~CPMHits();
46 
48  void setPeak(int peak);
50  void addHits(const std::vector<unsigned int>& hits0,
51  const std::vector<unsigned int>& hits1);
52 
54  int crate() const;
55  int module() const;
56  unsigned int HitWord0() const;
57  unsigned int HitWord1() const;
58 
60  const std::vector<unsigned int>& HitsVec0() const;
61  const std::vector<unsigned int>& HitsVec1() const;
62  int peak() const;
63 
65  private:
66  int m_crate;
67  int m_module;
68  int m_peak;
69  std::vector <unsigned int> m_Hits0;
70  std::vector <unsigned int> m_Hits1;
71 
72  };
73 
74  typedef std::map<int, const CPMHits*> CPMHitsMap_t;
75  } // end of namespace
76 
77 #ifndef CPMHits_ClassDEF_H
79 #endif
80 
81 #endif
LVL1::CPMHits::HitsVec0
const std::vector< unsigned int > & HitsVec0() const
Multi-slice accessors.
Definition: CPMHits.cxx:81
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:89
LVL1::CPMHits::m_Hits0
std::vector< unsigned int > m_Hits0
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMHits.h:69
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:96
LVL1::CPMHits::HitWord1
unsigned int HitWord1() const
Definition: CPMHits.cxx:76
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:35
LVL1::CPMHits::CPMHits
CPMHits()
Constructors.
Definition: CPMHits.cxx:27
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:68
LVL1::CPMHits::HitWord0
unsigned int HitWord0() const
returns hits for peak sample
Definition: CPMHits.cxx:73
LVL1::CPMHitsMap_t
std::map< int, const CPMHits * > CPMHitsMap_t
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMHits.h:74
Coordinate.h
Coordinate policies.
LVL1::CPMHits::crate
int crate() const
Data accessors.
Definition: CPMHits.cxx:63
Coordinate.h
LVL1::CPMHits::m_Hits1
std::vector< unsigned int > m_Hits1
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMHits.h:70
LVL1::CPMHits::peak
int peak() const
returns peak slice number
Definition: CPMHits.cxx:101
LVL1::CPMHits::m_crate
int m_crate
Internal data.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMHits.h:66
LVL1::CPMHits::~CPMHits
virtual ~CPMHits()
Destructor.
Definition: CPMHits.cxx:36
LVL1::CPMHits::module
int module() const
returns module number
Definition: CPMHits.cxx:68
LVL1::CPMHits::HitsVec1
const std::vector< unsigned int > & HitsVec1() const
Definition: CPMHits.cxx:84
LVL1::CPMHits::m_module
int m_module
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMHits.h:67
CLASS_DEF.h
macros to associate a CLID to a type