ATLAS Offline Software
Loading...
Searching...
No Matches
xAOD::CPMTower_v2 Class Reference

Description of CPMTower_v2. More...

#include <CPMTower_v2.h>

Inheritance diagram for xAOD::CPMTower_v2:
Collaboration diagram for xAOD::CPMTower_v2:

Public Member Functions

 CPMTower_v2 ()
 Default constructor.
virtual ~CPMTower_v2 ()
 Default desturctor.
virtual void initialize (const float eta, const float phi)
 initialize
virtual void initialize (const float eta, const float phi, const std::vector< uint8_t > &emEnergyVec, const std::vector< uint8_t > &hadEnergyVec, const std::vector< uint32_t > &emErrorVec, const std::vector< uint32_t > &hadErrorVec, const uint8_t peak)
 initialize
const std::vector< uint8_t > & emEnergyVec () const
 get emEnergyVec - emEnergy for all time slices
void setEmEnergyVec (const std::vector< uint8_t > &)
 set emEnergyVec - emEnergy for all time slices
const std::vector< uint8_t > & hadEnergyVec () const
 get hadEnergyVec - hadEnergy for all time slices
void setHadEnergyVec (const std::vector< uint8_t > &)
 set hadEnergyVec - hadEnergy for all time slices
const std::vector< uint32_t > & emErrorVec () const
 get emErrorVec - emError for all time slices
void setEmErrorVec (const std::vector< uint32_t > &)
 set emErrorVec - emError for all time slices
const std::vector< uint32_t > & hadErrorVec () const
 get hadErrorVec - hadError for all time slices
void setHadErrorVec (const std::vector< uint32_t > &)
 set hadErrorVec - hadError for all time slices
float eta () const
 get eta
void setEta (float)
 set eta
float phi () const
 get phi (note that for L1Calo phi runs from 0 to 2pi)
void setPhi (float)
 set phi
uint8_t peak () const
void setPeak (uint8_t)
uint8_t emEnergy () const
 get emEnergy for emEnergyVec[peak] - time slice that (hopefully) contains the collision
uint8_t hadEnergy () const
 get hadEnergy for hadEnergyVec[peak] - time slice that (hopefully) contains the collision
uint8_t emSliceEnergy (unsigned int slice) const
 get emEnergy for emEnergyVec[slice] - time slice for arbitary slice
uint8_t hadSliceEnergy (unsigned int slice) const
 get hadEnergy for hadEnergyVec[slice] - time slice for arbitary slice
uint32_t emError () const
uint32_t hadError () const
uint32_t emSliceError (unsigned int slice) const
 get emError for emErrorVec[slice] - time slice for arbitary slice
uint32_t hadSliceError (unsigned int slice) const
 get hadError for hadErrorVec[slice] - time slice for arbitary slice

Detailed Description

Description of CPMTower_v2.

Author
John Morris john..nosp@m.morr.nosp@m.is@ce.nosp@m.rn.c.nosp@m.h
Revision
687949
Date
2015-08-06 17:48:49 +0200 (Thu, 06 Aug 2015)

Definition at line 26 of file CPMTower_v2.h.

Constructor & Destructor Documentation

◆ CPMTower_v2()

xAOD::CPMTower_v2::CPMTower_v2 ( )

Default constructor.

Definition at line 18 of file CPMTower_v2.cxx.

18 :
20 {
21 }
AuxElement(SG::AuxVectorData *container, size_t index)
Base class for elements of a container that can have aux data.

◆ ~CPMTower_v2()

virtual xAOD::CPMTower_v2::~CPMTower_v2 ( )
inlinevirtual

Default desturctor.

Definition at line 31 of file CPMTower_v2.h.

31{}

Member Function Documentation

◆ emEnergy()

uint8_t xAOD::CPMTower_v2::emEnergy ( ) const

get emEnergy for emEnergyVec[peak] - time slice that (hopefully) contains the collision

return the final ET values using the in algorithms

Definition at line 56 of file CPMTower_v2.cxx.

57 {
58 return emSliceEnergy(peak());
59 }
uint8_t peak() const
uint8_t emSliceEnergy(unsigned int slice) const
get emEnergy for emEnergyVec[slice] - time slice for arbitary slice

◆ emEnergyVec()

const std::vector< uint8_t > & xAOD::CPMTower_v2::emEnergyVec ( ) const

get emEnergyVec - emEnergy for all time slices

◆ emError()

uint32_t xAOD::CPMTower_v2::emError ( ) const

Definition at line 82 of file CPMTower_v2.cxx.

83 {
84 return emSliceError(peak());
85 }
uint32_t emSliceError(unsigned int slice) const
get emError for emErrorVec[slice] - time slice for arbitary slice

◆ emErrorVec()

const std::vector< uint32_t > & xAOD::CPMTower_v2::emErrorVec ( ) const

get emErrorVec - emError for all time slices

◆ emSliceEnergy()

uint8_t xAOD::CPMTower_v2::emSliceEnergy ( unsigned int slice) const

get emEnergy for emEnergyVec[slice] - time slice for arbitary slice

Definition at line 66 of file CPMTower_v2.cxx.

67 {
68 if( slice < emEnergyVec().size() ){
69 return emEnergyVec()[ slice ];
70 }
71 return 0;
72 }
size_t size() const
Number of registered mappings.
const std::vector< uint8_t > & emEnergyVec() const
get emEnergyVec - emEnergy for all time slices

◆ emSliceError()

