Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members

lccd::DBFileHandler Class Reference

Implementation of ConditionsHandlerBase that reads the conditions data from a special LCIO file. More...

#include <DBFileHandler.hh>

Inheritance diagram for lccd::DBFileHandler:

lccd::ConditionsHandlerBase lccd::IConditionsHandler List of all members.

Public Member Functions

 DBFileHandler (const std::string &fileName, const std::string &name, const std::string &inputCollection="")
 Default constructor.

virtual void update (LCCDTimeStamp timestamp)
 Reads the event with the conditions data valid for the given time stamp, if:
.


Protected Member Functions

void init ()
 Initializes the validity intervall map from the run header.

int findEventNumber (LCCDTimeStamp timeStamp)
 The conditions event number for the given time stamp.


Protected Attributes

std::string _fileName
 Name of LCIO input file with conditions data.

std::string _inputCollection
 Name of LCCollection in first event.

ValidityVector _valVec
 Vector that holds the validity time intervalls for all events.

LCReader * _lcReader
 The LCIO input file reader.


Detailed Description

Implementation of ConditionsHandlerBase that reads the conditions data from a special LCIO file.

The file has to be extracted from a data base beforehand. e.g. with lccd::DBInterface::createDBFile() or created otherwise by fullfilling the following requirements:


Constructor & Destructor Documentation

lccd::DBFileHandler::DBFileHandler const std::string &  fileName,
const std::string &  name,
const std::string &  inputCollection = ""
 

Default constructor.

You have to specify the following parameters:

Parameters:
fileName: the LCIO file that holds the conditions data.
name: of this conditions data set - used, e.g. as collection name in update(LCEvent* evt)
inputCollection: name of collection in input file - if not given the name of this conditions data set is used


Member Function Documentation

virtual void lccd::DBFileHandler::update LCCDTimeStamp  timestamp  )  [virtual]
 

Reads the event with the conditions data valid for the given time stamp, if:
.

  • the time stamp lies outside the validity range of the current collection
  • and there is an event in the file that has a corresponding validity range as defined by the string vector parameters DBSince and DBTill in the run header

Implements lccd::ConditionsHandlerBase.


The documentation for this class was generated from the following file:
Generated on Fri Sep 9 12:30:32 2005 for LCCD by doxygen 1.3.5