ATLAS Offline Software
CMXCPHits_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: CMXCPHits_v1.h 687949 2015-08-06 15:48:49Z amazurov $
8 #ifndef XAODTRIGL1CALO_VERSIONS_CMXCPHITS_V1_H
9 #define XAODTRIGL1CALO_VERSIONS_CMXCPHITS_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 CMXCPHits_v1 : public SG::AuxElement {
28  public:
32  public:
34  CMXCPHits_v1();
36  virtual ~CMXCPHits_v1(){}
37 
39  virtual void initialize(const uint8_t crate,const uint8_t cmx,const uint8_t source);
40 
42  virtual void initialize(const uint8_t crate,const uint8_t cmx,const uint8_t source,
43  const std::vector<uint32_t>& hitsVec0,
44  const std::vector<uint32_t>& hitsVec1,
45  const std::vector<uint32_t>& errorVec0,
46  const std::vector<uint32_t>& errorVec1,
47  const uint8_t peak);
48 
50  void addHits(const std::vector<uint32_t>& hitsVec0,
51  const std::vector<uint32_t>& hitsVec1,
52  const std::vector<uint32_t>& errorVec0,
53  const std::vector<uint32_t>& errorVec1);
54 
56  uint8_t crate() const;
59 
61  uint8_t cmx() const;
63  void setCmx(uint8_t);
64 
69 
71  uint8_t peak() const;
74 
76  const std::vector<uint32_t>& hitsVec0() const;
78  void setHitsVec0(const std::vector<uint32_t>&);
79 
81  const std::vector<uint32_t>& hitsVec1() const;
83  void setHitsVec1(const std::vector<uint32_t>&);
84 
86  const std::vector<uint32_t>& errorVec0() const;
88  void setErrorVec0(const std::vector<uint32_t>&);
89 
91  const std::vector<uint32_t>& errorVec1() const;
93  void setErrorVec1(const std::vector<uint32_t>&);
94 
98 
100  uint32_t hits0() const;
101 
103  uint32_t hits1() const;
104 
106  uint32_t error0() const;
107 
109  uint32_t error1() const;
110 
111  }; // class CMXCPHits_v1
112 } // namespace xAOD
113 #endif
114 
xAOD::CMXCPHits_v1::addHits
void addHits(const std::vector< uint32_t > &hitsVec0, const std::vector< uint32_t > &hitsVec1, const std::vector< uint32_t > &errorVec0, const std::vector< uint32_t > &errorVec1)
add hits to existing object
Definition: CMXCPHits_v1.cxx:47
xAOD::CMXCPHits_v1::hits0
uint32_t hits0() const
Peak functions - return value of peak bunch crossing Assuming we have got the timing calibration corr...
Definition: CMXCPHits_v1.cxx:72
xAOD::CMXCPHits_v1::REMOTE_2
@ REMOTE_2
Definition: CMXCPHits_v1.h:29
xAOD::uint8_t
uint8_t
Definition: Muon_v1.cxx:557
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::CMXCPHits_v1::peak
uint8_t peak() const
get peak
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
xAOD::CMXCPHits_v1::MAXSOURCE
@ MAXSOURCE
Definition: CMXCPHits_v1.h:31
xAOD::CMXCPHits_v1::setCrate
void setCrate(uint8_t)
set crate
xAOD::CMXCPHits_v1::~CMXCPHits_v1
virtual ~CMXCPHits_v1()
Default desturctor.
Definition: CMXCPHits_v1.h:36
xAOD::CMXCPHits_v1::TOPO_OCCUPANCY_MAP
@ TOPO_OCCUPANCY_MAP
Definition: CMXCPHits_v1.h:30
xAOD::CMXCPHits_v1::setErrorVec1
void setErrorVec1(const std::vector< uint32_t > &)
set errorVec1
xAOD::CMXCPHits_v1::setSourceComponent
void setSourceComponent(uint8_t)
set source
xAOD::CMXCPHits_v1::setPeak
void setPeak(uint8_t)
set peak
xAOD::CMXCPHits_v1::hitsVec1
const std::vector< uint32_t > & hitsVec1() const
get hitsVec1
xAOD::CMXCPHits_v1::setErrorVec0
void setErrorVec0(const std::vector< uint32_t > &)
set errorVec0
xAOD::CMXCPHits_v1::CMXCPHits_v1
CMXCPHits_v1()
Default constructor.
Definition: CMXCPHits_v1.cxx:15
xAOD::CMXCPHits_v1::cmx
uint8_t cmx() const
get cmx
xAOD::CMXCPHits_v1::initialize
virtual void initialize(const uint8_t crate, const uint8_t cmx, const uint8_t source)
initialize
Definition: CMXCPHits_v1.cxx:21
xAOD::CMXCPHits_v1::TOTAL
@ TOTAL
Definition: CMXCPHits_v1.h:29
xAOD::CMXCPHits_v1::error0
uint32_t error0() const
get errorVec0 at peak bunch crossing
Definition: CMXCPHits_v1.cxx:84
xAOD::CMXCPHits_v1::hitsVec0
const std::vector< uint32_t > & hitsVec0() const
get hitsVec0
xAOD::CMXCPHits_v1::errorVec1
const std::vector< uint32_t > & errorVec1() const
get errorVec1
xAOD::CMXCPHits_v1::LOCAL
@ LOCAL
Definition: CMXCPHits_v1.h:29
xAOD::CMXCPHits_v1::REMOTE_0
@ REMOTE_0
Definition: CMXCPHits_v1.h:29
xAOD::CMXCPHits_v1::REMOTE_1
@ REMOTE_1
Definition: CMXCPHits_v1.h:29
xAOD::CMXCPHits_v1::setCmx
void setCmx(uint8_t)
set cmx
xAOD::CMXCPHits_v1::TOPO_OCCUPANCY_COUNTS
@ TOPO_OCCUPANCY_COUNTS
Definition: CMXCPHits_v1.h:30
xAOD::CMXCPHits_v1::setHitsVec1
void setHitsVec1(const std::vector< uint32_t > &)
set hitsVec1
xAOD::CMXCPHits_v1::crate
uint8_t crate() const
get crate
copySelective.source
string source
Definition: copySelective.py:32
xAOD::CMXCPHits_v1::setHitsVec0
void setHitsVec0(const std::vector< uint32_t > &)
set hitsVec0
xAOD::CMXCPHits_v1::errorVec0
const std::vector< uint32_t > & errorVec0() const
get errorVec0
xAOD::CMXCPHits_v1::error1
uint32_t error1() const
get errorVec1 at peak bunch crossing
Definition: CMXCPHits_v1.cxx:90
xAOD::CMXCPHits_v1::sourceComponent
uint8_t sourceComponent() const
get source
xAOD::CMXCPHits_v1
Description of CMXCPHits_v1.
Definition: CMXCPHits_v1.h:27
xAOD::CMXCPHits_v1::hits1
uint32_t hits1() const
get hitsVec1 at peak bunch crossing
Definition: CMXCPHits_v1.cxx:78
AuxElement.h
Base class for elements of a container that can have aux data.
xAOD::CMXCPHits_v1::Sources
Sources
Definition: CMXCPHits_v1.h:29
xAOD::CMXCPHits_v1::TOPO_CHECKSUM
@ TOPO_CHECKSUM
Definition: CMXCPHits_v1.h:30