A collection of Trace<T>,which provides methods to access different sources. More...
#include <MultiTrace.h>
Public Types | |
typedef boost::transform_iterator < LabeledObjectFunctor, typename MultiObjectContainer::const_iterator, LabeledTrace< T > > | ConstIterator |
typedef boost::transform_iterator < LabeledObjectFunctor, typename MultiObjectContainer::iterator, LabeledTrace< T > > | Iterator |
typedef utl::detail::LabeledObjectFunctor < Trace< T >, LabeledTrace< T > > | LabeledObjectFunctor |
typedef std::map< int, Trace < T > * > | MultiObjectContainer |
Public Member Functions | |
void | AddTrace (const int size, const double binSize, const int label) |
void | AddTrace (const Trace< T > &trace, const int label) |
Iterator | Begin () |
ConstIterator | Begin () const |
void | Clear () |
Iterator | End () |
ConstIterator | End () const |
unsigned int | GetNLabels () const |
Trace< T > & | GetTrace (const int label=0) |
Returns the trace for /par source. More... | |
const Trace< T > & | GetTrace (const int label=0) const |
bool | HasLabel (const int label) const |
operator bool () const | |
bool | operator!= (const MultiObject &mobj) const |
bool | operator== (const MultiObject &mobj) const |
void | RemoveTrace (const int label) |
Protected Member Functions | |
void | AddObject (const Trace< T > &obj, const int label) |
add with deep copy of the object More... | |
void | AddObject (Trace< T > *const obj, const int label) |
add that takes the ownership More... | |
Trace< T > & | GetObject (const int label=0) |
const Trace< T > & | GetObject (const int label=0) const |
void | RemoveObject (const int label) |
Private Types | |
typedef MultiObject< Trace< T > , LabeledTrace< T > > | Base |
A collection of Trace<T>,which provides methods to access different sources.
For the FD case examples are:
T | is the type stored in the trace Trace (double, int etc) |
Definition at line 64 of file MultiTrace.h.
|
private |
Definition at line 66 of file MultiTrace.h.
|
inherited |
Definition at line 81 of file MultiObject.h.
|
inherited |
Definition at line 78 of file MultiObject.h.
|
inherited |
Definition at line 75 of file MultiObject.h.
|
inherited |
Definition at line 74 of file MultiObject.h.
|
inlineprotectedinherited |
add with deep copy of the object
Definition at line 128 of file MultiObject.h.
References utl::MultiObject< T, LabeledObjectType >::AddObject().
Referenced by utl::MultiTrace< int >::AddTrace().
|
protectedinherited |
add that takes the ownership
|
inline |
Creates a new Trace of size /par size and binning /par binsize and assign source /par source
Definition at line 76 of file MultiTrace.h.
Referenced by sevt::PMTRecData::MakeVEMTrace(), sevt::Station::MakeVEMTrace(), io::MultiTrace_ROOT< T >::operator>>(), TestOfflineUtils_ROOT_io::testMultiTrace(), and testTraces::testMultiTrace().
|
inline |
Copies trace in the internal list and assign source /par source -The original can be deleted
Definition at line 81 of file MultiTrace.h.
|
inlineinherited |
Definition at line 83 of file MultiObject.h.
References utl::MultiObject< T, LabeledObjectType >::fObjects.
Referenced by TestOfflineUtils_ROOT_io::IsEqual().
|
inlineinherited |
Definition at line 84 of file MultiObject.h.
References utl::MultiObject< T, LabeledObjectType >::fObjects.
|
inherited |
|
inlineinherited |
Definition at line 85 of file MultiObject.h.
References utl::MultiObject< T, LabeledObjectType >::fObjects.
Referenced by TestOfflineUtils_ROOT_io::IsEqual().
|
inlineinherited |
Definition at line 86 of file MultiObject.h.
References utl::MultiObject< T, LabeledObjectType >::fObjects.
|
inlineinherited |
Definition at line 89 of file MultiObject.h.
References utl::MultiObject< T, LabeledObjectType >::fObjects.
Referenced by TestOfflineUtils_ROOT_io::IsEqual().
|
protectedinherited |
Referenced by utl::MultiTrace< int >::GetTrace().
|
protectedinherited |
|
inline |
Returns the trace for /par source.
Definition at line 70 of file MultiTrace.h.
Referenced by sevt::PMT::GetFADCTrace(), sevt::PMTSimData::GetFADCTrace(), sevt::PMT::GetFADCTraceD(), sevt::PMTSimData::GetFADCTraceD(), sevt::Scintillator::GetMIPTrace(), sevt::PMTRecData::GetVEMTrace(), sevt::Station::GetVEMTrace(), TestOfflineUtils_ROOT_io::IsEqual(), and testTraces::testMultiTrace().
|
inline |
Definition at line 72 of file MultiTrace.h.
|
inlineinherited |
Definition at line 91 of file MultiObject.h.
References utl::MultiObject< T, LabeledObjectType >::fObjects.
|
inlineexplicitinherited |
Definition at line 99 of file MultiObject.h.
References utl::MultiObject< T, LabeledObjectType >::fObjects.
|
inlineinherited |
Definition at line 96 of file MultiObject.h.
References utl::MultiObject< T, LabeledObjectType >::operator==().
|
inherited |
|
protectedinherited |
Referenced by utl::MultiTrace< int >::RemoveTrace().
|
inline |
Definition at line 84 of file MultiTrace.h.