test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Private Member Functions | Private Attributes
reco::CompositeCandidate Class Reference

#include <CompositeCandidate.h>

Inheritance diagram for reco::CompositeCandidate:
reco::LeafCandidate reco::Candidate pat::PATObject< reco::CompositeCandidate > reco::NamedCompositeCandidate reco::PFCandidate reco::PFTauDecayMode reco::V0Candidate reco::VertexCompositeCandidate reco::WMuNuCandidate pat::CompositeCandidate pat::PATObject< reco::PFCandidate > reco::IsolatedPFCandidate reco::PileUpPFCandidate pat::PFParticle

Public Types

typedef CandidateCollection daughters
 collection of daughters More...
 
typedef std::vector< std::string > role_collection
 
- Public Types inherited from reco::LeafCandidate
typedef int Charge
 electric charge type More...
 
typedef CandidateCollection daughters
 collection of daughter candidates More...
 
typedef unsigned int index
 
typedef math::XYZTLorentzVector LorentzVector
 Lorentz vector. More...
 
typedef math::XYZPoint Point
 point in the space More...
 
typedef
math::PtEtaPhiMLorentzVector 
PolarLorentzVector
 Lorentz vector. More...
 
typedef math::XYZVector Vector
 point in the space More...
 
- Public Types inherited from reco::Candidate
enum  { dimension = 3 }
 
enum  { size = dimension * (dimension + 1)/2 }
 matix size More...
 
typedef int Charge
 electric charge type More...
 
typedef candidate::const_iterator const_iterator
 
typedef math::Error< dimension >
::type 
CovarianceMatrix
 covariance error matrix (3x3) More...
 
typedef unsigned int index
 index type More...
 
typedef candidate::iterator iterator
 
typedef math::XYZTLorentzVector LorentzVector
 Lorentz vector. More...
 
typedef math::XYZPoint Point
 point in the space More...
 
typedef
math::PtEtaPhiMLorentzVector 
PolarLorentzVector
 Lorentz vector. More...
 
typedef size_t size_type
 
typedef math::XYZVector Vector
 point in the space More...
 

Public Member Functions

void addDaughter (const Candidate &, const std::string &s="")
 add a clone of the passed candidate as daughter More...
 
void addDaughter (std::auto_ptr< Candidate >, const std::string &s="")
 add a clone of the passed candidate as daughter More...
 
void applyRoles ()
 
void clearDaughters ()
 clear daughters More...
 
void clearRoles ()
 
virtual CompositeCandidateclone () const
 returns a clone of the candidate More...
 
 CompositeCandidate (std::string name="")
 default constructor More...
 
template<typename P4 >
 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 More...
 
 CompositeCandidate (const Candidate &p, const std::string &name="")
 constructor from values More...
 
 CompositeCandidate (const Candidate &p, const std::string &name, role_collection const &roles)
 constructor from values More...
 
virtual const Candidatedaughter (size_type) const
 return daughter at a given position, i = 0, ... numberOfDaughters() - 1 (read only mode) More...
 
virtual Candidatedaughter (size_type)
 return daughter at a given position, i = 0, ... numberOfDaughters() - 1 More...
 
virtual Candidatedaughter (const std::string &s)
 return daughter with a specified role name More...
 
virtual const Candidatedaughter (const std::string &s) const
 return daughter with a specified role name More...
 
virtual const Candidatemother (size_type i=0) const
 return pointer to mother More...
 
std::string name () const
 get the name of the candidate More...
 
virtual size_type numberOfDaughters () const
 number of daughters More...
 
virtual size_type numberOfMothers () const
 number of mothers (zero or one in most of but not all the cases) More...
 
role_collection const & roles () const
 get the roles More...
 
void setName (std::string name)
 set the name of the candidate More...
 
void setRoles (const role_collection &roles)
 set the roles More...
 
virtual ~CompositeCandidate ()
 destructor More...
 
- Public Member Functions inherited from reco::LeafCandidate
virtual Vector boostToCM () const final
 
virtual int charge () const final
 electric charge More...
 
void construct (int qx3, float pt, float eta, float phi, float mass, const Point &vtx, int pdgId, int status)
 
virtual double energy () const final
 energy More...
 
virtual double et () const final
 transverse energy More...
 
virtual double et2 () const final
 transverse energy squared (use this for cut!) More...
 
