ATLAS Offline Software
CMXJetHits_v1.h
Go to the documentation of this file.
1 // Dear emacs, this is -*- c++ -*-
2 
3 /*
4  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 // $Id: CMXJetHits_v1.h 687949 2015-08-06 15:48:49Z amazurov $
8 #ifndef XAODTRIGL1CALO_VERSIONS_CMXJETHITS_V1_H
9 #define XAODTRIGL1CALO_VERSIONS_CMXJETHITS_V1_H
10 
11 // EDM include(s):
12 #include "AthLinks/ElementLink.h"
14 
15 // STL include(s):
16 #include <vector>
17 #include <ostream>
18 // System include(s):
19 #include <stdint.h>
20 
21 namespace xAOD{
22 
29 
30  class CMXJetHits_v1 : public SG::AuxElement {
31  public:
32  enum Sources {
42  MAX_SOURCE = 15
43  };
44  public:
46  CMXJetHits_v1();
48  virtual ~CMXJetHits_v1(){}
49 
51  virtual void initialize(const uint8_t crate,const uint8_t source);
52 
54  virtual void initialize(const uint8_t crate,const uint8_t source,
55  const std::vector<uint32_t>& hitsVec0,
56  const std::vector<uint32_t>& hitsVec1,
57  const std::vector<uint32_t>& errorVec0,
58  const std::vector<uint32_t>& errorVec1,
59  const uint8_t peak);
60 
62  void addHits(const std::vector<uint32_t>& hitsVec0,
63  const std::vector<uint32_t>& hitsVec1,
64  const std::vector<uint32_t>& errorVec0,
65  const std::vector<uint32_t>& errorVec1);
66 
68  uint8_t crate() const;
71 
76 
78  uint8_t peak() const;
81 
83  const std::vector<uint32_t>& hitsVec0() const;
85  void setHitsVec0(const std::vector<uint32_t>&);
86 
88  const std::vector<uint32_t>& hitsVec1() const;
90  void setHitsVec1(const std::vector<uint32_t>&);
91 
93  const std::vector<uint32_t>& errorVec0() const;
95  void setErrorVec0(const std::vector<uint32_t>&);
96 
98  const std::vector<uint32_t>& errorVec1() const;
100  void setErrorVec1(const std::vector<uint32_t>&);
101 
105 
107  uint32_t hits0() const;
108 
110  uint32_t hits1() const;
111 
113  uint32_t error0() const;
114 
116  uint32_t error1() const;
117 
118  }; // class CMXJetHits_v1
119 
120  std::ostream &operator<<(std::ostream &os, const xAOD::CMXJetHits_v1 &el);
121 
122 } // namespace xAOD
123 #endif
124 
xAOD::CMXJetHits_v1::Sources
Sources
Definition: CMXJetHits_v1.h:32
xAOD::CMXJetHits_v1::TOPO_CHECKSUM
@ TOPO_CHECKSUM
Definition: CMXJetHits_v1.h:39
xAOD::CMXJetHits_v1::TOPO_OCCUPANCY_MAP
@ TOPO_OCCUPANCY_MAP
Definition: CMXJetHits_v1.h:40
xAOD::CMXJetHits_v1
Description of CMXJetHits_v1.
Definition: CMXJetHits_v1.h:30
xAOD::CMXJetHits_v1::REMOTE_MAIN
@ REMOTE_MAIN
Definition: CMXJetHits_v1.h:33
xAOD::CMXJetHits_v1::hitsVec0
const std::vector< uint32_t > & hitsVec0() const
get hitsVec0
xAOD::uint8_t
uint8_t
Definition: Muon_v1.cxx:557
xAOD::CMXJetHits_v1::error1
uint32_t error1() const
get errorVec1 at peak bunch crossing
Definition: CMXJetHits_v1.cxx:123
xAOD::CMXJetHits_v1::error0
uint32_t error0() const
get errorVec0 at peak bunch crossing
Definition: CMXJetHits_v1.cxx:117
xAOD::CMXJetHits_v1::setHitsVec0
void setHitsVec0(const std::vector< uint32_t > &)
set hitsVec0
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::CMXJetHits_v1::TOTAL_MAIN
@ TOTAL_MAIN
Definition: CMXJetHits_v1.h:35
xAOD::CMXJetHits_v1::peak
uint8_t peak() const
get peak
xAOD::CMXJetHits_v1::errorVec1
const std::vector< uint32_t > & errorVec1() const
get errorVec1
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
xAOD::CMXJetHits_v1::sourceComponent
uint8_t sourceComponent() const
get source
xAOD::CMXJetHits_v1::setCrate
void setCrate(uint8_t)
set crate
xAOD::CMXJetHits_v1::setErrorVec0
void setErrorVec0(const std::vector< uint32_t > &)
set errorVec0
xAOD::CMXJetHits_v1::errorVec0
const std::vector< uint32_t > & errorVec0() const
get errorVec0
xAOD::CMXJetHits_v1::setSourceComponent
void setSourceComponent(uint8_t)
set source
xAOD::CMXJetHits_v1::TOPO_OCCUPANCY_COUNTS
@ TOPO_OCCUPANCY_COUNTS
Definition: CMXJetHits_v1.h:41
xAOD::CMXJetHits_v1::hits0
uint32_t hits0() const
Peak functions - return value of peak bunch crossing Assuming we have got the timing calibration corr...
Definition: CMXJetHits_v1.cxx:105
xAOD::CMXJetHits_v1::initialize
virtual void initialize(const uint8_t crate, const uint8_t source)
initialize
Definition: CMXJetHits_v1.cxx:56
plotIsoValidation.el
el
Definition: plotIsoValidation.py:197
xAOD::CMXJetHits_v1::LOCAL_MAIN
@ LOCAL_MAIN
Definition: CMXJetHits_v1.h:34
ReadFromCoolCompare.os
os
Definition: ReadFromCoolCompare.py:231
xAOD::CMXJetHits_v1::CMXJetHits_v1
CMXJetHits_v1()
Default constructor.
Definition: CMXJetHits_v1.cxx:50
xAOD::CMXJetHits_v1::REMOTE_FORWARD
@ REMOTE_FORWARD
Definition: CMXJetHits_v1.h:36
xAOD::CMXJetHits_v1::crate
uint8_t crate() const
get crate
xAOD::CMXJetHits_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 data to existing object
Definition: CMXJetHits_v1.cxx:81
xAOD::CMXJetHits_v1::setPeak
void setPeak(uint8_t)
set peak
xAOD::CMXJetHits_v1::setErrorVec1
void setErrorVec1(const std::vector< uint32_t > &)
set errorVec1
xAOD::CMXJetHits_v1::MAX_SOURCE
@ MAX_SOURCE
Definition: CMXJetHits_v1.h:42
xAOD::CMXJetHits_v1::hitsVec1
const std::vector< uint32_t > & hitsVec1() const
get hitsVec1
xAOD::CMXJetHits_v1::hits1
uint32_t hits1() const
get hitsVec1 at peak bunch crossing
Definition: CMXJetHits_v1.cxx:111
xAOD::CMXJetHits_v1::TOTAL_FORWARD
@ TOTAL_FORWARD
Definition: CMXJetHits_v1.h:38
copySelective.source
string source
Definition: copySelective.py:32
xAOD::CMXJetHits_v1::setHitsVec1
void setHitsVec1(const std::vector< uint32_t > &)
set hitsVec1
xAOD::CMXJetHits_v1::~CMXJetHits_v1
virtual ~CMXJetHits_v1()
Default desturctor.
Definition: CMXJetHits_v1.h:48
AuxElement.h
Base class for elements of a container that can have aux data.
xAOD::operator<<
std::ostream & operator<<(std::ostream &out, const std::pair< FIRST, SECOND > &pair)
Helper print operator.
Definition: RDataSource.cxx:53
xAOD::CMXJetHits_v1::LOCAL_FORWARD
@ LOCAL_FORWARD
Definition: CMXJetHits_v1.h:37