ATLAS Offline Software
CPMTower_v2.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: CPMTower_v2.h 687949 2015-08-06 15:48:49Z amazurov $
8 #ifndef XAODTRIGL1CALO_VERSIONS_CPMTOWER_V2_H
9 #define XAODTRIGL1CALO_VERSIONS_CPMTOWER_V2_H
10 
11 #include "AthLinks/ElementLink.h"
13 
14 // System include(s):
15 #include <stdint.h>
16 
17 namespace xAOD {
18 
25 
26  class CPMTower_v2 : public SG::AuxElement{
27  public:
29  CPMTower_v2();
31  virtual ~CPMTower_v2(){}
32 
34  virtual void initialize(const float eta,const float phi);
35 
37  virtual void initialize(const float eta,const float phi,
38  const std::vector<uint8_t>& emEnergyVec,
39  const std::vector<uint8_t>& hadEnergyVec,
40  const std::vector<uint32_t>& emErrorVec,
41  const std::vector<uint32_t>& hadErrorVec,
42  const uint8_t peak);
43 
45  const std::vector<uint8_t>& emEnergyVec() const;
47  void setEmEnergyVec(const std::vector<uint8_t>&);
48 
50  const std::vector<uint8_t>& hadEnergyVec() const;
52  void setHadEnergyVec(const std::vector<uint8_t>&);
53 
55  const std::vector<uint32_t>& emErrorVec() const;
57  void setEmErrorVec(const std::vector<uint32_t>&);
58 
60  const std::vector<uint32_t>& hadErrorVec() const;
62  void setHadErrorVec(const std::vector<uint32_t>&);
63 
65  float eta() const;
67  void setEta(float);
68 
70  float phi() const;
72  void setPhi(float);
73 
74  uint8_t peak() const;
75  void setPeak(uint8_t);
76 
77 
79  uint8_t emEnergy() const;
81  uint8_t hadEnergy() const;
82 
84  uint8_t emSliceEnergy(unsigned int slice) const;
86  uint8_t hadSliceEnergy(unsigned int slice) const;
87 
88  // get emError for emErrorVec[peak] - time slice that (hopefully) contains the collision
89  uint32_t emError() const;
90  // get hadError for hadErrorVec[peak] - time slice that (hopefully) contains the collision
91  uint32_t hadError() const;
92 
94  uint32_t emSliceError(unsigned int slice) const;
96  uint32_t hadSliceError(unsigned int slice) const;
97 
98  };
99 } // namespace xAOD
100 
101 #endif // XAODTRIGL1CALO_VERSIONS_CPMTOWER_V2_H
xAOD::CPMTower_v2::phi
float phi() const
get phi (note that for L1Calo phi runs from 0 to 2pi)
xAOD::uint8_t
uint8_t
Definition: Muon_v1.cxx:575
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
xAOD::CPMTower_v2::hadSliceEnergy
uint8_t hadSliceEnergy(unsigned int slice) const
get hadEnergy for hadEnergyVec[slice] - time slice for arbitary slice
Definition: CPMTower_v2.cxx:74
SG::AuxElement
Base class for elements of a container that can have aux data.
Definition: AuxElement.h:446
xAOD::CPMTower_v2::eta
float eta() const
get eta
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
xAOD::CPMTower_v2::setHadEnergyVec
void setHadEnergyVec(const std::vector< uint8_t > &)
set hadEnergyVec - hadEnergy for all time slices
xAOD::CPMTower_v2::hadSliceError
uint32_t hadSliceError(unsigned int slice) const
get hadError for hadErrorVec[slice] - time slice for arbitary slice
Definition: CPMTower_v2.cxx:100
perfmonmt-refit.slice
slice
Definition: perfmonmt-refit.py:52
xAOD::CPMTower_v2::emError
uint32_t emError() const
Definition: CPMTower_v2.cxx:82
xAOD::CPMTower_v2::hadEnergyVec
const std::vector< uint8_t > & hadEnergyVec() const
get hadEnergyVec - hadEnergy for all time slices
xAOD::CPMTower_v2::emEnergyVec
const std::vector< uint8_t > & emEnergyVec() const
get emEnergyVec - emEnergy for all time slices
xAOD::CPMTower_v2::setHadErrorVec
void setHadErrorVec(const std::vector< uint32_t > &)
set hadErrorVec - hadError for all time slices
xAOD::CPMTower_v2::setEmErrorVec
void setEmErrorVec(const std::vector< uint32_t > &)
set emErrorVec - emError for all time slices
xAOD::CPMTower_v2::CPMTower_v2
CPMTower_v2()
Default constructor.
Definition: CPMTower_v2.cxx:18
xAOD::CPMTower_v2::peak
uint8_t peak() const
xAOD::CPMTower_v2::emErrorVec
const std::vector< uint32_t > & emErrorVec() const
get emErrorVec - emError for all time slices
xAOD::CPMTower_v2::initialize
virtual void initialize(const float eta, const float phi)
initialize
Definition: CPMTower_v2.cxx:24
xAOD::CPMTower_v2::emSliceError
uint32_t emSliceError(unsigned int slice) const
get emError for emErrorVec[slice] - time slice for arbitary slice
Definition: CPMTower_v2.cxx:92
xAOD::CPMTower_v2::~CPMTower_v2
virtual ~CPMTower_v2()
Default desturctor.
Definition: CPMTower_v2.h:31
xAOD::CPMTower_v2::emSliceEnergy
uint8_t emSliceEnergy(unsigned int slice) const
get emEnergy for emEnergyVec[slice] - time slice for arbitary slice
Definition: CPMTower_v2.cxx:66
xAOD::CPMTower_v2::hadError
uint32_t hadError() const
Definition: CPMTower_v2.cxx:87
xAOD::CPMTower_v2::setPeak
void setPeak(uint8_t)
xAOD::CPMTower_v2::hadErrorVec
const std::vector< uint32_t > & hadErrorVec() const
get hadErrorVec - hadError for all time slices
xAOD::CPMTower_v2::setEta
void setEta(float)
set eta
xAOD::CPMTower_v2::setPhi
void setPhi(float)
set phi
xAOD::CPMTower_v2::setEmEnergyVec
void setEmEnergyVec(const std::vector< uint8_t > &)
set emEnergyVec - emEnergy for all time slices
xAOD::CPMTower_v2::hadEnergy
uint8_t hadEnergy() const
get hadEnergy for hadEnergyVec[peak] - time slice that (hopefully) contains the collision
Definition: CPMTower_v2.cxx:61
AuxElement.h
Base class for elements of a container that can have aux data.
xAOD::CPMTower_v2::emEnergy
uint8_t emEnergy() const
get emEnergy for emEnergyVec[peak] - time slice that (hopefully) contains the collision
Definition: CPMTower_v2.cxx:56
xAOD::CPMTower_v2
Description of CPMTower_v2.
Definition: CPMTower_v2.h:26