virtual double eta () const final
 momentum pseudorapidity More...
 
virtual void fillVertexCovariance (CovarianceMatrix &v) const
 fill SMatrix More...
 
template<typename T >
T get () const
 get a component More...
 
template<typename T , typename Tag >
T get () const
 get a component More...
 
template<typename T >
T get (size_type i) const
 get a component More...
 
template<typename T , typename Tag >
T get (size_type i) const
 get a component More...
 
virtual bool hasMasterClone () const
 
virtual bool hasMasterClonePtr () const
 
virtual bool isCaloMuon () const
 
virtual bool isConvertedPhoton () const
 
virtual bool isElectron () const
 
virtual bool isGlobalMuon () const
 
virtual bool isJet () const
 
virtual bool isMuon () const
 
virtual bool isPhoton () const
 
virtual bool isStandAloneMuon () const
 
virtual bool isTrackerMuon () const
 
 LeafCandidate ()
 
 LeafCandidate (const Candidate &c)
 
template<typename... Args>
 LeafCandidate (Args &&...args)
 
 LeafCandidate (LeafCandidate &rh)
 
 LeafCandidate (LeafCandidate &&)=default
 
 LeafCandidate (LeafCandidate const &)=default
 
virtual bool longLived () const final
 is long lived? More...
 
virtual double mass () const final
 mass More...
 
virtual bool massConstraint () const final
 do mass constraint? More...
 
virtual double massSqr () const final
 mass squared More...
 
virtual const CandidateBaseRefmasterClone () const
 
virtual const CandidatePtrmasterClonePtr () const
 
template<typename Ref >
Ref masterRef () const
 cast master clone reference to a concrete type More...
 
virtual Vector momentum () const final
 spatial momentum vector More...
 
virtual double mt () const final
 transverse mass More...
 
virtual double mtSqr () const final
 transverse mass squared More...
 
template<typename T >
size_type numberOf () const
 number of components More...
 
template<typename T , typename Tag >
size_type numberOf () const
 number of components More...
 
virtual size_t numberOfSourceCandidatePtrs () const
 
LeafCandidateoperator= (LeafCandidate &&)=default
 
LeafCandidateoperator= (LeafCandidate const &)=default
 
virtual double p () const final
 magnitude of momentum vector More...
 
virtual const LorentzVectorp4 () const final
 four-momentum Lorentz vector More...
 
virtual int pdgId () const final
 PDG identifier. More...
 
virtual double phi () const final
 momentum azimuthal angle More...
 
virtual const PolarLorentzVectorpolarP4 () const final
 four-momentum Lorentz vector More...
 
virtual double pt () const final
 transverse momentum More...
 
virtual double px () const final
 x coordinate of momentum vector More...
 
virtual double py () const final
 y coordinate of momentum vector More...
 
virtual double pz () const final
 z coordinate of momentum vector More...
 
virtual double rapidity () const final
 rapidity More...
 
virtual void setCharge (Charge q) final
 set electric charge More...
 
virtual void setLongLived () final
 
virtual void setMass (double m) final
 set particle mass More...
 
virtual void setMassConstraint () final
 
virtual void setP4 (const LorentzVector &p4) final
 set 4-momentum More...
 
virtual void setP4 (const PolarLorentzVector &p4) final
 set 4-momentum More...
 
virtual void setPdgId (int pdgId) final
 
virtual void setPz (double pz) final
 
virtual void setStatus (int status) final
 set status word More...
 
virtual void setThreeCharge (Charge qx3) final
 set electric charge More...
 
virtual void setVertex (const Point &vertex)
 set vertex More...
 
virtual CandidatePtr sourceCandidatePtr (size_type i) const
 
virtual int status () const final
 status word More...
 
virtual double theta () const final
 momentum polar angle More...
 
virtual int threeCharge () const final
 electric charge More...
 
virtual const Pointvertex () const
 vertex position (overwritten by PF...) More...
 
virtual double vertexChi2 () const
 chi-squares More...
 
virtual double vertexCovariance (int i, int j) const
 (i, j)-th element of error matrix, i, j = 0, ... 2 More...
 
CovarianceMatrix vertexCovariance () const final
 return SMatrix More...
 
virtual double vertexNdof () const
 
virtual double vertexNormalizedChi2 () const
 chi-squared divided by n.d.o.f. More...
 
virtual double vx () const
 x coordinate of vertex position More...
 
virtual double vy () const
 y coordinate of vertex position More...
 
virtual double vz () const
 z coordinate of vertex position More...
 
virtual double y () const final
 rapidity More...
 
virtual ~LeafCandidate ()
 destructor More...
 
- Public Member Functions inherited from reco::Candidate
const_iterator begin () const
 first daughter const_iterator More...
 
iterator begin ()
 first daughter iterator More...
 
virtual const TrackbestTrack () const
 
 Candidate ()
 default constructor More...
 
virtual float dxyError () const
 uncertainty on dxy More...
 
virtual float dzError () const
 uncertainty on dz More...
 
const_iterator end () const
 last daughter const_iterator More...
 
iterator end ()
 last daughter iterator More...
 
template<typename T >
T get () const
 get a component More...
 
template<typename T , typename Tag >
T get () const
 get a component More...
 
template<typename T >
T get (size_type i) const
 get a component More...
 
template<typename T , typename Tag >
T get (size_type i) const
 get a component More...
 
template<typename Ref >
Ref masterRef () const
 cast master clone reference to a concrete type More...
 
template<typename T >
size_type numberOf () const
 number of components More...
 
template<typename T , typename Tag >
size_type numberOf () const
 number of components More...
 
virtual void setSourceCandidatePtr (const CandidatePtr &ptr)
 Set the ptr to the source Candidate. More...
 
virtual ~Candidate ()
 destructor More...
 

Private Member Functions

virtual bool overlap (const Candidate &) const
 check overlap with another daughter More...
 

Private Attributes

daughters dau
 collection of daughters More...
 
std::string name_
 candidate name More...
 
role_collection roles_
 candidate roles More...
 

Additional Inherited Members

Detailed Description

A Candidate composed of daughters. The daughters are owned by the composite candidate.

Author
Luca Lista, INFN

Definition at line 21 of file CompositeCandidate.h.

Member Typedef Documentation

collection of daughters

Definition at line 24 of file CompositeCandidate.h.

typedef std::vector<std::string> reco::CompositeCandidate::role_collection

Definition at line 25 of file CompositeCandidate.h.

Constructor & Destructor Documentation

reco::CompositeCandidate::CompositeCandidate ( std::string  name = "")
inline

default constructor

Definition at line 27 of file CompositeCandidate.h.

Referenced by clone().

27 : LeafCandidate(), name_(name) { }
std::string name_
candidate name
std::string name() const
get the name of the candidate
template<typename P4 >
reco::CompositeCandidate::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 = "" 
)
inline

constructor from values

Definition at line 30 of file CompositeCandidate.h.

32  :
33  LeafCandidate( q, p4, vtx, pdgId, status, integerCharge ), name_(name) { }
std::string name_
candidate name
virtual int status() const final
status word
virtual int pdgId() const final
PDG identifier.
std::string name() const
get the name of the candidate
virtual const LorentzVector & p4() const final
four-momentum Lorentz vector
Definition: LeafCandidate.h:99
CompositeCandidate::CompositeCandidate ( const Candidate p,
const std::string &  name = "" 
)
explicit

constructor from values

Definition at line 6 of file CompositeCandidate.cc.

References addDaughter(), reco::Candidate::daughter(), i, gen::n, and reco::Candidate::numberOfDaughters().

7  :
9  size_t n = c.numberOfDaughters();
10  for(size_t i = 0; i != n; ++i) {
11  addDaughter(*c.daughter(i));
12  }
13 }
int i
Definition: DBlmapReader.cc:9
std::string name_
candidate name
void addDaughter(const Candidate &, const std::string &s="")
add a clone of the passed candidate as daughter
std::string name() const
get the name of the candidate
CompositeCandidate::CompositeCandidate ( const Candidate p,
const std::string &  name,
role_collection const &  roles 
)
explicit

constructor from values

Definition at line 15 of file CompositeCandidate.cc.

References addDaughter(), reco::Candidate::daughter(), i, gen::n, reco::Candidate::numberOfDaughters(), alignCSCRings::r, and roles_.

