1 #ifndef Candidate_CompositeCandidate_h 2 #define Candidate_CompositeCandidate_h 29 template <
typename P4>
35 bool integerCharge =
true,
~CompositeCandidate() override
destructor
int Charge
electric charge type
const Candidate * daughter(size_type) const override
return daughter at a given position, i = 0, ... numberOfDaughters() - 1 (read only mode) ...
std::string name_
candidate name
role_collection roles_
candidate roles
int status() const final
status word
void setRoles(const role_collection &roles)
set the roles
CandidateCollection daughters
collection of daughters
const LorentzVector & p4() const final
four-momentum Lorentz vector
int pdgId() const final
PDG identifier.
bool overlap(const Candidate &) const override
check overlap with another daughter
double p() const final
magnitude of momentum vector
const Candidate * mother(size_type i=0) const override
return pointer to mother
size_type numberOfMothers() const override
number of mothers (zero or one in most of but not all the cases)
role_collection const & roles() const
get the roles
CompositeCandidate(std::string name="")
default constructor
std::string name() const
get the name of the candidate
void addDaughter(const Candidate &, const std::string &s="")
add a clone of the passed candidate as daughter
CompositeCandidate(Charge q, const P4 &p4, const Point &vtx=Point(0, 0, 0), int pdgId=0, int status=0, bool integerCharge=true, std::string name="")
constructor from values
CompositeCandidate * clone() const override
returns a clone of the candidate
void clearDaughters()
clear daughters
void setName(std::string name)
set the name of the candidate
size_type numberOfDaughters() const override
number of daughters
Structure Point Contains parameters of Gaussian fits to DMRs.
daughters dau
collection of daughters
std::vector< std::string > role_collection
math::XYZPoint Point
point in the space