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

Atlfast::AssocTypeConverter< T > Class Template Reference

#include <AssocTypeConverter.h>

List of all members.


Public Methods

 AssocTypeConverter (const T &)
 AssocTypeConverter (const T *)
 AssocTypeConverter (const DataVector< T > &t)
 ~AssocTypeConverter ()
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::AssocTypeConverter< T >


Constructor & Destructor Documentation

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

Definition at line 85 of file AssocTypeConverter.h.

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

00085                                                        {
00086     m_am = new SimpleKinematic;
00087     std::for_each(t.begin(), t.end(), Associator2(m_am) );     
00088   }

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

Definition at line 92 of file AssocTypeConverter.h.

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

00092                                                        {
00093     m_am = new SimpleKinematic;
00094     std::for_each(t->begin(), t->end(), Associator2(m_am) );     
00095   }

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

Definition at line 78 of file AssocTypeConverter.h.

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

00078                                                                    {
00079     m_am = new SimpleKinematic;
00080     std::for_each(t.begin(), t.end(), Associator2(m_am) );     
00081   }

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

Definition at line 36 of file AssocTypeConverter.h.

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

00036 {delete m_am;}

Member Function Documentation

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

Definition at line 99 of file AssocTypeConverter.h.

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

Referenced by Atlfast::ClusterMaker::execute().

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

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

Definition at line 114 of file AssocTypeConverter.h.

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

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

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

Definition at line 128 of file AssocTypeConverter.h.

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

00128                                               {
00129     Jet x;
00130     std::vector<const Jet*> temp = m_am->associations(x);
00131 
00132     JetCollection* collection = new JetCollection;
00133     std::transform(
00134                    temp.begin(), temp.end(), std::back_inserter(*collection),
00135                    NewNoConst<Jet>()
00136                    );
00137 
00138     return collection;
00139   }

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

Definition at line 144 of file AssocTypeConverter.h.

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

00144                                                  {
00145     ReconstructedParticle x;
00146     std::vector<const ReconstructedParticle*> temp = m_am->associations(x);
00147 
00148     ReconstructedParticleCollection* collection = 
00149       new ReconstructedParticleCollection;
00150     std::transform(
00151                    temp.begin(), temp.end(), std::back_inserter(*collection),
00152                    NewNoConst<ReconstructedParticle>()
00153                    );
00154 
00155     return collection;
00156   }

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

Definition at line 160 of file AssocTypeConverter.h.

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

00160                                                                       {  
00161     SimpleKinematic x;
00162     std::vector<const SimpleKinematic*> temp = m_am->associations(x);
00163 
00164     SimpleKinematicCollection* collection = new SimpleKinematicCollection;
00165     std::transform(
00166                    temp.begin(), temp.end(), std::back_inserter(*collection),
00167                    NewNoConst<SimpleKinematic>()
00168                    );
00169 
00170     return collection;
00171   }

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

Definition at line 175 of file AssocTypeConverter.h.

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

Referenced by Atlfast::ClusterMaker::execute().

00175                                                   {  
00176     Track x;
00177     std::vector<const Track*> temp = m_am->associations(x);
00178 
00179     TrackCollection* collection = new TrackCollection;
00180     std::transform(
00181                    temp.begin(), temp.end(), std::back_inserter(*collection),
00182                    NewNoConst<Track>()
00183                    );
00184 
00185     return collection;
00186   }

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

Definition at line 190 of file AssocTypeConverter.h.

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

00190                                                                  {  
00191     std::vector<const IKinematic*> temp = m_am->ikinematics();
00192 
00193     IKinematicCollection* collection = new IKinematicCollection;
00194     
00195     std::transform(
00196                    temp.begin(), temp.end(), std::back_inserter(*collection),
00197                    NewNoConst<IKinematic>()
00198                    );
00199 
00200     return collection;
00201   }

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

Definition at line 205 of file AssocTypeConverter.h.

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

00205                                                                       {  
00206     std::vector<const IKinematic*> temp = m_am->ikinematics();
00207 
00208     std::vector<IKinematic*>* collection = new std::vector<IKinematic*>;
00209     
00210     std::transform(
00211                    temp.begin(), temp.end(), std::back_inserter(*collection),
00212                    NewNoConst<IKinematic>()
00213                    );
00214 
00215     return collection;
00216   }

Member Data Documentation

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

Definition at line 47 of file AssocTypeConverter.h.

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


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