ATLAS Offline Software
Public Types | Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
Analysis::TrackConstituents Class Referenceabstract

Class TrackConstituent: This is the implemntation of the TrackConstituents class for ParticleJet. More...

#include <TrackConstituents.h>

Inheritance diagram for Analysis::TrackConstituents:
Collaboration diagram for Analysis::TrackConstituents:

Public Types

typedef Navigable< Rec::TrackParticleContainer, double >::object_iter iterator
 
typedef typename NavigationDefaults::DefaultChildColl< Rec::TrackParticleContainer, double >::type constituent_coll
 
typedef constituent_coll::iterator constituent_iter
 
typedef constituent_coll::const_iterator constituent_const_iter
 
typedef Rec::TrackParticleContainer container_type
 Object container type. More...
 
typedef double parameter_type
 \ brief Relational parameter type More...
 
typedef NavigationDefaults::DefaultChildColl< container_type, parameter_typenavhelper_t
 Collection manager type. More...
 
typedef CONT::base_value_type constituent_type
 
typedef CONT::reference constituent_ptr_ref
 
typedef CONT::const_reference constituent_const_ptr_ref
 
typedef CONT::value_type constituent_ptr
 
typedef SG::GenerateIndexingPolicy< Rec::TrackParticleContainer >::type::index_type external_index_type
 
typedef NavigableIterator< Rec::TrackParticleContainer, double, typename NavigationDefaults::DefaultChildColl< Rec::TrackParticleContainer, double >::type > object_iter
 

Public Member Functions

 TrackConstituents ()
 constructor More...
 
 TrackConstituents (NameType &name)
 constructor More...
 
 ~TrackConstituents ()=default
 
virtual NameType name () const
 returns the infoType of the info objects. More...
 
virtual IConstituentclone () const
 a clone method for the proper workings of the copy constructor More...
 
std::vector< const Rec::TrackParticle * > * tracks () const
 get a vector of trackparticles. user must delete the vector, but not constituents More...
 
unsigned int nTracks () const
 
double getTrackWeight (const Rec::TrackParticle *) const
 
double getTrackWeight (const Rec::TrackParticleContainer *, index_type &) const
 
virtual void setName (NameType &name)
 to set the name More...
 
void set_track (const Rec::TrackParticleContainer *, const Rec::TrackParticle *, double weight=0.)
 set method for tracks. More...
 
void set_track (const Rec::TrackParticleContainer *, index_type &, double weight=0.)
 set method for tracks. More...
 
void set_constituent (const Rec::TrackParticleContainer *, const Rec::TrackParticle *, double weight=0.)
 set method for tracks. More...
 
void set_constituent (const Rec::TrackParticleContainer *, index_type &, double weight=0.)
 
virtual void fillToken (INavigationToken &thisToken) const =0
 
virtual void fillToken (INavigationToken &thisToken, const std::any &weight) const =0
 
virtual void fillToken (INavigationToken &navToken) const
 
virtual void fillToken (INavigationToken &navToken, const std::any &parentParameter) const
 
void putElement (const Rec::TrackParticleContainer *objectContainer, const constituent_type *constituentObject, const double &objectParameter=double(), size_t sizeHint=0)
 
void putElement (const Rec::TrackParticleContainer *objectContainer, const external_index_type &theIndex, const double &objectParameter=double(), size_t sizeHint=0)
 
void insertElement (const Rec::TrackParticleContainer *objectContainer, const constituent_type *constituentObject, const double &objectParameter=double(), size_t sizeHint=0)
 
void insertElement (const Rec::TrackParticleContainer *objectContainer, const external_index_type &theIndex, const double &objectParameter=double(), size_t sizeHint=0)
 
void insertElement (const Rec::TrackParticleContainer *objectContainer, const external_index_type &theIndex, IProxyDict *sg, const double &objectParameter=double(), size_t sizeHint=0)
 
void insertElement (const ElementLink< Rec::TrackParticleContainer > &el, const double &objectParameter=double(), size_t sizeHint=0)
 
void reweight (const constituent_type *constituentObject, const double &objectParameter=double())
 
void reweight (const Rec::TrackParticleContainer *objectContainer, const external_index_type &theIndex, const double &objectParameter=double())
 
void reweight (object_iter &objectIter, const double &objectParameter=double())
 
bool remove (const constituent_type *aConstituent)
 
bool remove (const Rec::TrackParticleContainer *objectContainer, const external_index_type &theIndex)
 
bool removeAll ()
 
bool replace (const Rec::TrackParticleContainer *newObjectContainer)
 replace old object container with a new container assumes that all objects have been or will be inserted to the new container
