emcOMIniCalConstruction Class Reference
[DataManager Plugins]

Inherits emcObjectManager.

Inheritance diagram for emcOMIniCalConstruction:

Inheritance graph
[legend]
List of all members.

Detailed Description

DM plugin to read emcCalibrationData (kIniCal) from construction DB.

Definition at line 14 of file emcOMIniCalConstruction.C.

Public Member Functions

 emcOMIniCalConstruction (const char *name="", const char *title="")
virtual ~emcOMIniCalConstruction ()
virtual bool CanCollect (const emcManageable &) const
virtual bool CanRead (const emcManageable &object) const
 Can we read a given object type ?
virtual bool CanWrite (const emcManageable &) const
 Can we write a given object type ?
virtual emcManageableCollect (const emcManageable &, const PHTimeStamp &)
bool GetTypeAndNumber (int id, size_t &type, size_t &number) const
int GetID (size_t type, size_t number)
virtual bool Read (emcManageable &object, const PHTimeStamp &time_stamp, int id)
 Read a manageable object from the DB.
virtual void Reset (void)
 Reset the OM.
virtual bool Write (const emcManageable &, const PHTimeStamp &, int)
 Write a manageable object to the DB.


Constructor & Destructor Documentation

emcOMIniCalConstruction::emcOMIniCalConstruction const char *  name = "",
const char *  title = ""
 

Definition at line 56 of file emcOMIniCalConstruction.C.

emcOMIniCalConstruction::~emcOMIniCalConstruction  )  [virtual]
 

Definition at line 61 of file emcOMIniCalConstruction.C.


Member Function Documentation

virtual bool emcOMIniCalConstruction::CanCollect const emcManageable  )  const [inline, virtual]
 

Deprecated:
Can we collect such object ?
Returns:
false by default.

Reimplemented from emcObjectManager.

Definition at line 20 of file emcOMIniCalConstruction.C.

bool emcOMIniCalConstruction::CanRead const emcManageable object  )  const [virtual]
 

Can we read a given object type ?

Returns:
false by default.

Reimplemented from emcObjectManager.

Definition at line 67 of file emcOMIniCalConstruction.C.

References emcManageable::GetSource(), emcManageable::kDB_Construction, and test().

virtual bool emcOMIniCalConstruction::CanWrite const emcManageable  )  const [inline, virtual]
 

Can we write a given object type ?

Returns:
false by default.

Reimplemented from emcObjectManager.

Definition at line 24 of file emcOMIniCalConstruction.C.

virtual emcManageable* emcOMIniCalConstruction::Collect const emcManageable ,
const PHTimeStamp & 
[inline, virtual]
 

Deprecated:
Collect a manageable from the DB. See the DM interface for parameters. Unless allowed explicitely by a particular Object Manager, in general the returned pointer (should not be deleted) by the receiver !

Has been deprecated because handling of collections is better done elsewhere. That's not the job of the datamanager, after all...

Reimplemented from emcObjectManager.

Definition at line 26 of file emcOMIniCalConstruction.C.

int emcOMIniCalConstruction::GetID size_t  type,
size_t  number
 

Definition at line 99 of file emcOMIniCalConstruction.C.

bool emcOMIniCalConstruction::GetTypeAndNumber int  id,
size_t &  type,
size_t &  number
const
 

Definition at line 84 of file emcOMIniCalConstruction.C.

Referenced by Read().

bool emcOMIniCalConstruction::Read emcManageable object,
const PHTimeStamp &  time_stamp,
int  id
[virtual]
 

Read a manageable object from the DB.

See the DM interface for parameters.

Implements emcObjectManager.

Definition at line 114 of file emcOMIniCalConstruction.C.

References emcCalibrationData::GetNumber(), emcCalibrationData::GetType(), GetTypeAndNumber(), and emcCalibrationData::Reset().

void emcOMIniCalConstruction::Reset void   )  [virtual]
 

Reset the OM.

After a call to Reset, the OM must behave as if it was newly created.

Implements emcObjectManager.

Definition at line 191 of file emcOMIniCalConstruction.C.

virtual bool emcOMIniCalConstruction::Write const emcManageable ,
const PHTimeStamp &  ,
int 
[inline, virtual]
 

Write a manageable object to the DB.

See the DM interface for parameters.

Implements emcObjectManager.

Definition at line 42 of file emcOMIniCalConstruction.C.


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