17  :
19  size_t n = c.numberOfDaughters();
20  size_t r = roles_.size();
21  bool sameSize = (n == r);
22  for(size_t i = 0; i != n; ++i) {
23  if (sameSize && r > 0)
24  addDaughter(*c.daughter(i), roles_[i]);
25  else
26  addDaughter(*c.daughter(i));
27  }
28 }
int i
Definition: DBlmapReader.cc:9
std::string name_
candidate name
role_collection const & roles() const
get the roles
role_collection roles_
candidate roles
void addDaughter(const Candidate &, const std::string &s="")
add a clone of the passed candidate as daughter
std::string name() const
get the name of the candidate
CompositeCandidate::~CompositeCandidate ( )
virtual

destructor

Reimplemented in pat::CompositeCandidate.

Definition at line 30 of file CompositeCandidate.cc.

30 { }

Member Function Documentation

void CompositeCandidate::addDaughter ( const Candidate cand,
const std::string &  s = "" 
)

add a clone of the passed candidate as daughter

Definition at line 117 of file CompositeCandidate.cc.

References reco::Candidate::begin(), EnergyCorrector::c, alignmentValidation::c1, reco::Candidate::clone(), dau, reco::Candidate::end(), Exception, spr::find(), edm::OwnVector< T, P >::push_back(), roles_, and setName().

Referenced by combiner::helpers::NormalClone::addDaughter(), combiner::helpers::ShallowClone::addDaughter(), combiner::helpers::ShallowClonePtr::addDaughter(), reco::NamedCompositeCandidate::addDaughter(), cloneDecayTree(), CompositeCandidate(), ZeeCandidateFilter::filter(), V0Fitter::fitAll(), TtFullHadHypothesis::hypo(), TtFullLepHypothesis::hypo(), TtSemiLepHypothesis::hypo(), reco::PFTauDecayMode::PFTauDecayMode(), Onia2MuMuPAT::produce(), TruthTauDecayModeProducer::produce(), PatJPsiProducer::produce(), BoostedTopProducer::produce(), PFPhotonAlgo::RunPFPhoton(), PFElectronAlgo::SetCandidates(), TtSemiEvtSolution::setupHyp(), and reco::WMuNuCandidate::WMuNuCandidate().

117  {
118  Candidate * c = cand.clone();
119  if (s != "") {
120  role_collection::iterator begin = roles_.begin(), end = roles_.end();
121  bool isFound = (find(begin, end, s) != end);
122  if (isFound) {
123  throw cms::Exception("InvalidReference")
124  << "CompositeCandidate::addDaughter: Already have role with name \"" << s
125  << "\", please clearDaughters, or use a new name\n";
126  }
127  roles_.push_back(s);
128  CompositeCandidate * c1 = dynamic_cast<CompositeCandidate*>(&*c);
129  if (c1 != 0) {
130  c1->setName(s);
131  }
132  }
133  dau.push_back(c);
134 }
role_collection roles_
candidate roles
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:7
void push_back(D *&d)
Definition: OwnVector.h:290
const_iterator end() const
last daughter const_iterator
Definition: Candidate.h:146
virtual Candidate * clone() const =0
returns a clone of the Candidate object
void setName(std::string name)
set the name of the candidate
const_iterator begin() const
first daughter const_iterator
Definition: Candidate.h:144
daughters dau
collection of daughters
void CompositeCandidate::addDaughter ( std::auto_ptr< Candidate cand,
const std::string &  s = "" 
)

add a clone of the passed candidate as daughter

Definition at line 136 of file CompositeCandidate.cc.

References reco::Candidate::begin(), alignmentValidation::c1, dau, reco::Candidate::end(), Exception, spr::find(), edm::OwnVector< T, P >::push_back(), roles_, and setName().

136  {
137  if (s != "") {
138  role_collection::iterator begin = roles_.begin(), end = roles_.end();
139  bool isFound = (find(begin, end, s) != end);
140  if (isFound) {
141  throw cms::Exception("InvalidReference")
142  << "CompositeCandidate::addDaughter: Already have role with name \"" << s
143  << "\", please clearDaughters, or use a new name\n";
144  }
145  roles_.push_back(s);
146  CompositeCandidate * c1 = dynamic_cast<CompositeCandidate*>(&*cand);
147  if (c1 != 0) {
148  c1->setName(s);
149  }
150  }
151  dau.push_back(cand);
152 }
role_collection roles_
candidate roles
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:7
void push_back(D *&d)
Definition: OwnVector.h:290
const_iterator end() const
last daughter const_iterator
Definition: Candidate.h:146
void setName(std::string name)
set the name of the candidate
const_iterator begin() const
first daughter const_iterator
Definition: Candidate.h:144
daughters dau
collection of daughters
void CompositeCandidate::applyRoles ( )

