36 double newWeight = weight;
47 this->
putElement(theContainer,the_photon,newWeight);
54 double newWeight = weight;
56 if ( this->
contains(theContainer,theIndex) )
61 this->
remove(theContainer,theIndex);
65 this->
putElement(theContainer,theIndex,newWeight);
80 return (this->
contains(theContainer,theIndex))
const Photon * photon() const
get photon directly without token
void set_photon(const PhotonContainer *theContainer, const Photon *the_photon, double weight=1)
virtual JetAssociationBase * clone() const
a clone method for the proper workings of the copy constructor
PhotonAssociation()=default
constructor
double getPhotonWeight(const Photon *the_photon) const
Navigable< PhotonContainer, double >::external_index_type index_type
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 PhotonContainer *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
Class to define the PhotonContainer.
The namespace of all packages in PhysicsAnalysis/JetTagging.