46 else if (this->
size() > 1)
57 double newWeight = weight;
68 this->
putElement(theContainer,the_jet,newWeight);
76 double newWeight = weight;
78 if ( this->
contains(theContainer,theIndex) )
83 this->
remove(theContainer,theIndex);
87 this->
putElement(theContainer,theIndex,newWeight);
103 return (this->
contains(theContainer,theIndex))
Class IConstituent: This is the abstract base class for additional jet constituents to be put into th...
virtual void setName(NameType &name)
to set the name
void set_jet(const JetCollection *theContainer, const Jet *the_jet, double weight=1)
const Jet * jet() const
get jet directly without token
std::vector< double > m_energyInSample
void set_wtCryo(double)
Set wtCryoLocal defined as wtCryoLocal = wtCryo / sqrt(average_TileBar0_weight * average_EMB3_weight)
double getJetWeight(const Jet *the_jet) const
void set_energyInSample(CaloSampling::CaloSample, double)
set energy in sample WITH hadronic weights
JetConstituent()
constructor
virtual IConstituent * clone() const
a clone method for the proper workings of the copy constructor
double energyInSample(CaloSampling::CaloSample) const
This is the energy in a sample with the navigation weight and hadronic calibration.
Navigable< JetCollection, double >::external_index_type index_type
double energyInCryostat() const
The estimate of the energy cryostat.
virtual NameType name() const
returns the infoType of the info objects.
provides Calorimeter Sampling enum
const constituent_coll & getConstituents() const
virtual unsigned int size() const
virtual object_iter begin() const
bool remove(const constituent_type *aConstituent)
void putElement(const JetCollection *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