uint32_t xAOD::CPMTower_v2::emSliceError ( unsigned int slice) const

get emError for emErrorVec[slice] - time slice for arbitary slice

Definition at line 92 of file CPMTower_v2.cxx.

93 {
94 if( slice < emErrorVec().size() ){
95 return emErrorVec()[ slice ];
96 }
97 return 0;
98 }
const std::vector< uint32_t > & emErrorVec() const
get emErrorVec - emError for all time slices

◆ eta()

float xAOD::CPMTower_v2::eta ( ) const

get eta

◆ hadEnergy()

uint8_t xAOD::CPMTower_v2::hadEnergy ( ) const

get hadEnergy for hadEnergyVec[peak] - time slice that (hopefully) contains the collision

Definition at line 61 of file CPMTower_v2.cxx.

62 {
63 return hadSliceEnergy(peak());
64 }
uint8_t hadSliceEnergy(unsigned int slice) const
get hadEnergy for hadEnergyVec[slice] - time slice for arbitary slice

◆ hadEnergyVec()

const std::vector< uint8_t > & xAOD::CPMTower_v2::hadEnergyVec ( ) const

get hadEnergyVec - hadEnergy for all time slices

◆ hadError()

uint32_t xAOD::CPMTower_v2::hadError ( ) const

Definition at line 87 of file CPMTower_v2.cxx.

88 {
89 return hadSliceError(peak());
90 }
uint32_t hadSliceError(unsigned int slice) const
get hadError for hadErrorVec[slice] - time slice for arbitary slice

◆ hadErrorVec()

const std::vector< uint32_t > & xAOD::CPMTower_v2::hadErrorVec ( ) const

get hadErrorVec - hadError for all time slices

◆ hadSliceEnergy()

uint8_t xAOD::CPMTower_v2::hadSliceEnergy ( unsigned int slice) const

get hadEnergy for hadEnergyVec[slice] - time slice for arbitary slice

Definition at line 74 of file CPMTower_v2.cxx.

75 {
76 if( slice < hadEnergyVec().size() ){
77 return hadEnergyVec()[ slice ];
78 }
79 return 0;
80 }
const std::vector< uint8_t > & hadEnergyVec() const
get hadEnergyVec - hadEnergy for all time slices

◆ hadSliceError()

uint32_t xAOD::CPMTower_v2::hadSliceError ( unsigned int slice) const

get hadError for hadErrorVec[slice] - time slice for arbitary slice

Definition at line 100 of file CPMTower_v2.cxx.

101 {
102 if( slice < hadErrorVec().size() ){
103 return hadErrorVec()[ slice ];
104 }
105 return 0;
106 }
const std::vector< uint32_t > & hadErrorVec() const
get hadErrorVec - hadError for all time slices

◆ initialize() [1/2]

void xAOD::CPMTower_v2::initialize ( const float eta,
const float phi )
virtual

initialize

Definition at line 24 of file CPMTower_v2.cxx.

25 {
26 setEta( eta );
27 setPhi( phi );
28 }
float phi() const
get phi (note that for L1Calo phi runs from 0 to 2pi)
void setEta(float)
set eta
void setPhi(float)
set phi
float eta() const
get eta

◆ initialize() [2/2]

void xAOD::CPMTower_v2::initialize ( const float eta,
const float phi,
const std::vector< uint8_t > & emEnergyVec,
const std::vector< uint8_t > & hadEnergyVec,
const std::vector< uint32_t > & emErrorVec,
const std::vector< uint32_t > & hadErrorVec,
const uint8_t peak )
virtual

initialize

Definition at line 31 of file CPMTower_v2.cxx.

37 {
38 setEta( eta );
39 setPhi( phi );
44 setPeak( peak );
45 }
void setEmErrorVec(const std::vector< uint32_t > &)
set emErrorVec - emError for all time slices
void setPeak(uint8_t)
void setHadEnergyVec(const std::vector< uint8_t > &)
set hadEnergyVec - hadEnergy for all time slices
void setHadErrorVec(const std::vector< uint32_t > &)
set hadErrorVec - hadError for all time slices
void setEmEnergyVec(const std::vector< uint8_t > &)
set emEnergyVec - emEnergy for all time slices

◆ peak()

uint8_t xAOD::CPMTower_v2::peak ( ) const

◆ phi()

float xAOD::CPMTower_v2::phi ( ) const

get phi (note that for L1Calo phi runs from 0 to 2pi)

◆ setEmEnergyVec()

void xAOD::CPMTower_v2::setEmEnergyVec ( const std::vector< uint8_t > & )

set emEnergyVec - emEnergy for all time slices

◆ setEmErrorVec()

void xAOD::CPMTower_v2::setEmErrorVec ( const std::vector< uint32_t > & )

set emErrorVec - emError for all time slices

◆ setEta()

void xAOD::CPMTower_v2::setEta ( float )

set eta

◆ setHadEnergyVec()

void xAOD::CPMTower_v2::setHadEnergyVec ( const std::vector< uint8_t > & )

set hadEnergyVec - hadEnergy for all time slices

◆ setHadErrorVec()

void xAOD::CPMTower_v2::setHadErrorVec ( const std::vector< uint32_t > & )

set hadErrorVec - hadError for all time slices

◆ setPeak()

void xAOD::CPMTower_v2::setPeak ( uint8_t )

◆ setPhi()

void xAOD::CPMTower_v2::setPhi ( float )

set phi


The documentation for this class was generated from the following files: