Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

Atlfast::AssocTypeRecoverer< T > Class Template Reference

#include <AssocTypeRecoverer.h>

List of all members.


Public Methods

 AssocTypeRecoverer (const T &)
 AssocTypeRecoverer (const T *)
 AssocTypeRecoverer (const DataVector< T > &t)
 ~AssocTypeRecoverer ()
ITwoCptCellCollection * cells ()
ClusterCollection * clusters ()
JetCollection * jets ()
ReconstructedParticleCollection * reconstructedParticles ()
SimpleKinematicCollection * simpleKinematics ()
TrackCollection * tracks ()
IKinematicCollection * allAsIKinematics ()
std::vector< IKinematic * > * vectorOfIKinematics ()

Private Attributes

IAssociationManager * m_am

template<class T>
class Atlfast::AssocTypeRecoverer< T >


Constructor & Destructor Documentation

template<class T>
Atlfast::AssocTypeRecoverer< T >::AssocTypeRecoverer const T &    [inline]
 

Definition at line 88 of file AssocTypeRecoverer.h.

References Atlfast::AssocTypeRecoverer< T >::m_am.

00088                                                        {
00089     m_am = new SimpleKinematic;
00090     std::for_each(t.begin(), t.end(), Associator(m_am) );     
00091   }

template<class T>
Atlfast::AssocTypeRecoverer< T >::AssocTypeRecoverer const T *    [inline]
 

Definition at line 95 of file AssocTypeRecoverer.h.

References Atlfast::AssocTypeRecoverer< T >::m_am.

00095                                                        {
00096     m_am = new SimpleKinematic;
00097     std::for_each(t->begin(), t->end(), Associator(m_am) );     
00098   }

template<class T>
Atlfast::AssocTypeRecoverer< T >::AssocTypeRecoverer const DataVector< T > &    t [inline]
 

Definition at line 81 of file AssocTypeRecoverer.h.

References Atlfast::AssocTypeRecoverer< T >::m_am.

00081                                                                    {
00082     m_am = new SimpleKinematic;
00083     std::for_each(t.begin(), t.end(), Associator(m_am) );     
00084   }

template<class T>
Atlfast::AssocTypeRecoverer< T >::~AssocTypeRecoverer   [inline]
 

Definition at line 36 of file AssocTypeRecoverer.h.

References Atlfast::AssocTypeRecoverer< T >::m_am.

00036 {delete m_am;}

Member Function Documentation

template<class T>
ITwoCptCellCollection * Atlfast::AssocTypeRecoverer< T >::cells   [inline]
 

Definition at line 102 of file AssocTypeRecoverer.h.

References Atlfast::AssocTypeRecoverer< T >::m_am.

00102                                                        { 
00103     SimpleKinematic y;
00104     TwoCptCell x;
00105     std::vector<const TwoCptCell*> temp = m_am->associations(x);
00106     ITwoCptCellCollection* collection = new ITwoCptCellCollection;
00107     std::transform(
00108                    temp.begin(), temp.end(), std::back_inserter(*collection),
00109                    NoConst<TwoCptCell>()
00110                    );
00111     
00112     return collection;
00113   }

template<class T>
ClusterCollection * Atlfast::AssocTypeRecoverer< T >::clusters   [inline]
 

Definition at line 117 of file AssocTypeRecoverer.h.

References Atlfast::AssocTypeRecoverer< T >::m_am.

00117                                                       {
00118     Cluster x;
00119     std::vector<const Cluster*> temp = m_am->associations(x);
00120 
00121     ClusterCollection* collection = new ClusterCollection;
00122     std::transform(
00123                    temp.begin(), temp.end(), std::back_inserter(*collection),
00124                    NoConst<Cluster>()
00125                    );
00126 
00127     return collection;
00128   }

template<class T>
JetCollection * Atlfast::AssocTypeRecoverer< T >::jets   [inline]
 

Definition at line 132 of file AssocTypeRecoverer.h.

References Atlfast::AssocTypeRecoverer< T >::m_am.

00132                                               {
00133     Jet x;
00134     std::vector<const Jet*> temp = m_am->associations(x);
00135 
00136     JetCollection* collection = new JetCollection;
00137     std::transform(
00138                    temp.begin(), temp.end(), std::back_inserter(*collection),
00139                    NoConst<Jet>()
00140                    );
00141 
00142     return collection;
00143   }

template<class T>
ReconstructedParticleCollection * Atlfast::AssocTypeRecoverer< T >::reconstructedParticles   [inline]
 