More...
 
bool contains (const constituent_type *aConstituent) const
 
bool contains (const Rec::TrackParticleContainer *objectContainer, const external_index_type &theIndex) const
 
virtual object_iter begin () const
 
virtual object_iter end () const
 
virtual unsigned int size () const
 
double getParameter (const constituent_type *aConstituent) const
 
double getParameter (const Rec::TrackParticleContainer *objectContainer, const external_index_type &theIndex) const
 
double getParameter (object_iter &theIter) const
 
const Rec::TrackParticleContainergetContainer (const constituent_type *aConstituent) const
 
const Rec::TrackParticleContainergetContainer (constituent_const_iter anIter) const
 
const Rec::TrackParticleContainergetContainer (object_iter objectIter) const
 
bool getIndex (const constituent_type *aConstituent, external_index_type &theIndex) const
 
bool getIndex (constituent_const_iter anIter, external_index_type &theIndex) const
 
bool getIndex (object_iter objectIter, external_index_type &theIndex) const
 

Protected Member Functions

const constituent_collgetConstituents () const
 
constituent_collgetConstituents ()
 
const constituent_collgetPtrToConstituents () const
 
constituent_collgetPtrToConstituents ()
 
virtual const constituent_typegetConstituentPtr (constituent_iter iter) const
 
virtual const constituent_typegetConstituentPtr (constituent_const_iter iter) const
 
virtual double getConstituentPar (constituent_iter iter) const
 
virtual double getConstituentPar (constituent_const_iter iter) const
 
void dumpStore () const
 

Private Types

typedef Navigable< Rec::TrackParticleContainer, double >::external_index_type index_type
 
typedef Navigable< Rec::TrackParticleContainer, double >::constituent_iter iter_type
 

Private Member Functions

virtual void apply (NavigationToken< constituent_type > &navToken) const
 
virtual void apply (NavigationToken< constituent_type, double > &navToken, const double &aParameter) const
 
virtual void toKidsAfterAccept (INavigationToken &navToken) const
 
virtual void toKidsAfterAccept (INavigationToken &navToken, const std::any &aParameter) const
 
virtual void toKidsAfterReject (INavigationToken &navToken) const
 
virtual void toKidsAfterReject (INavigationToken &navToken, const std::any &aParameter) const
 

Private Attributes

std::string m_name
 
constituent_coll m_constituents
 

Detailed Description

Class TrackConstituent: This is the implemntation of the TrackConstituents class for ParticleJet.

Author
cranm.nosp@m.er@c.nosp@m.ern.c.nosp@m.h

Definition at line 45 of file TrackConstituents.h.

Member Typedef Documentation

◆ constituent_coll

Definition at line 101 of file Navigable.h.

◆ constituent_const_iter

typedef constituent_coll::const_iterator Navigable< Rec::TrackParticleContainer , double , typename NavigationDefaults::DefaultChildColl<Rec::TrackParticleContainer , double >::type >::constituent_const_iter
inherited

Definition at line 103 of file Navigable.h.

◆ constituent_const_ptr_ref

typedef CONT::const_reference Navigable< Rec::TrackParticleContainer , double , typename NavigationDefaults::DefaultChildColl<Rec::TrackParticleContainer , double >::type >::constituent_const_ptr_ref
inherited

Definition at line 151 of file Navigable.h.

◆ constituent_iter

typedef constituent_coll::iterator Navigable< Rec::TrackParticleContainer , double , typename NavigationDefaults::DefaultChildColl<Rec::TrackParticleContainer , double >::type >::constituent_iter
inherited

Definition at line 102 of file Navigable.h.

◆ constituent_ptr

typedef CONT::value_type Navigable< Rec::TrackParticleContainer , double , typename NavigationDefaults::DefaultChildColl<Rec::TrackParticleContainer , double >::type >::constituent_ptr
inherited

Definition at line 152 of file Navigable.h.

◆ constituent_ptr_ref

typedef CONT::reference Navigable< Rec::TrackParticleContainer , double , typename NavigationDefaults::DefaultChildColl<Rec::TrackParticleContainer , double >::type >::constituent_ptr_ref
inherited

Definition at line 150 of file Navigable.h.

◆ constituent_type

typedef CONT::base_value_type Navigable< Rec::TrackParticleContainer , double , typename NavigationDefaults::DefaultChildColl<Rec::TrackParticleContainer , double >::type >::constituent_type
inherited

Definition at line 149 of file Navigable.h.

◆ container_type

Object container type.

