50 double newWeight = weight;
57 this->
remove(the_electron);
61 this->
putElement(theContainer,the_electron,newWeight);
69 double newWeight = weight;
71 if ( this->
contains(theContainer,theIndex) )
76 this->
remove(theContainer,theIndex);
80 this->
putElement(theContainer,theIndex,newWeight);
87 return (this->
contains(the_electron) )
96 return (this->
contains(theContainer,theIndex))
virtual NameType name() const
returns the infoType of the info objects.
virtual void setName(NameType &name)
method to set the name
virtual IConstituent * clone() const
a clone method for the proper workings of the copy constructor
const Electron * electron() const
get electron directly without token
Navigable< ElectronContainer, double >::external_index_type index_type
void set_electron(const ElectronContainer *theContainer, const Electron *the_electron, double weight=1)
double getElectronWeight(const Electron *the_electron) const
ElectronConstituent()=default
Default constructor.
Class IConstituent: This is the abstract base class for additional jet constituents to be put into th...
Class to define the ElectronContainer.
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.
std::string NameType
string to identify the constituent