ATLAS Offline Software
Loading...
Searching...
No Matches
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
17namespace xAOD {
18
25
27 public:
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;
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
Scalar eta() const
pseudorapidity method
Base class for elements of a container that can have aux data.
Base class for elements of a container that can have aux data.
Definition AuxElement.h:483
uint8_t emEnergy() const
get emEnergy for emEnergyVec[peak] - time slice that (hopefully) contains the collision
const std::vector< uint8_t > & emEnergyVec() const
get emEnergyVec - emEnergy for all time slices
uint8_t hadSliceEnergy(unsigned int slice) const
get hadEnergy for hadEnergyVec[slice] - time slice for arbitary slice
void setEmErrorVec(const std::vector< uint32_t > &)
set emErrorVec - emError for all time slices
uint8_t hadEnergy() const
get hadEnergy for hadEnergyVec[peak] - time slice that (hopefully) contains the collision
void setPeak(uint8_t)
float phi() const
get phi (note that for L1Calo phi runs from 0 to 2pi)
CPMTower_v2()
Default constructor.
void setHadEnergyVec(const std::vector< uint8_t > &)
set hadEnergyVec - hadEnergy for all time slices
virtual ~CPMTower_v2()
Default desturctor.
Definition CPMTower_v2.h:31
void setHadErrorVec(const std::vector< uint32_t > &)
set hadErrorVec - hadError for all time slices
uint32_t hadSliceError(unsigned int slice) const
get hadError for hadErrorVec[slice] - time slice for arbitary slice
uint8_t peak() const
void setEmEnergyVec(const std::vector< uint8_t > &)
set emEnergyVec - emEnergy for all time slices
void setEta(float)
set eta
void setPhi(float)
set phi
const std::vector< uint8_t > & hadEnergyVec() const
get hadEnergyVec - hadEnergy for all time slices
const std::vector< uint32_t > & emErrorVec() const
get emErrorVec - emError for all time slices
uint32_t emError() const
uint32_t emSliceError(unsigned int slice) const
get emError for emErrorVec[slice] - time slice for arbitary slice
uint8_t emSliceEnergy(unsigned int slice) const
get emEnergy for emEnergyVec[slice] - time slice for arbitary slice
float eta() const
get eta
const std::vector< uint32_t > & hadErrorVec() const
get hadErrorVec - hadError for all time slices
uint32_t hadError() const
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
setEventNumber uint32_t
void initialize()