class emcOMFEMtuple: public emcObjyObjectManager

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

Inheritance:


Public Methods

[more]virtual emcManageable* Collect(const emcManageable& object, const PHTimeStamp& when)
Collect object valid at a given time.
[more]virtual void FromPdbCalBank(emcCalFEM* calfem, PdbCalBank* bank)
Fill an emcCalFEM object from a PdbCalBank
[more]virtual string GetPersistentClassName(void) const
Get the name of the Objy classname we are dealing with.
[more]virtual void MakeBankID(PdbBankID& bankID, int absPosition, int pinNumber, int post_pre, int tac_pre)
Make a bankID following information of a FEM
[more]virtual bool Read(emcManageable& object, const PHTimeStamp& time_stamp, int femCode)
Read object.
[more]virtual bool ReadFromFile(emcFEMtuple& femtuple, int absPosition, int pinNumber, int post_pre, int tac_pre)
Read from file.
[more]virtual void Reset(void)
Reset this object.
[more]virtual void ToPdbCalBank(emcCalFEM* calfem, PdbCalBank* bank)
Fill a PdbCalBank from an emcCalFEM object.
[more]virtual bool Write(const emcManageable& object, const PHTimeStamp& tdummy, int dummy=-1)
Write object


Inherited from emcObjyObjectManager:

Protected Methods

ostatic PdbBankManager* BankManager()
ostatic PdbApplication* DBApplication()


Inherited from emcObjectManager:

Public Methods

ovirtual bool CanCollect(const emcManageable& object)
ovirtual bool CanHandle(const emcManageable& object)
ovirtual bool CanWrite(const emcManageable& object)
ovirtual bool CanRead(const emcManageable& object)


Inherited from emcNamed:

Public Methods

ovirtual const char* GetClassName(void) const
ovirtual const char* GetName(void) const
ovirtual const char* GetTitle(void) const
ovirtual void SetClassName(const char*)
ovirtual void SetTitle(const char*)
ovirtual void SetName(const char*)


Documentation

Base class for all the plugins handling object deriving from emcFEMtuple. 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.
Plugins deriving from this one MUST implement the following methods:
1) FromPdbCalBank(), which fills an emcCalFEM object from a PdbCalBank. (Called by Read)
2) ToPdbCalBank() : reverse operation of 1). (Called by Write)
3) GetPersistentClassName() : give the name of the low-level objy class the plugin is dealing with, i.e. one of the PdbEmc??? classes.
4) MakeBankID() : computes a PdbBankID from CalFEM header info. A default implementation is furnished, which should be OK, but you should better check it ! (e.g. it's not valid for Gains).
Optionally, you may override the ReadFromFile method if the plugin is able to read from file.
ovirtual emcManageable* Collect(const emcManageable& object, const PHTimeStamp& when)
Collect object valid at a given time.

ovirtual void FromPdbCalBank(emcCalFEM* calfem, PdbCalBank* bank)
Fill an emcCalFEM object from a PdbCalBank

ovirtual string GetPersistentClassName(void) const
Get the name of the Objy classname we are dealing with.

ovirtual void MakeBankID(PdbBankID& bankID, int absPosition, int pinNumber, int post_pre, int tac_pre)
Make a bankID following information of a FEM

ovirtual bool Read(emcManageable& object, const PHTimeStamp& time_stamp, int femCode)
Read object.

ovirtual bool ReadFromFile(emcFEMtuple& femtuple, int absPosition, int pinNumber, int post_pre, int tac_pre)
Read from file.

ovirtual void Reset(void)
Reset this object.

ovirtual void ToPdbCalBank(emcCalFEM* calfem, PdbCalBank* bank)
Fill a PdbCalBank from an emcCalFEM object.

ovirtual bool Write(const emcManageable& object, const PHTimeStamp& tdummy, int dummy=-1)
Write object


Direct child classes:
emcOMWalkTofs
emcOMQAs
emcOMPedestals
emcOMLCTofs
emcOMHLRatios
emcOMGains

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.