25 else if (this->
size() > 1)
36 double newWeight = weight;
38 if ( this->
contains(the_inav4momentum) )
43 this->
remove(the_inav4momentum);
47 this->
putElement(theContainer,the_inav4momentum,newWeight);
54 double newWeight = weight;
56 if ( this->
contains(theContainer,theIndex) )
61 this->
remove(theContainer,theIndex);
65 this->
putElement(theContainer,theIndex,newWeight);
71 return (this->
contains(the_inav4momentum) )
80 return (this->
contains(theContainer,theIndex))
DataVector< INavigable4Momentum > INavigable4MomentumCollection
void setName(const name_t &name)
const name_t & name() const
double getinav4momentumWeight(const INavigable4Momentum *the_inav4momentum) const
JetINav4MomAssociation()
constructor
void set_inav4momentum(const INavigable4MomentumCollection *theContainer, const INavigable4Momentum *the_inav4momentum, double weight=1)
virtual JetAssociationBase * clone() const
a clone method for the proper workings of the copy constructor
const INavigable4Momentum * inav4momentum() const
get jet directly without token
Navigable< INavigable4MomentumCollection, double >::external_index_type index_type
const constituent_coll & getConstituents() const
virtual unsigned int size() const
virtual object_iter begin() const
bool remove(const constituent_type *aConstituent)
void putElement(const INavigable4MomentumCollection *objectContainer, const constituent_type *constituentObject, const double &objectParameter=double(), size_t sizeHint=0)
double getParameter(const constituent_type *aConstituent) const
bool contains(const constituent_type *aConstituent) const
virtual const constituent_type * getConstituentPtr(constituent_iter iter) const