/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Event/DecayChain/DecayChain-00-00-03-slc6tag/DecayChain/List/Template/ChosenConjugateList.cc

Go to the documentation of this file.
00001 #ifndef DCHAIN_CHOSENCONJUGATELIST_CC
00002 #define DCHAIN_CHOSENCONJUGATELIST_CC
00003 // -*- C++ -*-
00004 //
00005 // Package:     DChain
00006 // Module:      ChosenConjugateList
00007 // 
00008 // Description: <one line class summary>
00009 //
00010 // Implimentation:
00011 //     <Notes on implimentation>
00012 //
00013 // Author:      Simon Patton
00014 // Created:     Fri Oct  4 11:04:56 EDT 1996
00015 // $Id: ChosenConjugateList.cc,v 1.1.1.1 2009/03/03 06:06:56 maqm Exp $
00016 //
00017 // Revision history
00018 //
00019 // $Log: ChosenConjugateList.cc,v $
00020 // Revision 1.1.1.1  2009/03/03 06:06:56  maqm
00021 // first import of DecayChain
00022 //
00023 // Revision 1.1  2006/01/11 20:28:34  cdj
00024 // massive class renaming, addition of [] for selection and unit tests
00025 //
00026 //
00027 
00028 // system include files
00029 #include <stdlib.h>  // required for 'exit'
00030 
00031 // user include files
00032 #include "DecayChain/Function/DCAnalysisFunction.h"
00033 #include "DecayChain/Function/DCConjugateFunction.h"
00034 #include "DecayChain/Element/conjugation.h"
00035 #include "DecayChain/Element/LabeledParticle.h"
00036 #include "DecayChain/Iterator/MuteWholeItr.h"
00037 #include "DecayChain/Iterator/WholeItr.h"
00038 #include "DecayChain/Iterator/PartialItr.h"
00039 #include "DecayChain/List/LabeledParticleList.h"
00040 
00041 #include "DecayChain/List/ChosenConjugateList.h"
00042 
00043 //
00044 // constants, enums and typedefs
00045 //
00046 namespace dchain {
00047 //
00048 // static data member definitions
00049 //
00050 
00051 //
00052 // constructors and destructor
00053 //
00054 template < class Conjugate , class CandidateClass >
00055 ChosenConjugateList< Conjugate , CandidateClass >::ChosenConjugateList( LabeledParticleList< Conjugate , CandidateClass >& aLabeledParticleList ,
00056                                                             const conjugation::Label aLabel ) :
00057    ConjugateList< CandidateClass >( aLabel ) ,
00058    m_list( &aLabeledParticleList )
00059 {
00060 }
00061 
00062 template < class Conjugate , class CandidateClass >
00063 ChosenConjugateList< Conjugate , CandidateClass >::~ChosenConjugateList()
00064 {
00065 }
00066 
00067 //
00068 // member functions
00069 //
00070 template < class Conjugate , class CandidateClass >
00071 typename ChosenConjugateList< Conjugate , CandidateClass >::iterator ChosenConjugateList< Conjugate , CandidateClass >::particle_begin()
00072 {
00073    return ( m_list->begin() ) ;
00074 }
00075 
00076 template < class Conjugate , class CandidateClass >
00077 typename ChosenConjugateList< Conjugate , CandidateClass >::iterator ChosenConjugateList< Conjugate , CandidateClass >::particle_end()
00078 {
00079    return ( m_list->end() ) ;
00080 }
00081 
00082 template < class Conjugate , class CandidateClass >
00083 LabeledCandidateList< CandidateClass >& ChosenConjugateList< Conjugate , CandidateClass >::labeledCandidateList()
00084 {
00085    return ( *m_list ) ;
00086 }
00087 
00088 //
00089 // const member functions
00090 //
00091 template < class Conjugate , class CandidateClass >
00092 typename ChosenConjugateList< Conjugate , CandidateClass >::const_iterator ChosenConjugateList< Conjugate , CandidateClass >::particle_begin() const
00093 {
00094 // Need to cast to 'const' to get the right function call
00095   return ( (*(const LabeledParticleList< Conjugate , CandidateClass >*)(m_list.pointer())).begin() ) ;
00096 }
00097 
00098 template < class Conjugate , class CandidateClass >
00099 typename ChosenConjugateList< Conjugate , CandidateClass >::const_iterator ChosenConjugateList< Conjugate , CandidateClass >::particle_end() const
00100 {
00101 // Need to cast to 'const' to get the right function call
00102   return ( (*(const LabeledParticleList< Conjugate , CandidateClass >*)(m_list.pointer())).end() ) ;
00103 }
00104 
00105 template < class Conjugate , class CandidateClass >
00106 typename ChosenConjugateList< Conjugate , CandidateClass >::const_partial_iterator ChosenConjugateList< Conjugate , CandidateClass >::partial_particle_begin() const
00107 {
00108 // Need to cast to 'const' to get the right function call
00109   return ( (*(const LabeledParticleList< Conjugate , CandidateClass >*)(m_list.pointer())).begin( this->label() ) ) ;
00110 }
00111 
00112 template < class Conjugate , class CandidateClass >
00113 typename ChosenConjugateList< Conjugate , CandidateClass >::const_partial_iterator ChosenConjugateList< Conjugate , CandidateClass >::partial_particle_end() const
00114 {
00115 // Need to cast to 'const' to get the right function call
00116   return ( (*(const LabeledParticleList< Conjugate , CandidateClass >*)(m_list.pointer())).end( this->label() ) ) ;
00117 }
00118 
00119 
00120 template < class Conjugate , class CandidateClass >
00121 const LabeledCandidateList< CandidateClass >& ChosenConjugateList< Conjugate , CandidateClass >::labeledCandidateList() const
00122 {
00123    return ( *m_list ) ;
00124 }
00125 
00126 //
00127 // static member functions
00128 //
00129 }
00130 #endif /* DCHAIN_CHOSENCONJUGATELIST_CC */

Generated on Tue Nov 29 22:58:23 2016 for BOSS_7.0.2 by  doxygen 1.4.7