ATLAS Offline Software
CPMTower_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: CPMTower_v1.h 631127 2014-11-26 09:54:48Z gwatts $
8 #ifndef XAODTRIGL1CALO_VERSIONS_CPMTOWER_V1_H
9 #define XAODTRIGL1CALO_VERSIONS_CPMTOWER_V1_H
10 
11 #include "AthLinks/ElementLink.h"
13 
14 namespace xAOD {
15 
22 
23  class CPMTower_v1 : public SG::AuxElement{
24  public:
25  // Default constructor
26  CPMTower_v1();
27 
29  const std::vector<int>& emEnergyVec() const;
31  void setEmEnergyVec(const std::vector<int>&);
32 
34  const std::vector<int>& hadEnergyVec() const;
36  void setHadEnergyVec(const std::vector<int>&);
37 
39  const std::vector<int>& emErrorVec() const;
41  void setEmErrorVec(const std::vector<int>&);
42 
44  const std::vector<int>& hadErrorVec() const;
46  void setHadErrorVec(const std::vector<int>&);
47 
49  float eta() const;
51  void setEta(float);
52 
54  float phi() const;
56  void setPhi(float);
57 
58  int peak() const;
59  void setPeak(int);
60 
61 
63  int emEnergy() const;
65  int hadEnergy() const;
66 
68  int emSliceEnergy(int slice) const;
70  int hadSliceEnergy(int slice) const;
71 
72  // get emError for emErrorVec[peak] - time slice that (hopefully) contains the collision
73  int emError() const;
74  // get hadError for hadErrorVec[peak] - time slice that (hopefully) contains the collision
75  int hadError() const;
76 
78  int emSliceError(int slice) const;
80  int hadSliceError(int slice) const;
81 
82  };
83 } // namespace xAOD
84 
85 #endif // XAODTRIGL1CALO_VERSIONS_CPMTOWER_V1_H
xAOD::CPMTower_v1::emError
int emError() const
Definition: CPMTower_v1.cxx:58
xAOD::CPMTower_v1::emEnergy
int emEnergy() const
get emEnergy for emEnergyVec[peak] - time slice that (hopefully) contains the collision
Definition: CPMTower_v1.cxx:32
xAOD::CPMTower_v1::hadEnergyVec
const std::vector< int > & hadEnergyVec() const
get hadEnergyVec - hadEnergy for all time slices
SG::AuxElement
Base class for elements of a container that can have aux data.
Definition: AuxElement.h:483
xAOD::CPMTower_v1::emEnergyVec
const std::vector< int > & emEnergyVec() const
get emEnergyVec - emEnergy for all time slices
xAOD::CPMTower_v1
Description of CPMTower_v1.
Definition: CPMTower_v1.h:23
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
xAOD::CPMTower_v1::setHadErrorVec
void setHadErrorVec(const std::vector< int > &)
set hadErrorVec - hadError for all time slices
xAOD::CPMTower_v1::emSliceError
int emSliceError(int slice) const
get emError for emErrorVec[slice] - time slice for arbitary slice
Definition: CPMTower_v1.cxx:68
xAOD::CPMTower_v1::setEmEnergyVec
void setEmEnergyVec(const std::vector< int > &)
set emEnergyVec - emEnergy for all time slices
xAOD::CPMTower_v1::setPhi
void setPhi(float)
set phi
xAOD::CPMTower_v1::hadSliceError
int hadSliceError(int slice) const
get hadError for hadErrorVec[slice] - time slice for arbitary slice
Definition: CPMTower_v1.cxx:76
xAOD::CPMTower_v1::phi
float phi() const
get phi (note that for L1Calo phi runs from 0 to 2pi)
xAOD::CPMTower_v1::setEmErrorVec
void setEmErrorVec(const std::vector< int > &)
set emErrorVec - emError for all time slices
xAOD::CPMTower_v1::setEta
void setEta(float)
set eta
perfmonmt-refit.slice
slice
Definition: perfmonmt-refit.py:52
xAOD::CPMTower_v1::setHadEnergyVec
void setHadEnergyVec(const std::vector< int > &)
set hadEnergyVec - hadEnergy for all time slices
xAOD::CPMTower_v1::setPeak
void setPeak(int)
xAOD::CPMTower_v1::eta
float eta() const
get eta
xAOD::CPMTower_v1::hadSliceEnergy
int hadSliceEnergy(int slice) const
get hadEnergy for hadEnergyVec[slice] - time slice for arbitary slice
Definition: CPMTower_v1.cxx:50
xAOD::CPMTower_v1::hadError
int hadError() const
Definition: CPMTower_v1.cxx:63
xAOD::CPMTower_v1::hadEnergy
int hadEnergy() const
get hadEnergy for hadEnergyVec[peak] - time slice that (hopefully) contains the collision
Definition: CPMTower_v1.cxx:37
xAOD::CPMTower_v1::emErrorVec
const std::vector< int > & emErrorVec() const
get emErrorVec - emError for all time slices
xAOD::CPMTower_v1::peak
int peak() const
xAOD::CPMTower_v1::CPMTower_v1
CPMTower_v1()
Definition: CPMTower_v1.cxx:18
xAOD::CPMTower_v1::emSliceEnergy
int emSliceEnergy(int slice) const
get emEnergy for emEnergyVec[slice] - time slice for arbitary slice
Definition: CPMTower_v1.cxx:42
AuxElement.h
Base class for elements of a container that can have aux data.
xAOD::CPMTower_v1::hadErrorVec
const std::vector< int > & hadErrorVec() const
get hadErrorVec - hadError for all time slices