18 static constexpr size_t SIZE = CaloSampling::CaloSample::Unknown;
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;
60 return var[ sampling ];
64 const float theEnergy) {
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;
74 var[ sampling ] = theEnergy;
Scalar eta() const
pseudorapidity method
#define AUXSTORE_OBJECT_GETTER(CL, TYPE, NAME)
Macro creating the reader function for a complex auxiliary property.
#define AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(CL, TYPE, NAME, SETTER)
Macro creating the accessors of primitive auxiliary properties.
SG::Accessor< T, ALLOC > Accessor
Description of a trigger EM cluster.
void setEnergy(float energy)
set Energy (calibrated)
TrigEMCluster_v1()
Constructor.
CaloSampling::CaloSample CaloSample
A convenience typedef.
float energy() const
get Energy (calibrated)
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
setEt setPhi setE277 setWeta2 eta1
setEt setPhi setE277 weta2
setEt setPhi setE277 setWeta2 setEta1 e2tsts1
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(BTagging_v1, float, IP2D_pb, setIP2D_pb) AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(BTagging_v1
setEt setPhi setE277 setWeta2 setEta1 setE2tsts1 wstot
TrigCaloCluster_v1 TrigCaloCluster
Define the latest version of the trigger calorimeter cluster class.