emcOMFEMtupleT< BM, FT > Class Template Reference
[DataManager PluginsDeprecated Stuff]

#include <emcOMFEMtupleT.h>

Inherits emcObjectManager.

Inheritance diagram for emcOMFEMtupleT< BM, FT >:

Inheritance graph
[legend]
List of all members.

Detailed Description

template<class BM, class FT>
class emcOMFEMtupleT< BM, FT >

(OLD) Base class for all the plugins handling object deriving from emcFEMtuple.

Deprecated:
It implements the logic common to all plugins dealing with daughter classes of emcFEMtuple, for the Collect, Read and Write methods :

a) Collect. It's a loop over all the FEM of EMCAL (the one stated in the configuration file, which is retrieved thanks to the emcRawDataAccessor).

b) Read. Reading of ONE FEM, either from Objy DB, or from file (in which case actual work is delegated to the ReadFromFile method.

c) Write. Splits the emcFEMtuple into pieces of one FEM-long, make PdbCalBank from those, and put them into the Objy FD.

Definition at line 39 of file emcOMFEMtupleT.h.

Public Member Functions

 emcOMFEMtupleT (const char *name="", const char *title="")
virtual ~emcOMFEMtupleT ()
virtual bool CanCollect (const emcManageable &object) const
 We announce that we can collect some objects.
virtual bool CanRead (const emcManageable &object) const
 We announce that we can read some objects.
virtual bool CanWrite (const emcManageable &object) const
 We announce that we can write some objects.
virtual emcManageableCollect (const emcManageable &object, const PHTimeStamp &when)
 Collect object valid at a given time.
virtual bool Read (emcManageable &object, const PHTimeStamp &time_stamp, int femCode)
 Read object.
virtual void Reset (void)
 Reset this object.
virtual bool Write (const emcManageable &object, const PHTimeStamp &tdummy, int dummy=-1)
 Write object.

Protected Attributes

FT * fFEMs
BM * fBM

Classes

class  changeName


Constructor & Destructor Documentation

template<class BM, class FT>
emcOMFEMtupleT< BM, FT >::emcOMFEMtupleT const char *  name = "",
const char *  title = ""
 

Definition at line 140 of file emcOMFEMtupleT.h.

template<class BM, class FT>
emcOMFEMtupleT< BM, FT >::~emcOMFEMtupleT  )  [virtual]
 

Definition at line 148 of file emcOMFEMtupleT.h.

References emcOMFEMtupleT< BM, FT >::Reset().


Member Function Documentation

template<class BM, class FT>
virtual bool emcOMFEMtupleT< BM, FT >::CanCollect const emcManageable object  )  const [inline, virtual]
 

We announce that we can collect some objects.

Reimplemented from emcObjectManager.

Definition at line 46 of file emcOMFEMtupleT.h.

References emcOMFEMtupleT< BM, FT >::CanRead().

template<class BM, class FT>
bool emcOMFEMtupleT< BM, FT >::CanRead const emcManageable object  )  const [virtual]
 

We announce that we can read some objects.

Reimplemented from emcObjectManager.

Definition at line 156 of file emcOMFEMtupleT.h.

References emcOMFEMtupleT< BM, FT >::fBM, and emcManageable::GetSource().

Referenced by emcOMFEMtupleT< BM, FT >::CanCollect().

template<class BM, class FT>
bool emcOMFEMtupleT< BM, FT >::CanWrite const emcManageable object  )  const [virtual]
 

We announce that we can write some objects.

Reimplemented from emcObjectManager.

Definition at line 180 of file emcOMFEMtupleT.h.

References emcOMFEMtupleT< BM, FT >::fBM, and emcManageable::GetDestination().

template<class BM, class FT>
emcManageable * emcOMFEMtupleT< BM, FT >::Collect const emcManageable object,
const PHTimeStamp &  when
[virtual]
 

Collect object valid at a given time.

Reimplemented from emcObjectManager.

Definition at line 204 of file emcOMFEMtupleT.h.

References emcOMFEMtupleT< BM, FT >::fBM, emcManageable::GetSource(), and name.

template<class BM, class FT>
bool emcOMFEMtupleT< BM, FT >::Read emcManageable object,
const PHTimeStamp &  time_stamp,
int  femCode
[virtual]
 

Read object.

Implements emcObjectManager.

Definition at line 372 of file emcOMFEMtupleT.h.

References emcFEMtuple::AppendFEM(), emcObjectManager::DM(), emcCalFEM::FEMDecode(), emcManageable::GetSource(), emcDataManager::Read(), emcFEMtuple::Reset(), and emcManageable::SetSource().

template<class BM, class FT>
void emcOMFEMtupleT< BM, FT >::Reset void   )  [virtual]
 

Reset this object.

Implements emcObjectManager.

Definition at line 395 of file emcOMFEMtupleT.h.

Referenced by emcOMFEMtupleT< BM, FT >::~emcOMFEMtupleT().

template<class BM, class FT>
bool emcOMFEMtupleT< BM, FT >::Write const emcManageable object,
const PHTimeStamp &  tdummy,
int  dummy = -1
[virtual]
 

Write object.

Implements emcObjectManager.

Definition at line 404 of file emcOMFEMtupleT.h.

References emcObjectManager::DM(), and emcDataManager::Write().


Member Data Documentation

template<class BM, class FT>
BM* emcOMFEMtupleT< BM, FT >::fBM [protected]
 

Definition at line 97 of file emcOMFEMtupleT.h.

Referenced by emcOMFEMtupleT< BM, FT >::CanRead(), emcOMFEMtupleT< BM, FT >::CanWrite(), and emcOMFEMtupleT< BM, FT >::Collect().

template<class BM, class FT>
FT* emcOMFEMtupleT< BM, FT >::fFEMs [protected]
 

Definition at line 96 of file emcOMFEMtupleT.h.


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