Definition at line 110 of file Navigable.h.

◆ external_index_type

Definition at line 156 of file Navigable.h.

◆ index_type

Definition at line 57 of file TrackConstituents.h.

◆ iter_type

Definition at line 58 of file TrackConstituents.h.

◆ iterator

Definition at line 66 of file TrackConstituents.h.

◆ navhelper_t

Collection manager type.

Definition at line 114 of file Navigable.h.

◆ object_iter

Definition at line 159 of file Navigable.h.

◆ parameter_type

\ brief Relational parameter type

Definition at line 112 of file Navigable.h.

Constructor & Destructor Documentation

◆ TrackConstituents() [1/2]

Analysis::TrackConstituents::TrackConstituents ( )

constructor

Definition at line 32 of file TrackConstituents.cxx.

32  { return m_name;}
33 

◆ TrackConstituents() [2/2]

Analysis::TrackConstituents::TrackConstituents ( NameType name)

constructor

Definition at line 35 of file TrackConstituents.cxx.

35  { return new TrackConstituents( *this );}
36 
37 

◆ ~TrackConstituents()

Analysis::TrackConstituents::~TrackConstituents ( )
default

Member Function Documentation

◆ apply() [1/2]

virtual void Navigable< Rec::TrackParticleContainer , double , typename NavigationDefaults::DefaultChildColl<Rec::TrackParticleContainer , double >::type >::apply ( NavigationToken< constituent_type > &  navToken) const
privatevirtualinherited

◆ apply() [2/2]

virtual void Navigable< Rec::TrackParticleContainer , double , typename NavigationDefaults::DefaultChildColl<Rec::TrackParticleContainer , double >::type >::apply ( NavigationToken< constituent_type, RPAR > &  navToken,
const RPAR &  aParameter 
) const
privatevirtualinherited

◆ begin()

virtual object_iter Navigable< Rec::TrackParticleContainer , double , typename NavigationDefaults::DefaultChildColl<Rec::TrackParticleContainer , double >::type >::begin ( ) const
virtualinherited

◆ clone()

IConstituent * Analysis::TrackConstituents::clone ( ) const
virtual

a clone method for the proper workings of the copy constructor

Implements Analysis::IConstituent.

Definition at line 43 of file TrackConstituents.cxx.