Definition at line 148 of file AssocTypeRecoverer.h.

References Atlfast::AssocTypeRecoverer< T >::m_am.

00148                                                  {
00149     ReconstructedParticle x;
00150     std::vector<const ReconstructedParticle*> temp = m_am->associations(x);
00151 
00152     ReconstructedParticleCollection* collection = 
00153       new ReconstructedParticleCollection;
00154     std::transform(
00155                    temp.begin(), temp.end(), std::back_inserter(*collection),
00156                    NoConst<ReconstructedParticle>()
00157                    );
00158 
00159     return collection;
00160   }

template<class T>
SimpleKinematicCollection * Atlfast::AssocTypeRecoverer< T >::simpleKinematics   [inline]
 

Definition at line 164 of file AssocTypeRecoverer.h.

References Atlfast::AssocTypeRecoverer< T >::m_am.

00164                                                                       {  
00165     SimpleKinematic x;
00166     std::vector<const SimpleKinematic*> temp = m_am->associations(x);
00167 
00168     SimpleKinematicCollection* collection = new SimpleKinematicCollection;
00169     std::transform(
00170                    temp.begin(), temp.end(), std::back_inserter(*collection),
00171                    NoConst<SimpleKinematic>()
00172                    );
00173 
00174     return collection;
00175   }

template<class T>
TrackCollection * Atlfast::AssocTypeRecoverer< T >::tracks   [inline]
 

Definition at line 179 of file AssocTypeRecoverer.h.

References Atlfast::AssocTypeRecoverer< T >::m_am.

00179                                                   {  
00180     Track x;
00181     std::vector<const Track*> temp = m_am->associations(x);
00182 
00183     TrackCollection* collection = new TrackCollection;
00184     std::transform(
00185                    temp.begin(), temp.end(), std::back_inserter(*collection),
00186                    NoConst<Track>()
00187                    );
00188 
00189     return collection;
00190   }

template<class T>
IKinematicCollection * Atlfast::AssocTypeRecoverer< T >::allAsIKinematics   [inline]
 

Definition at line 194 of file AssocTypeRecoverer.h.

References Atlfast::AssocTypeRecoverer< T >::m_am.

Referenced by Atlfast::SharedConeStrategy::makeClusters().

00194                                                                  {  
00195     std::vector<const IKinematic*> temp = m_am->ikinematics();
00196 
00197     IKinematicCollection* collection = new IKinematicCollection;
00198     
00199     std::transform(
00200                    temp.begin(), temp.end(), std::back_inserter(*collection),
00201                    NoConst<IKinematic>()
00202                    );
00203 
00204     return collection;
00205   }

template<class T>
std::vector< IKinematic * > * Atlfast::AssocTypeRecoverer< T >::vectorOfIKinematics   [inline]
 

Definition at line 209 of file AssocTypeRecoverer.h.

References Atlfast::AssocTypeRecoverer< T >::m_am.

Referenced by Atlfast::SharedConeStrategy::makeClusters().

00209                                                                       {  
00210     std::vector<const IKinematic*> temp = m_am->ikinematics();
00211 
00212     std::vector<IKinematic*>* collection = new std::vector<IKinematic*>;
00213     
00214     std::transform(
00215                    temp.begin(), temp.end(), std::back_inserter(*collection),
00216                    NoConst<IKinematic>()
00217                    );
00218 
00219     return collection;
00220   }

Member Data Documentation

template<class T>
IAssociationManager* Atlfast::AssocTypeRecoverer< T >::m_am [private]
 

Definition at line 47 of file AssocTypeRecoverer.h.

Referenced by Atlfast::AssocTypeRecoverer< T >::allAsIKinematics(), Atlfast::AssocTypeRecoverer< T >::AssocTypeRecoverer(), Atlfast::AssocTypeRecoverer< T >::cells(), Atlfast::AssocTypeRecoverer< T >::clusters(), Atlfast::AssocTypeRecoverer< T >::jets(), Atlfast::AssocTypeRecoverer< T >::reconstructedParticles(), Atlfast::AssocTypeRecoverer< T >::simpleKinematics(), Atlfast::AssocTypeRecoverer< T >::tracks(), Atlfast::AssocTypeRecoverer< T >::vectorOfIKinematics(), and Atlfast::AssocTypeRecoverer< T >::~AssocTypeRecoverer().


The documentation for this class was generated from the following file:
Generated on Tue Mar 18 11:18:49 2003 for AtlfastAlgs by doxygen1.3-rc1