70 if( !
nameAcc( *this ).empty()) {
71 throw std::runtime_error(
"Attempt to redefine component list for "
72 "xAOD::TrigMissingET object" );
76 nameAcc( *
this ) = componentNames;
79 exAcc( *this ).resize( componentNames.size(), 0.0 );
80 eyAcc( *this ).resize( componentNames.size(), 0.0 );
81 ezAcc( *this ).resize( componentNames.size(), 0.0 );
82 sumEtAcc( *this ).resize( componentNames.size(), 0.0 );
83 sumEAcc( *this ).resize( componentNames.size(), 0.0 );
84 calib0Acc( *this ).resize( componentNames.size(), 0.0 );
85 calib1Acc( *this ).resize( componentNames.size(), 1.0 );
87 statusAcc( *this ).resize( componentNames.size(), 0 );
96 const std::string&
str ) {
104 return nameAcc( *this ).size();
#define AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(CL, TYPE, NAME, SETTER)
Macro creating the accessors of primitive auxiliary properties.
AuxElement()
Default constructor.
Class holding the Missing ET trigger fex results.
void setSumEtComponent(unsigned int index, float value)
Set SumEt.
void setExComponent(unsigned int index, float value)
Set the x component fo the energy of a component.
void setNameOfComponent(unsigned int index, const std::string &str)
Set the name of a component.
void setUsedChannelsComponent(unsigned int index, float value)
Set used Channels.
void setSumOfSignsComponent(unsigned int index, float value)
Set SumOfSigns.
float exComponent(unsigned int index) const
Get the x component fo the energy of a component.
const std::string & nameOfComponent(unsigned int index) const
Get the name of a component.
float eyComponent(unsigned int index) const
Get the y component fo the energy of a component.
void setCalib1Component(unsigned int index, float value)
Set Calib1.
float calib0Component(unsigned int index) const
Get Calib0.
float calib1Component(unsigned int index) const
Get Calib1.
unsigned int getNumberOfComponents() const
Get the number of components.
float ezComponent(unsigned int index) const
Get the z component fo the energy of a component.
void setSumEComponent(unsigned int index, float value)
Set SumE.
void setCalib0Component(unsigned int index, float value)
Set Calib0.
short statusComponent(unsigned int index) const
Get Status.
TrigMissingET_v1()
Defaut constructor.
void setStatusComponent(unsigned int index, float value)
Set Status.
float sumOfSignsComponent(unsigned int index) const
Get SumOfSigns.
float sumEComponent(unsigned int index) const
Get SumE.
void setEyComponent(unsigned int index, float value)
Set the y component fo the energy of a component.
void defineComponents(const std::vector< std::string > &componentNames)
Define each of the components by name.
void setEzComponent(unsigned int index, float value)
Set the z component fo the energy of a component.
float sumEtComponent(unsigned int index) const
Get SumEt.
unsigned short usedChannelsComponent(unsigned int index) const
Get used Channels.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
static const SG::AuxElement::Accessor< std::vector< float > > calib0Acc("calib0Component")
static const SG::AuxElement::Accessor< std::string > nameAcc("name")
static const SG::AuxElement::Accessor< std::vector< float > > sumEtAcc("sumEtComponent")
static const SG::AuxElement::Accessor< std::vector< unsigned short > > usedchannelsAcc("usedChannelsComponent")
static const SG::AuxElement::Accessor< std::vector< float > > exAcc("exComponent")
static const SG::AuxElement::Accessor< std::vector< float > > calib1Acc("calib1Component")
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(BTagging_v1, float, IP2D_pb, setIP2D_pb) AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(BTagging_v1
static const SG::AuxElement::Accessor< std::vector< float > > ezAcc("ezComponent")
static const SG::AuxElement::Accessor< std::vector< float > > sumOfSignsAcc("sumOfSignsComponent")
static const SG::AuxElement::Accessor< std::vector< float > > sumEAcc("sumEComponent")
static const SG::AuxElement::Accessor< std::vector< short > > statusAcc("statusComponent")
static const SG::AuxElement::Accessor< std::vector< float > > eyAcc("eyComponent")