44  {

◆ contains() [1/2]

bool Navigable< Rec::TrackParticleContainer , double , typename NavigationDefaults::DefaultChildColl<Rec::TrackParticleContainer , double >::type >::contains ( const constituent_type aConstituent) const
inherited

◆ contains() [2/2]

bool Navigable< Rec::TrackParticleContainer , double , typename NavigationDefaults::DefaultChildColl<Rec::TrackParticleContainer , double >::type >::contains ( const CONT *  objectContainer,
const external_index_type theIndex 
) const
inherited

◆ dumpStore()

void Navigable< Rec::TrackParticleContainer , double , typename NavigationDefaults::DefaultChildColl<Rec::TrackParticleContainer , double >::type >::dumpStore ( ) const
protectedinherited

◆ end()

virtual object_iter Navigable< Rec::TrackParticleContainer , double , typename NavigationDefaults::DefaultChildColl<Rec::TrackParticleContainer , double >::type >::end ( ) const
virtualinherited

◆ fillToken() [1/4]

virtual void Navigable< Rec::TrackParticleContainer , double , typename NavigationDefaults::DefaultChildColl<Rec::TrackParticleContainer , double >::type >::fillToken ( INavigationToken navToken) const
virtualinherited

Implements INavigable.

◆ fillToken() [2/4]

virtual void Navigable< Rec::TrackParticleContainer , double , typename NavigationDefaults::DefaultChildColl<Rec::TrackParticleContainer , double >::type >::fillToken ( INavigationToken navToken,
const std::any &  parentParameter 
) const
virtualinherited

Implements INavigable.

◆ fillToken() [3/4]

virtual void INavigable::fillToken ( INavigationToken thisToken) const
pure virtualinherited

Implemented in egamma, eflowObject, Analysis::TauJet, ParticleSigStateImpl< INavigable_t, I4Momentum_t, IParticle_t >, ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double >, P4ImplPxPyPzE >, ParticleSigStateImpl< Navigable< DataVector< INavigable4Momentum >, double, std::vector< std::pair< ElementLink< DataVector< INavigable4Momentum > >, double > > >, P4ImplPxPyPzE, ParticleEvent::Base >, Analysis::Muon, ParticleImpl< INavigable_t, I4Momentum_t, IParticle_t >, ParticleImpl< NavigableTerminalNode, P4ImplEEtaPhiM, ParticleEvent::Base >, ParticleImpl< TruthParticleNavigation, TruthParticleMomentum, TruthParticleBase >, ParticleImpl< CompositeParticleNavigation, P4ImplPxPyPzE, ParticleEvent::Base >, ParticleImpl< NavigableTerminalNode, P4PtEtaPhiM >, ParticleImpl< ::Analysis::TauJetNavigation, ::P4ImplEEtaPhiM >, ParticleImpl< Navigable< DataVector< INavigable4Momentum >, double, std::vector< std::pair< ElementLink< DataVector< INavigable4Momentum > >, double > > >, P4ImplPxPyPzE, ParticleEvent::Base >, ParticleImpl< egammaNavigation, P4ImplEEtaPhiM >, ParticleImpl< ::Analysis::MuonNavigation, ::P4ImplIPtCotThPhiM >, ParticleImpl< NavigableTerminalNode, P4ImplPxPyPzE, ParticleEvent::Base >, ParticleImpl< NavigableTerminalNode, P4ImplIPtCotThPhiM, ParticleEvent::Base >, ParticleImpl< NeutrinoNavigation, P4ImplPxPyPzE >, Nav4MomWrapper< Navigable_t, P4Momentum_t >, Nav4MomWrapper< Navigable< DataVector< INavigable4Momentum >, double, std::vector< std::pair< ElementLink< DataVector< INavigable4Momentum > >, double > > >, P4ImplPxPyPzE >, Jet, Navigable< CONT, RPAR, COLL >, Navigable< INavigable4MomentumCollection, MissingETHandlers::Weight >, Navigable< MuonContainer, double >, Navigable< INavigable4MomentumCollection, double >, Navigable< CaloClusterContainer, double >, Navigable< DataVector< INavigable4Momentum > >, Navigable< EMShowerMinimalContainer, double >, Navigable< PhotonContainer, double >, Navigable< ExampleHitContainer, double >, Navigable< ExampleHitContainer >, Navigable< Analysis::MuonContainer, double >, Navigable< CaloCellLinkContainer, double >, Navigable< DataVector< INavigable4Momentum >, double >, Navigable< DataVector< INavigable4Momentum >, double, std::vector< std::pair< ElementLink< DataVector< INavigable4Momentum > >, double > > >, Navigable< Rec::TrackParticleContainer, double >, Navigable< CaloCellContainer, double >, Navigable< egammaContainer, double >, Navigable< ElectronContainer, double >, Navigable< TruthParticleContainer, double >, Navigable< JetCollection, double >, CaloClusterNavigable, Analysis::ParticleShallowClone, Analysis::ISvxConstituent, Analysis::ISvxAssociation, Analysis::MuonAssociation, and NavigableTerminalNode.

◆ fillToken() [4/4]

virtual void INavigable::fillToken ( INavigationToken thisToken,
const std::any &  weight 
) const
pure virtualinherited

Implemented in ParticleSigStateImpl< INavigable_t, I4Momentum_t, IParticle_t >, ParticleSigStateImpl< Navigable< INavigable4MomentumCollection, double >, P4ImplPxPyPzE >, ParticleSigStateImpl< Navigable< DataVector< INavigable4Momentum >, double, std::vector< std::pair< ElementLink< DataVector< INavigable4Momentum > >, double > > >, P4ImplPxPyPzE, ParticleEvent::Base >, ParticleImpl< INavigable_t, I4Momentum_t, IParticle_t >, ParticleImpl< NavigableTerminalNode, P4ImplEEtaPhiM, ParticleEvent::Base >, ParticleImpl< TruthParticleNavigation, TruthParticleMomentum, TruthParticleBase >, ParticleImpl< CompositeParticleNavigation, P4ImplPxPyPzE, ParticleEvent::Base >, ParticleImpl< NavigableTerminalNode, P4PtEtaPhiM >, ParticleImpl< ::Analysis::TauJetNavigation, ::P4ImplEEtaPhiM >, ParticleImpl< Navigable< DataVector< INavigable4Momentum >, double, std::vector< std::pair< ElementLink< DataVector< INavigable4Momentum > >, double > > >, P4ImplPxPyPzE, ParticleEvent::Base >, ParticleImpl< egammaNavigation, P4ImplEEtaPhiM >, ParticleImpl< ::Analysis::MuonNavigation, ::P4ImplIPtCotThPhiM >, ParticleImpl< NavigableTerminalNode, P4ImplPxPyPzE, ParticleEvent::Base >, ParticleImpl< NavigableTerminalNode, P4ImplIPtCotThPhiM, ParticleEvent::Base >, ParticleImpl< NeutrinoNavigation, P4ImplPxPyPzE >, Nav4MomWrapper< Navigable_t, P4Momentum_t >, Nav4MomWrapper< Navigable< DataVector< INavigable4Momentum >, double, std::vector< std::pair< ElementLink< DataVector< INavigable4Momentum > >, double > > >, P4ImplPxPyPzE >, eflowObject, egamma, Analysis::TauJet, Analysis::Muon, Navigable< CONT, RPAR, COLL >, Navigable< INavigable4MomentumCollection, MissingETHandlers::Weight >, Navigable< MuonContainer, double >, Navigable< INavigable4MomentumCollection, double >, Navigable< CaloClusterContainer, double >, Navigable< DataVector< INavigable4Momentum > >, Navigable< EMShowerMinimalContainer, double >, Navigable< PhotonContainer, double >, Navigable< ExampleHitContainer, double >, Navigable< ExampleHitContainer >, Navigable< Analysis::MuonContainer, double >, Navigable< CaloCellLinkContainer, double >, Navigable< DataVector< INavigable4Momentum >, double >, Navigable< DataVector< INavigable4Momentum >, double, std::vector< std::pair< ElementLink< DataVector< INavigable4Momentum > >, double > > >, Navigable< Rec::TrackParticleContainer, double >, Navigable< CaloCellContainer, double >, Navigable< egammaContainer, double >, Navigable< ElectronContainer, double >, Navigable< TruthParticleContainer, double >, Navigable< JetCollection, double >, Jet, CaloClusterNavigable, Analysis::ParticleShallowClone, Analysis::ISvxConstituent, Analysis::ISvxAssociation, Analysis::MuonAssociation, and NavigableTerminalNode.

◆ getConstituentPar() [1/2]

virtual double Navigable< Rec::TrackParticleContainer , double , typename NavigationDefaults::DefaultChildColl<Rec::TrackParticleContainer , double >::type >::getConstituentPar ( constituent_const_iter  iter) const
protectedvirtualinherited

◆ getConstituentPar() [2/2]

virtual double Navigable< Rec::TrackParticleContainer , double , typename NavigationDefaults::DefaultChildColl<Rec::TrackParticleContainer , double >::type >::getConstituentPar ( constituent_iter  iter) const
protectedvirtualinherited

◆ getConstituentPtr() [1/2]

virtual const constituent_type* Navigable< Rec::TrackParticleContainer , double , typename NavigationDefaults::DefaultChildColl<Rec::TrackParticleContainer , double >::type >::getConstituentPtr ( constituent_const_iter  iter) const
protectedvirtualinherited

◆ getConstituentPtr() [2/2]

virtual const constituent_type* Navigable< Rec::TrackParticleContainer , double , typename NavigationDefaults::DefaultChildColl<Rec::TrackParticleContainer , double >::type >::getConstituentPtr ( constituent_iter  iter) const
protectedvirtualinherited

◆ getConstituents() [1/2]

constituent_coll& Navigable< Rec::TrackParticleContainer , double , typename NavigationDefaults::DefaultChildColl<Rec::TrackParticleContainer , double >::type >::getConstituents ( )
inlineprotectedinherited

Definition at line 291 of file Navigable.h.

291 { return m_constituents; }

◆ getConstituents() [2/2]

const constituent_coll& Navigable< Rec::TrackParticleContainer , double , typename NavigationDefaults::DefaultChildColl<Rec::TrackParticleContainer , double >::type >::getConstituents ( ) const
inlineprotectedinherited

Definition at line 290 of file Navigable.h.

290 { return m_constituents; }

◆ getContainer() [1/3]

◆ getContainer() [2/3]

◆ getContainer() [3/3]

const Rec::TrackParticleContainer * Navigable< Rec::TrackParticleContainer , double , typename NavigationDefaults::DefaultChildColl<Rec::TrackParticleContainer , double >::type >::getContainer ( object_iter  objectIter) const
inherited

◆ getIndex() [1/3]

bool Navigable< Rec::TrackParticleContainer , double , typename NavigationDefaults::DefaultChildColl<Rec::TrackParticleContainer , double >::type >::getIndex ( const constituent_type aConstituent,
external_index_type theIndex 
) const
inherited

◆ getIndex() [2/3]

bool Navigable< Rec::TrackParticleContainer , double , typename NavigationDefaults::DefaultChildColl<Rec::TrackParticleContainer , double >::type >::getIndex ( constituent_const_iter  anIter,
external_index_type theIndex 
) const
inherited

◆ getIndex() [3/3]

bool Navigable< Rec::TrackParticleContainer , double , typename NavigationDefaults::DefaultChildColl<Rec::TrackParticleContainer , double >::type >::getIndex ( object_iter  objectIter,
external_index_type theIndex 
) const
inherited

◆ getParameter() [1/3]

double Navigable< Rec::TrackParticleContainer , double , typename NavigationDefaults::DefaultChildColl<Rec::TrackParticleContainer , double >::type >::getParameter ( const constituent_type aConstituent) const
inherited

◆ getParameter() [2/3]

double Navigable< Rec::TrackParticleContainer , double , typename NavigationDefaults::DefaultChildColl<Rec::TrackParticleContainer , double >::type >::getParameter ( const CONT *  objectContainer,
const external_index_type theIndex 
) const
inherited

◆ getParameter() [3/3]

double Navigable< Rec::TrackParticleContainer , double , typename NavigationDefaults::DefaultChildColl<Rec::TrackParticleContainer , double >::type >::getParameter ( object_iter theIter) const
inherited

◆ getPtrToConstituents() [1/2]

constituent_coll* Navigable< Rec::TrackParticleContainer , double , typename NavigationDefaults::DefaultChildColl<Rec::TrackParticleContainer , double >::type >::getPtrToConstituents ( )
inlineprotectedinherited

Definition at line 296 of file Navigable.h.

297  { return &m_constituents; }

◆ getPtrToConstituents() [2/2]

const constituent_coll* Navigable< Rec::TrackParticleContainer , double , typename NavigationDefaults::DefaultChildColl<Rec::TrackParticleContainer , double >::type >::getPtrToConstituents ( ) const
inlineprotectedinherited

Definition at line 294 of file Navigable.h.

295  { return &m_constituents; }

◆ getTrackWeight() [1/2]

double Analysis::TrackConstituents::getTrackWeight ( const Rec::TrackParticle theTrack) const

Definition at line 111 of file TrackConstituents.cxx.

112  {
113  // from Navigable
114  return (this->contains(theContainer,theIndex))
115  ? this->getParameter(theContainer,theIndex)
116  : 0.;
117  }

◆ getTrackWeight() [2/2]

double Analysis::TrackConstituents::getTrackWeight ( const Rec::TrackParticleContainer theContainer,
index_type theIndex 
) const

Definition at line 119 of file TrackConstituents.cxx.

120  {
121  std::vector<const Rec::TrackParticle*>* tracks =
122  new std::vector<const Rec::TrackParticle*>();
123 
124  for(iterator it = begin(); it!= end(); ++it)
125  tracks->push_back(*it);
126 

◆ insertElement() [1/4]

void Navigable< Rec::TrackParticleContainer , double , typename NavigationDefaults::DefaultChildColl<Rec::TrackParticleContainer , double >::type >::insertElement ( const ElementLink< CONT > &  el,
const RPAR &  objectParameter = RPAR(),
size_t  sizeHint = 0 
)
inherited

◆ insertElement() [2/4]

void Navigable< Rec::TrackParticleContainer , double , typename NavigationDefaults::DefaultChildColl<Rec::TrackParticleContainer , double >::type >::insertElement ( const CONT *  objectContainer,
const constituent_type constituentObject,
const RPAR &  objectParameter = RPAR(),
size_t  sizeHint = 0 
)
inherited

◆ insertElement() [3/4]

void Navigable< Rec::TrackParticleContainer , double , typename NavigationDefaults::DefaultChildColl<Rec::TrackParticleContainer , double >::type >::insertElement ( const CONT *  objectContainer,
const external_index_type theIndex,
const RPAR &  objectParameter = RPAR(),
size_t  sizeHint = 0 
)
inherited

◆ insertElement() [4/4]

void Navigable< Rec::TrackParticleContainer , double , typename NavigationDefaults::DefaultChildColl<Rec::TrackParticleContainer , double >::type >::insertElement ( const CONT *  objectContainer,
const external_index_type theIndex,
IProxyDict sg,
const RPAR &  objectParameter = RPAR(),
size_t  sizeHint = 0 
)
inherited

◆ name()

NameType Analysis::TrackConstituents::name ( ) const
virtual

returns the infoType of the info objects.

This has to be set by the tagger.

Implements Analysis::IConstituent.

Definition at line 41 of file TrackConstituents.cxx.

44 {

◆ nTracks()

unsigned int Analysis::TrackConstituents::nTracks ( ) const
inline

Definition at line 81 of file TrackConstituents.h.

◆ putElement() [1/2]

void Navigable< Rec::TrackParticleContainer , double , typename NavigationDefaults::DefaultChildColl<Rec::TrackParticleContainer , double >::type >::putElement ( const CONT *  objectContainer,
const constituent_type constituentObject,
const RPAR &  objectParameter = RPAR(),
size_t  sizeHint = 0 
)
inherited

◆ putElement() [2/2]

void Navigable< Rec::TrackParticleContainer , double , typename NavigationDefaults::DefaultChildColl<Rec::TrackParticleContainer , double >::type >::putElement ( const CONT *  objectContainer,
const external_index_type theIndex,
const RPAR &  objectParameter = RPAR(),
size_t  sizeHint = 0 
)
inherited

◆ remove() [1/2]

bool Navigable< Rec::TrackParticleContainer , double , typename NavigationDefaults::DefaultChildColl<Rec::TrackParticleContainer , double >::type >::remove ( const constituent_type aConstituent)
inherited

◆ remove() [2/2]

bool Navigable< Rec::TrackParticleContainer , double , typename NavigationDefaults::DefaultChildColl<Rec::TrackParticleContainer , double >::type >::remove ( const CONT *  objectContainer,
const external_index_type theIndex 
)
inherited

◆ removeAll()

bool Navigable< Rec::TrackParticleContainer , double , typename NavigationDefaults::DefaultChildColl<Rec::TrackParticleContainer , double >::type >::removeAll ( )
inlineinherited

Definition at line 237 of file Navigable.h.

237 { m_constituents.clear(); return this->size() == 0 ; }

◆ replace()

bool Navigable< Rec::TrackParticleContainer , double , typename NavigationDefaults::DefaultChildColl<Rec::TrackParticleContainer , double >::type >::replace ( const CONT *  newObjectContainer)
inherited

replace old object container with a new container assumes that all objects have been or will be inserted to the new container

◆ reweight() [1/3]

void Navigable< Rec::TrackParticleContainer , double , typename NavigationDefaults::DefaultChildColl<Rec::TrackParticleContainer , double >::type >::reweight ( const constituent_type constituentObject,
const RPAR &  objectParameter = RPAR() 
)
inherited

◆ reweight() [2/3]

void Navigable< Rec::TrackParticleContainer , double , typename NavigationDefaults::DefaultChildColl<Rec::TrackParticleContainer , double >::type >::reweight ( const CONT *  objectContainer,
const external_index_type theIndex,
const RPAR &  objectParameter = RPAR() 
)
inherited

◆ reweight() [3/3]

void Navigable< Rec::TrackParticleContainer , double , typename NavigationDefaults::DefaultChildColl<Rec::TrackParticleContainer , double >::type >::reweight ( object_iter objectIter,
const RPAR &  objectParameter = RPAR() 
)
inherited

◆ set_constituent() [1/2]

void Analysis::TrackConstituents::set_constituent ( const Rec::TrackParticleContainer theContainer,
const Rec::TrackParticle theTrack,
double  weight = 0. 
)

set method for tracks.

By default, navigable weight = 0 which reflects that the tracks do not contribute to the kinematics.

Definition at line 84 of file TrackConstituents.cxx.

85  {
86  double newWeight = weight;

◆ set_constituent() [2/2]

void Analysis::TrackConstituents::set_constituent ( const Rec::TrackParticleContainer theContainer,
index_type theIndex,
double  weight = 0. 
)

Definition at line 88 of file TrackConstituents.cxx.

89  {
90  // update weight

◆ set_track() [1/2]

void Analysis::TrackConstituents::set_track ( const Rec::TrackParticleContainer theContainer,
const Rec::TrackParticle theTrack,
double  weight = 0. 
)

set method for tracks.

By default, navigable weight = 0 which reflects that the tracks do not contribute to the kinematics.

Definition at line 47 of file TrackConstituents.cxx.

59  {
60  double newWeight = weight;
61  // track already in collection
62  if ( this->contains(theContainer,theIndex) )
63  {
64  // update weight

◆ set_track() [2/2]

void Analysis::TrackConstituents::set_track ( const Rec::TrackParticleContainer theContainer,
index_type theIndex,
double  weight = 0. 
)

set method for tracks.

By default, navigable weight = 0 which reflects that the tracks do not contribute to the kinematics.

Definition at line 66 of file TrackConstituents.cxx.

77  { this->set_track(theContainer, theTrack, weight); }
78 
80  index_type& theIndex, double weight)
81  { this->set_track(theContainer, theIndex, weight); }
82 

◆ setName()

void Analysis::TrackConstituents::setName ( NameType name)
virtual

to set the name

Implements Analysis::IConstituent.

Definition at line 39 of file TrackConstituents.cxx.

40 {

◆ size()

virtual unsigned int Navigable< Rec::TrackParticleContainer , double , typename NavigationDefaults::DefaultChildColl<Rec::TrackParticleContainer , double >::type >::size ( ) const
virtualinherited

◆ toKidsAfterAccept() [1/2]

virtual void Navigable< Rec::TrackParticleContainer , double , typename NavigationDefaults::DefaultChildColl<Rec::TrackParticleContainer , double >::type >::toKidsAfterAccept ( INavigationToken navToken) const
privatevirtualinherited

◆ toKidsAfterAccept() [2/2]

virtual void Navigable< Rec::TrackParticleContainer , double , typename NavigationDefaults::DefaultChildColl<Rec::TrackParticleContainer , double >::type >::toKidsAfterAccept ( INavigationToken navToken,
const std::any &  aParameter 
) const
privatevirtualinherited

◆ toKidsAfterReject() [1/2]

virtual void Navigable< Rec::TrackParticleContainer , double , typename NavigationDefaults::DefaultChildColl<Rec::TrackParticleContainer , double >::type >::toKidsAfterReject ( INavigationToken navToken) const
privatevirtualinherited

◆ toKidsAfterReject() [2/2]

virtual void Navigable< Rec::TrackParticleContainer , double , typename NavigationDefaults::DefaultChildColl<Rec::TrackParticleContainer , double >::type >::toKidsAfterReject ( INavigationToken navToken,
const std::any &  aParameter 
) const
privatevirtualinherited

◆ tracks()

std::vector< const Rec::TrackParticle * > * Analysis::TrackConstituents::tracks ( ) const

get a vector of trackparticles. user must delete the vector, but not constituents

Definition at line 128 of file TrackConstituents.cxx.

Member Data Documentation

◆ m_constituents

constituent_coll Navigable< Rec::TrackParticleContainer , double , typename NavigationDefaults::DefaultChildColl<Rec::TrackParticleContainer , double >::type >::m_constituents
privateinherited

Definition at line 345 of file Navigable.h.

◆ m_name

std::string Analysis::TrackConstituents::m_name
private

Definition at line 118 of file TrackConstituents.h.


The documentation for this class was generated from the following files:
Navigable< Rec::TrackParticleContainer, double >::m_constituents
constituent_coll m_constituents
Definition: Navigable.h:345
Analysis::TrackConstituents::set_track
void set_track(const Rec::TrackParticleContainer *, const Rec::TrackParticle *, double weight=0.)
set method for tracks.
Definition: TrackConstituents.cxx:47
skel.it
it
Definition: skel.GENtoEVGEN.py:423
Navigable< Rec::TrackParticleContainer, double >::begin
virtual object_iter begin() const
Navigable< Rec::TrackParticleContainer, double >::contains
bool contains(const constituent_type *aConstituent) const
Navigable< Rec::TrackParticleContainer, double >::end
virtual object_iter end() const
dqt_zlumi_pandas.weight
int weight
Definition: dqt_zlumi_pandas.py:200
Analysis::TrackConstituents::TrackConstituents
TrackConstituents()
constructor
Definition: TrackConstituents.cxx:32
Analysis::TrackConstituents::iterator
Navigable< Rec::TrackParticleContainer, double >::object_iter iterator
Definition: TrackConstituents.h:66
Analysis::TrackConstituents::set_constituent
void set_constituent(const Rec::TrackParticleContainer *, const Rec::TrackParticle *, double weight=0.)
set method for tracks.
Definition: TrackConstituents.cxx:84
Rec::TrackParticleContainer
Definition: Reconstruction/Particle/Particle/TrackParticleContainer.h:33
Analysis::TrackConstituents::m_name
std::string m_name
Definition: TrackConstituents.h:118
Navigable< Rec::TrackParticleContainer, double >::getParameter
double getParameter(const constituent_type *aConstituent) const
Navigable< Rec::TrackParticleContainer, double >::size
virtual unsigned int size() const
Analysis::TrackConstituents::tracks
std::vector< const Rec::TrackParticle * > * tracks() const
get a vector of trackparticles. user must delete the vector, but not constituents
Definition: TrackConstituents.cxx:128
index_type
unsigned int index_type
Definition: FPGATrackSimSGToRawHitsTool.h:37