ATLAS Offline Software
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMCPHits.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 // 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();
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  virtual ~CMMCPHits();
45 
47  void setPeak(int peak);
49  void addHits(const std::vector<unsigned int>& hits0,
50  const std::vector<unsigned int>& hits1,
51  const std::vector<int>& error0,
52  const std::vector<int>& error1);
53 
55  int crate() const;
56  int dataID() const;
58  unsigned int HitWord0() const;
59  unsigned int HitWord1() const;
60  int Error0() const;
61  int Error1() const;
63  const std::vector<unsigned int>& HitsVec0() const;
64  const std::vector<unsigned int>& HitsVec1() const;
65  const std::vector<int>& ErrorVec0() const;
66  const std::vector<int>& ErrorVec1() const;
67  int peak() const;
68 
70  private:
71  int m_crate;
72  int m_dataID;
73  int m_peak;
74  std::vector<unsigned int> m_hits0;
75  std::vector<unsigned int> m_hits1;
76  std::vector<int> m_error0;
77  std::vector<int> m_error1;
78 
79  };
80 
81  typedef std::map<int, const CMMCPHits*> CMMCPHitsMap_t;
82  } // end of namespace
83 
84 #ifndef CMMCPHits_ClassDEF_H
86 #endif
87 
88 #endif
LVL1::CMMCPHits::m_hits0
std::vector< unsigned int > m_hits0
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMCPHits.h:74
LVL1::CMMCPHits::setPeak
void setPeak(int peak)
For multi-slice readout, need to indicate position of triggered BC.
Definition: CMMCPHits.cxx:132
LVL1::CMMCPHits::ErrorVec1
const std::vector< int > & ErrorVec1() const
returns error1
Definition: CMMCPHits.cxx:116
LVL1::CMMCPHits::crate
int crate() const
Data accessors.
Definition: CMMCPHits.cxx:71
LVL1::CMMCPHits::~CMMCPHits
virtual ~CMMCPHits()
Definition: CMMCPHits.cxx:38
LVL1::CMMCPHits::m_hits1
std::vector< unsigned int > m_hits1
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMCPHits.h:75
LVL1::CMMCPHits::m_crate
int m_crate
Internal data.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMCPHits.h:71
LVL1::CMMCPHits::peak
int peak() const
returns peak slice number
Definition: CMMCPHits.cxx:137
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:121
LVL1
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
Definition: ICMMCPHitsCnvTool.h:18
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:81
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:111
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:106
Coordinate.h
Coordinate policies.
LVL1::CMMCPHits::HitWord1
unsigned int HitWord1() const
returns hits1 for peak sample
Definition: CMMCPHits.cxx:86
LVL1::CMMCPHits::dataID
int dataID() const
returns data ID of data
Definition: CMMCPHits.cxx:76
LVL1::CMMCPHits::TOTAL
@ TOTAL
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMCPHits.h:33
Coordinate.h
LVL1::CMMCPHits::CMMCPHits
CMMCPHits()
Constructors.
Definition: CMMCPHits.cxx:27
LVL1::CMMCPHits::m_dataID
int m_dataID
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMCPHits.h:72
LVL1::CMMCPHits::HitsVec0
const std::vector< unsigned int > & HitsVec0() const
For multi-slice readout.
Definition: CMMCPHits.cxx:101
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:91
CMMCPHits_ClassDEF.h
LVL1::CMMCPHits::m_error0
std::vector< int > m_error0
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMCPHits.h:76
LVL1::CMMCPHits::m_peak
int m_peak
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMCPHits.h:73
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:77
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:96
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:81