Definition at line 55 of file CompositeCandidate.cc.

References EnergyCorrector::c, alignmentValidation::c1, daughter(), Exception, i, numberOfDaughters(), roles_, setName(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by reco::modules::RoleNames::set().

55  {
56 
57  if (roles_.size() == 0)
58  return;
59 
60  // Check if there are the same number of daughters and roles
61  int N1 = roles_.size();
62  int N2 = numberOfDaughters();
63  if (N1 != N2) {
64  throw cms::Exception("InvalidReference")
65  << "CompositeCandidate::applyRoles : Number of roles and daughters differ, this is an error.\n";
66  }
67  // Set up the daughter roles
68  for (int i = 0 ; i < N1; ++i) {
69  std::string role = roles_[i];
71 
72  CompositeCandidate * c1 = dynamic_cast<CompositeCandidate *>(c);
73  if (c1 != 0) {
74  c1->setName(role);
75  }
76  }
77 }
int i
Definition: DBlmapReader.cc:9
role_collection roles_
candidate roles
virtual size_type numberOfDaughters() const
number of daughters
void setName(std::string name)
set the name of the candidate
virtual const Candidate * daughter(size_type) const
return daughter at a given position, i = 0, ... numberOfDaughters() - 1 (read only mode) ...
void reco::CompositeCandidate::clearDaughters ( )
inline

clear daughters

Definition at line 64 of file CompositeCandidate.h.

References edm::OwnVector< T, P >::clear(), and dau.

Referenced by reco::NamedCompositeCandidate::clearDaughters(), and TtSemiEvtSolution::setupHyp().

64 { dau.clear(); }
void clear()
Definition: OwnVector.h:451
daughters dau
collection of daughters
void reco::CompositeCandidate::clearRoles ( )
inline

Definition at line 66 of file CompositeCandidate.h.

References roles_.

Referenced by TtSemiEvtSolution::setupHyp().

66 { roles_.clear(); }
role_collection roles_
candidate roles
CompositeCandidate * CompositeCandidate::clone ( void  ) const
virtual

returns a clone of the candidate

Reimplemented from reco::LeafCandidate.

Reimplemented in reco::PFCandidate, reco::PFTauDecayMode, pat::PFParticle, pat::CompositeCandidate, reco::NamedCompositeCandidate, reco::VertexCompositeCandidate, reco::IsolatedPFCandidate, and reco::PileUpPFCandidate.

Definition at line 32 of file CompositeCandidate.cc.

References CompositeCandidate().

32 { return new CompositeCandidate(* this); }
CompositeCandidate(std::string name="")
default constructor
const Candidate * CompositeCandidate::daughter ( size_type  i) const
virtual
Candidate * CompositeCandidate::daughter ( size_type  i)
virtual

return daughter at a given position, i = 0, ... numberOfDaughters() - 1

Reimplemented from reco::LeafCandidate.

Reimplemented in reco::NamedCompositeCandidate.

Definition at line 38 of file CompositeCandidate.cc.

References ztail::d, dau, and numberOfDaughters().

38  {
39  Candidate * d = (i < numberOfDaughters()) ? & dau[ i ] : 0; // i >= 0, since i is unsigned
40  return d;
41 }
int i
Definition: DBlmapReader.cc:9
virtual size_type numberOfDaughters() const
number of daughters
tuple d
Definition: ztail.py:151
daughters dau
collection of daughters
Candidate * CompositeCandidate::daughter ( const std::string &  s)
virtual

return daughter with a specified role name

Reimplemented from reco::LeafCandidate.

Reimplemented in reco::NamedCompositeCandidate.

Definition at line 79 of file CompositeCandidate.cc.

References daughter(), Exception, newFWLiteAna::found, i, N, runTheMatrix::ret, and roles_.

79  {
80  int ret = -1;
81  int i = 0, N = roles_.size();
82  bool found = false;
83  for (; i < N && !found; ++i) {
84  if (s == roles_[i]) {
85  found = true;
86  ret = i;
87  }
88  }
89 
90  if (ret < 0) {
91  throw cms::Exception("InvalidReference")
92  << "CompositeCandidate::daughter: Cannot find role " << s << "\n";
93  }
94 
95  return daughter(ret);
96 }
int i
Definition: DBlmapReader.cc:9
tuple ret
prodAgent to be discontinued
role_collection roles_
candidate roles
#define N
Definition: blowfish.cc:9
virtual const Candidate * daughter(size_type) const
return daughter at a given position, i = 0, ... numberOfDaughters() - 1 (read only mode) ...
const Candidate * CompositeCandidate::daughter ( const std::string &  s) const
virtual

return daughter with a specified role name

Reimplemented from reco::LeafCandidate.

Reimplemented in reco::NamedCompositeCandidate.

Definition at line 98 of file CompositeCandidate.cc.

References daughter(), Exception, newFWLiteAna::found, i, N, runTheMatrix::ret, and roles_.

98  {
99  int ret = -1;
100  int i = 0, N = roles_.size();
101  bool found = false;
102  for (; i < N && !found; ++i) {
103  if (s == roles_[i]) {
104  found = true;
105  ret = i;
106  }
107  }
108 
109  if (ret < 0) {
110  throw cms::Exception("InvalidReference")
111  << "CompositeCandidate::daughter: Cannot find role " << s << "\n";
112  }
113 
114  return daughter(ret);
115 }
int i
Definition: DBlmapReader.cc:9
tuple ret
prodAgent to be discontinued
role_collection roles_
candidate roles
#define N
Definition: blowfish.cc:9
virtual const Candidate * daughter(size_type) const
return daughter at a given position, i = 0, ... numberOfDaughters() - 1 (read only mode) ...
const Candidate * CompositeCandidate::mother ( size_type  i = 0) const
virtual

return pointer to mother

Reimplemented from reco::LeafCandidate.

Definition at line 43 of file CompositeCandidate.cc.

43  {
44  return 0;
45 }
std::string reco::CompositeCandidate::name ( ) const
inline
size_t CompositeCandidate::numberOfDaughters ( ) const
virtual
size_t CompositeCandidate::numberOfMothers ( ) const
virtual

number of mothers (zero or one in most of but not all the cases)

Reimplemented from reco::LeafCandidate.

Definition at line 49 of file CompositeCandidate.cc.

49 { return 0; }
bool CompositeCandidate::overlap ( const Candidate c2) const
privatevirtual

check overlap with another daughter

Reimplemented from reco::LeafCandidate.

Reimplemented in reco::PFCandidate.

Definition at line 51 of file CompositeCandidate.cc.

References Exception.

51  {
52  throw cms::Exception("Error") << "can't check overlap internally for CompositeCanddate";
53 }
role_collection const& reco::CompositeCandidate::roles ( ) const
inline

get the roles

Definition at line 45 of file CompositeCandidate.h.

References roles_.

Referenced by TtEvent::isHypoValid(), and setRoles().

45 { return roles_; }
role_collection roles_
candidate roles
void reco::CompositeCandidate::setName ( std::string  name)
inline

set the name of the candidate

Definition at line 43 of file CompositeCandidate.h.

References name(), and name_.

Referenced by Vispa.Gui.PortWidget.PortWidget::__init__(), Vispa.Views.PropertyView.Property::__init__(), addDaughter(), applyRoles(), and reco::modules::RoleNames::set().

43 { name_ = name;}
std::string name_
candidate name
std::string name() const
get the name of the candidate
void reco::CompositeCandidate::setRoles ( const role_collection roles)
inline

set the roles

Definition at line 47 of file CompositeCandidate.h.

References roles(), and roles_.

Referenced by reco::modules::RoleNames::set().

47 { roles_.clear(); roles_ = roles; }
role_collection const & roles() const
get the roles
role_collection roles_
candidate roles

Member Data Documentation

daughters reco::CompositeCandidate::dau
private

collection of daughters

Definition at line 76 of file CompositeCandidate.h.

Referenced by addDaughter(), clearDaughters(), daughter(), and numberOfDaughters().

std::string reco::CompositeCandidate::name_
private

candidate name

Definition at line 80 of file CompositeCandidate.h.

Referenced by name(), and setName().

role_collection reco::CompositeCandidate::roles_
private

candidate roles

Definition at line 82 of file CompositeCandidate.h.

Referenced by addDaughter(), applyRoles(), clearRoles(), CompositeCandidate(), daughter(), roles(), and setRoles().