BOSS 7.0.2
BESIII Offline Software System
Loading...
Searching...
No Matches
CDMud< Evidence > Class Template Reference

#include <CDMud.h>

Public Member Functions

virtual ~CDMud ()
 
virtual ~CDMud ()
 

Static Public Member Functions

static const CDFootPrintget (const Evidence *aEvidence)
 
static void clear ()
 
static std::vector< const CDFootPrint * > & footprints ()
 
static const CDFootPrintget (const Evidence *aEvidence)
 
static void clear ()
 
static std::vector< const CDFootPrint * > & footprints ()
 

Detailed Description

template<class Evidence>
class CDMud< Evidence >

Definition at line 44 of file Event/BesDChain/BesDChain-00-00-14/BesDChain/CDMud.h.

Constructor & Destructor Documentation

◆ ~CDMud() [1/2]

template<class Evidence >
virtual CDMud< Evidence >::~CDMud ( )
inlinevirtual

Definition at line 54 of file Event/BesDChain/BesDChain-00-00-14/BesDChain/CDMud.h.

54{}

◆ ~CDMud() [2/2]

template<class Evidence >
virtual CDMud< Evidence >::~CDMud ( )
inlinevirtual

Definition at line 54 of file InstallArea/include/BesDChain/BesDChain/CDMud.h.

54{}

Member Function Documentation

◆ clear() [1/2]

template<class Evidence >
void CDMud< Evidence >::clear
static

Definition at line 72 of file Event/BesDChain/BesDChain-00-00-14/BesDChain/Template/CDMud.cc.

73{
74 vector< const CDFootPrint* >& prints( footprints() ) ;
75 vector< const CDFootPrint* >::const_iterator finished( prints.end() ) ;
76 for ( vector< const CDFootPrint* >::const_iterator print( prints.begin() ) ;
77 finished != print ;
78 ++print ) {
79
80 // cast way const for delete to work
81 delete ( (CDFootPrint*)(*print) ) ;
82 }
83 prints.erase( prints.begin() ,
84 prints.end() ) ;
85}
static std::vector< const CDFootPrint * > & footprints()

◆ clear() [2/2]

template<class Evidence >
static void CDMud< Evidence >::clear ( )
static

◆ footprints() [1/2]

template<class Evidence >
vector< const CDFootPrint * > & CDMud< Evidence >::footprints
static

Definition at line 89 of file Event/BesDChain/BesDChain-00-00-14/BesDChain/Template/CDMud.cc.

90{
91 static vector< const CDFootPrint* > prints ;
92 return ( prints ) ;
93}

◆ footprints() [2/2]

template<class Evidence >
static std::vector< const CDFootPrint * > & CDMud< Evidence >::footprints ( )
static

◆ get() [1/2]

template<class Evidence >
const CDFootPrint & CDMud< Evidence >::get ( const Evidence *  aEvidence)
static

Definition at line 59 of file Event/BesDChain/BesDChain-00-00-14/BesDChain/Template/CDMud.cc.

60{
61 unsigned int id( aEvidence->trackId() ) ;
62 vector< const CDFootPrint* >& prints( footprints() ) ;
63 while ( id >= prints.size() ) {
64 CDFootPrint* tmp( new CDFootPrint ) ;
65 (*tmp).fresh() ;
66 prints.push_back( tmp ) ;
67 }
68 return ( *(prints[ id ]) ) ;
69}

◆ get() [2/2]

template<class Evidence >
static const CDFootPrint & CDMud< Evidence >::get ( const Evidence *  aEvidence)
static

The documentation for this class was generated from the following files: