ATLAS Offline Software
CMXCPTob_v1.h
Go to the documentation of this file.
1 // Dear emacs, this is -*- c++ -*-
2 
3 /*
4  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 // $Id: CMXCPTob_v1.h 687949 2015-08-06 15:48:49Z amazurov $
8 #ifndef XAODTRIGL1CALO_VERSIONS_CMXCPTOB_V1_H
9 #define XAODTRIGL1CALO_VERSIONS_CMXCPTOB_V1_H
10 
11 // EDM include(s):
12 #include "AthLinks/ElementLink.h"
14 
15 // System include(s):
16 #include <stdint.h>
17 
18 namespace xAOD{
19 
26 
27  class CMXCPTob_v1 : public SG::AuxElement {
28  public:
30  CMXCPTob_v1();
32  virtual ~CMXCPTob_v1(){}
33 
35  virtual void initialize(const uint8_t crate,const uint8_t cmx,
36  const uint8_t cpm,const uint8_t chip,const uint8_t loc);
37 
39  virtual void initialize(const uint8_t crate,const uint8_t cmx,
40  const uint8_t cpm,const uint8_t chip,const uint8_t loc,
41  const std::vector<uint8_t>& energyVec,
42  const std::vector<uint8_t>& isolationVec,
43  const std::vector<uint32_t>& errorVec,
44  const std::vector<uint16_t>& presenceMapVec,
45  const uint8_t peak);
46 
48  void addTob(const std::vector<uint8_t>& energyVec,
49  const std::vector<uint8_t>& isolationVec,
50  const std::vector<uint32_t>& errorVec,
51  const std::vector<uint16_t>& presenceMapVec);
52 
54  uint8_t crate() const;
57 
59  uint8_t cmx() const;
61  void setCmx(uint8_t);
62 
64  uint8_t cpm() const;
66  void setCpm(uint8_t);
67 
69  uint8_t chip() const;
72 
74  uint8_t location() const;
77 
79  uint8_t peak() const;
82 
84  const std::vector<uint8_t>& energyVec() const;
86  void setEnergyVec(const std::vector<uint8_t>&);
87 
89  const std::vector<uint8_t>& isolationVec() const;
91  void setIsolationVec(const std::vector<uint8_t>&);
92 
94  const std::vector<uint32_t>& errorVec() const;
96  void setErrorVec(const std::vector<uint32_t>&);
97 
99  const std::vector<uint16_t>& presenceMapVec() const;
101  void setPresenceMapVec(const std::vector<uint16_t>&);
102 
106 
108  uint8_t energy() const;
109 
111  uint8_t isolation() const;
112 
114  uint32_t error() const;
115 
117  uint16_t presenceMap() const;
118 
119  }; // class CMXCPTob_v1
120 } // namespace xAOD
121 #endif
122 
xAOD::CMXCPTob_v1::crate
uint8_t crate() const
get crate
xAOD::CMXCPTob_v1::addTob
void addTob(const std::vector< uint8_t > &energyVec, const std::vector< uint8_t > &isolationVec, const std::vector< uint32_t > &errorVec, const std::vector< uint16_t > &presenceMapVec)
add data to existing object
Definition: CMXCPTob_v1.cxx:53
xAOD::uint8_t
uint8_t
Definition: Muon_v1.cxx:557
xAOD::CMXCPTob_v1::setPresenceMapVec
void setPresenceMapVec(const std::vector< uint16_t > &)
set presenceMapVec
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
SG::AuxElement
Base class for elements of a container that can have aux data.
Definition: AuxElement.h:483
xAOD::CMXCPTob_v1::setCrate
void setCrate(uint8_t)
set crate
xAOD::CMXCPTob_v1::presenceMap
uint16_t presenceMap() const
get presenceMapVec at peak bunch crossing
Definition: CMXCPTob_v1.cxx:98
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
xAOD::CMXCPTob_v1
Description of CMXCPTob_v1.
Definition: CMXCPTob_v1.h:27
xAOD::CMXCPTob_v1::setPeak
void setPeak(uint8_t)
set peak
xAOD::CMXCPTob_v1::errorVec
const std::vector< uint32_t > & errorVec() const
get errorVec
xAOD::CMXCPTob_v1::setIsolationVec
void setIsolationVec(const std::vector< uint8_t > &)
set isolationVec
xAOD::uint16_t
setWord1 uint16_t
Definition: eFexEMRoI_v1.cxx:93
xAOD::CMXCPTob_v1::initialize
virtual void initialize(const uint8_t crate, const uint8_t cmx, const uint8_t cpm, const uint8_t chip, const uint8_t loc)
initialize
Definition: CMXCPTob_v1.cxx:21
xAOD::CMXCPTob_v1::error
uint32_t error() const
get errorVec at peak bunch crossing
Definition: CMXCPTob_v1.cxx:92
xAOD::CMXCPTob_v1::setCpm
void setCpm(uint8_t)
set cpm
xAOD::CMXCPTob_v1::setChip
void setChip(uint8_t)
set chip
xAOD::CMXCPTob_v1::isolationVec
const std::vector< uint8_t > & isolationVec() const
get isolationVec
xAOD::CMXCPTob_v1::presenceMapVec
const std::vector< uint16_t > & presenceMapVec() const
get presenceMapVec
xAOD::CMXCPTob_v1::cmx
uint8_t cmx() const
get cmx
xAOD::CMXCPTob_v1::setLocation
void setLocation(uint8_t)
set location
xAOD::CMXCPTob_v1::setEnergyVec
void setEnergyVec(const std::vector< uint8_t > &)
set energyVec
xAOD::CMXCPTob_v1::energy
uint8_t energy() const
Peak functions - return value of peak bunch crossing Assuming we have got the timing calibration corr...
Definition: CMXCPTob_v1.cxx:80
xAOD::CMXCPTob_v1::~CMXCPTob_v1
virtual ~CMXCPTob_v1()
Default desturctor.
Definition: CMXCPTob_v1.h:32
xAOD::CMXCPTob_v1::energyVec
const std::vector< uint8_t > & energyVec() const
get energyVec
xAOD::CMXCPTob_v1::setCmx
void setCmx(uint8_t)
set cmx
xAOD::CMXCPTob_v1::setErrorVec
void setErrorVec(const std::vector< uint32_t > &)
set errorVec
xAOD::CMXCPTob_v1::isolation
uint8_t isolation() const
get isolationVec at peak bunch crossing
Definition: CMXCPTob_v1.cxx:86
xAOD::CMXCPTob_v1::CMXCPTob_v1
CMXCPTob_v1()
Default constructor.
Definition: CMXCPTob_v1.cxx:15
xAOD::CMXCPTob_v1::peak
uint8_t peak() const
get peak
xAOD::CMXCPTob_v1::cpm
uint8_t cpm() const
get cpm
AuxElement.h
Base class for elements of a container that can have aux data.
xAOD::CMXCPTob_v1::location
uint8_t location() const
get location
xAOD::CMXCPTob_v1::chip
uint8_t chip() const
get chip