ATLAS Offline Software
TrigEMCluster_v1.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 // $Id: TrigEMCluster_v1.cxx 596561 2014-05-12 12:10:42Z krasznaa $
6 
7 // System include(s):
8 #include <iostream>
9 
10 // xAOD include(s):
12 
13 // Local include(s):
15 
16 namespace xAOD {
17 
18  static constexpr size_t SIZE = CaloSampling::CaloSample::Unknown;
19 
20  // Constructor
22 
24  setEnergy )
26  setEt )
28  setEta )
30  setPhi )
32  setE237 )
34  setE277 )
36  setFracs1 )
38  setWeta2 )
40  setEhad1 )
42  setEta1 )
44  setEmaxs1 )
46  setE2tsts1 )
48  setE233 )
50  setWstot )
51 
52  float TrigEMCluster_v1::energy(const CaloSample sampling) const {
53  static const Accessor< std::vector <float > > eAcc("energySample");
54  const std::vector<float>& var = eAcc( *this );
55  if( var.size() <= static_cast< size_t >( sampling ) ) {
56  std::cerr << "xAOD::TrigEMCluster_v1::energy ERROR Invalid/unknown "
57  << "sampling (" << sampling << ") requested" << std::endl;
58  return 0;
59  }
60  return var[ sampling ];
61  }
62 
64  const float theEnergy) {
65  static const Accessor< std::vector <float > > eAcc("energySample");
66  std::vector<float>& var = eAcc( *this );
67  if( var.size() < SIZE ) var.resize( SIZE );
68  if( var.size() <= static_cast< size_t >( sampling ) ) {
69  std::cerr << "xAOD::TrigEMCluster_v1::setEnergy ERROR "
70  << "Invalid/unknown sampling (" << sampling
71  << ") requested" << std::endl;
72  return false;
73  }
74  var[ sampling ] = theEnergy;
75  return true;
76  }
77 
78  AUXSTORE_OBJECT_GETTER( TrigEMCluster_v1, std::vector< float >,
79  energySample )
80 
81 } // namespace xAOD
xAOD::EgammaParameters::ehad1
@ ehad1
E leakage into 1st sampling of had calo (CaloSampling::HEC0 + CaloSampling::TileBar0 + CaloSampling::...
Definition: EgammaEnums.h:48
xAOD::EgammaParameters::e233
@ e233
uncalibrated energy (sum of cells) of the middle sampling in a rectangle of size 3x3 (in cell units e...
Definition: EgammaEnums.h:68
xAOD::AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(BTagging_v1, float, IP2D_pb, setIP2D_pb) AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(BTagging_v1
GetLCDefs::Unknown
@ Unknown
Definition: GetLCDefs.h:21
beamspotnt.var
var
Definition: bin/beamspotnt.py:1394
et
Extra patterns decribing particle interation process.
SG::Accessor
Helper class to provide type-safe access to aux data.
Definition: Control/AthContainers/AthContainers/Accessor.h:68
xAOD::TrigEMCluster_v1::setEnergy
void setEnergy(float energy)
set Energy (calibrated)
AuxStoreAccessorMacros.h
xAOD::TrigEMCluster_v1::TrigEMCluster_v1
TrigEMCluster_v1()
Constructor
Definition: TrigEMCluster_v1.cxx:21
xAOD::eta1
setEt setPhi setE277 setWeta2 eta1
Definition: TrigEMCluster_v1.cxx:41
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
xAOD::wstot
setEt setPhi setE277 setWeta2 setEta1 setE2tsts1 wstot
Definition: TrigEMCluster_v1.cxx:49
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:560
Amg::setPhi
Amg::RotationMatrix3D setPhi(Amg::RotationMatrix3D mat, double angle, int convention=0)
Definition: EulerAnglesHelpers.h:102
xAOD::phi
setEt phi
Definition: TrigEMCluster_v1.cxx:29
ParticleGun_FastCalo_ChargeFlip_Config.energy
energy
Definition: ParticleGun_FastCalo_ChargeFlip_Config.py:78
xAOD::e2tsts1
setEt setPhi setE277 setWeta2 setEta1 e2tsts1
Definition: TrigEMCluster_v1.cxx:45
CaloSampling::CaloSample
CaloSample
Definition: Calorimeter/CaloGeoHelpers/CaloGeoHelpers/CaloSampling.h:22
xAOD::e277
setEt setPhi e277
Definition: TrigEMCluster_v1.cxx:33
PowhegPythia8EvtGen_jetjet.theEnergy
int theEnergy
Definition: PowhegPythia8EvtGen_jetjet.py:12
TrigEMCluster_v1.h
xAOD::weta2
setEt setPhi setE277 weta2
Definition: TrigEMCluster_v1.cxx:37
xAOD::AUXSTORE_OBJECT_GETTER
AUXSTORE_OBJECT_GETTER(TrigComposite_v1, std::vector< std::string >, linkColNames) AUXSTORE_OBJECT_GETTER(TrigComposite_v1
xAOD::TrigCaloCluster_v1
Description of a trigger calorimeter cluster.
Definition: TrigCaloCluster_v1.h:28
xAOD::EgammaParameters::e237
@ e237
uncalibrated energy (sum of cells) of the middle sampling in a rectangle of size 3x7
Definition: EgammaEnums.h:77
xAOD::TrigEMCluster_v1
Description of a trigger EM cluster.
Definition: TrigEMCluster_v1.h:28
xAOD::EgammaParameters::emaxs1
@ emaxs1
energy of strip with maximal energy deposit
Definition: EgammaEnums.h:145
xAOD::EgammaParameters::fracs1
@ fracs1
shower shape in the shower core : [E(+/-3)-E(+/-1)]/E(+/-1), where E(+/-n) is the energy in ± n strip...
Definition: EgammaEnums.h:111