36 double newWeight = weight;
43 this->
remove(the_electron);
47 this->
putElement(theContainer,the_electron,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_electron) )
80 return (this->
contains(theContainer,theIndex))
void set_electron(const ElectronContainer *theContainer, const Electron *the_electron, double weight=1)
virtual JetAssociationBase * clone() const
a clone method for the proper workings of the copy constructor
Navigable< ElectronContainer, double >::external_index_type index_type
const Electron * electron() const
get electron directly without token
double getElectronWeight(const Electron *the_electron) const
ElectronAssociation()=default
constructor
Class to define the ElectronContainer.
void setName(const name_t &name)
const name_t & name() const
const constituent_coll & getConstituents() const
virtual unsigned int size() const
virtual object_iter begin() const
bool remove(const constituent_type *aConstituent)
void putElement(const ElectronContainer *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
The namespace of all packages in PhysicsAnalysis/JetTagging.