39 int modifiedEmEnergy =
emEnergy() + emEnergyIn;
46 std::vector<int> modifiedEmEnergyVec;
47 const std::vector<int> currentEmEnergyVec =
emEnergyVec();
48 for(std::vector<int>::const_iterator i=currentEmEnergyVec.begin();i!=currentEmEnergyVec.end();++i){
49 modifiedEmEnergyVec.push_back( (*i) );
51 modifiedEmEnergyVec[
peak() ] = modifiedEmEnergy;
59 int modifiedHadEnergy =
hadEnergy() + hadEnergyIn;
66 std::vector<int> modifiedHadEnergyVec;
67 const std::vector<int> currentHadEnergyVec =
hadEnergyVec();
68 for(std::vector<int>::const_iterator i=currentHadEnergyVec.begin();i!=currentHadEnergyVec.end();++i){
69 modifiedHadEnergyVec.push_back( (*i) );
71 modifiedHadEnergyVec[
peak() ] = modifiedHadEnergy;
87 std::vector<int> modifiedEmEnergyVec;
88 const std::vector<int> currentEmEnergyVec =
emEnergyVec();
89 for(std::vector<int>::const_iterator i=currentEmEnergyVec.begin();i!=currentEmEnergyVec.end();++i){
90 modifiedEmEnergyVec.push_back( (*i) );
92 modifiedEmEnergyVec[ slice ] = modifiedEmEnergy;
100 std::vector<int> modifiedHadEnergyVec;
101 const std::vector<int> currentHadEnergyVec =
hadEnergyVec();
102 for(std::vector<int>::const_iterator i=currentHadEnergyVec.begin();i!=currentHadEnergyVec.end();++i){
103 modifiedHadEnergyVec.push_back( (*i) );
105 modifiedHadEnergyVec[ slice ] = modifiedHadEnergy;
109 int modifiedEmError =
emErrorVec()[ slice ] + emErrorIn;
110 std::vector<int> modifiedEmErrorVec;
111 const std::vector<int> currentEmErrorVec =
emErrorVec();
112 for(std::vector<int>::const_iterator i=currentEmErrorVec.begin();i!=currentEmErrorVec.end();++i){
113 modifiedEmErrorVec.push_back( (*i) );
115 modifiedEmErrorVec[ slice ] = modifiedEmError;
119 int modifiedHadError =
hadErrorVec()[ slice ] + hadErrorIn;
120 std::vector<int> modifiedHadErrorVec;
121 const std::vector<int> currentHadErrorVec =
hadErrorVec();
122 for(std::vector<int>::const_iterator i=currentHadErrorVec.begin();i!=currentHadErrorVec.end();++i){
123 modifiedHadErrorVec.push_back( (*i) );
125 modifiedHadErrorVec[ slice ] = modifiedHadError;
129 int modifiedLinkError =
linkErrorVec()[ slice ] + linkErrorIn;
130 std::vector<int> modifiedLinkErrorVec;
131 const std::vector<int> currentLinkErrorVec =
linkErrorVec();
132 for(std::vector<int>::const_iterator i=currentLinkErrorVec.begin();i!=currentLinkErrorVec.end();++i){
133 modifiedLinkErrorVec.push_back( (*i) );
135 modifiedLinkErrorVec[ slice ] = modifiedLinkError;
170 if( slice >= 0 && slice < (
int)
emEnergyVec().size() ) {
181 if( slice >= 0 && slice < (
int)
hadEnergyVec().size() ) {
Scalar eta() const
pseudorapidity method
#define AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(CL, TYPE, NAME, SETTER)
Macro creating the accessors of primitive auxiliary properties.
#define AUXSTORE_OBJECT_SETTER_AND_GETTER(CL, TYPE, NAME, SETTER)
Macro creating the accessors of complex auxiliary properties.
AuxElement()
Default constructor.
Description of JetElement_v1.
const std::vector< int > & emEnergyVec() const
get emEnergyVec - emEnergy for all time slices
void addEnergy(int emEnergy, int hadEnergy)
Add ET to triggered time slice.
const std::vector< int > & linkErrorVec() const
get linkErrorVec - linkError for all time slices
bool isHadSaturated() const
is Had component of JetElement saturated?
int hadSliceEnergy(int slice) const
get hadEnery for hadEnergyVec[slice] - time slice for arbitary slice
void setEmEnergyVec(const std::vector< int > &)
set emEnergyVec - emEnergy for all time slices
void setHadErrorVec(const std::vector< int > &)
set hadErrorVec - hadError for all time slices
int hadError() const
get hadError for hadErrorVec[peak] - time slice that (hopefully) contains the collision
void setLinkErrorVec(const std::vector< int > &)
set linkErrorVec - linkError for all time slices
bool isEmSaturated() const
is EM component of JetElement saturated?
const std::vector< int > & emErrorVec() const
get emErrorVec - emError for all time slices
int linkError() const
get linkError for linkErrorVec[peak] - time slice that (hopefully) contains the collision
int energy() const
get total energy. returns emEnergy() + hadEnergy()
void setEmErrorVec(const std::vector< int > &)
set emErrorVec - emError for all time slices
static const int m_saturationThreshold
int sliceEnergy(int slice) const
get total energy. returns emSliceEnergy(slice) + hadSliceEnergy(slice)
void addSlice(int slice, int emEnergy, int hadEnergy, int emError, int hadError, int linkError)
Add ET values to specified slice.
static const int m_layerSaturationThreshold
int emError() const
get emError for emErrorVec[peak] - time slice that (hopefully) contains the collision
const std::vector< int > & hadErrorVec() const
get hadErrorVec - hadError for all time slices
int emEnergy() const
get emEnery for emEnergyVec[peak] - time slice that (hopefully) contains the collision
const std::vector< int > & hadEnergyVec() const
get hadEnergyVec - hadEnergy for all time slices
int hadEnergy() const
get hadEnery for hadEnergyVec[peak] - time slice that (hopefully) contains the collision
bool isSaturated() const
is JetElement saturated?
void setHadEnergyVec(const std::vector< int > &)
set hadEnergyVec - hadEnergy for all time slices
int emSliceEnergy(int slice) const
get emEnery for emEnergyVec[slice] - time slice for arbitary slice
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.