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

#include <CDMud.h>

Public Member Functions

virtual ~CDMud ()
 

Static Public Member Functions

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 CDMud.h.

Constructor & Destructor Documentation

◆ ~CDMud()

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

Definition at line 54 of file CDMud.h.

54{}

Member Function Documentation

◆ clear()

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

Definition at line 72 of file 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()
Definition CDMud.cc:89

◆ footprints()

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

Definition at line 89 of file CDMud.cc.

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

◆ get()

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

Definition at line 59 of file 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}

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