Belle II Software development
BKLMDatabaseImporter Class Reference

This module writes BKLM data to database. More...

#include <BKLMDatabaseImporter.h>

Public Member Functions

 BKLMDatabaseImporter ()
 Constructor.
 
 ~BKLMDatabaseImporter ()
 Destructor.
 
void setIOV (int experimentLow, int runLow, int experimentHigh, int runHigh)
 Set interval of validity.
 
void importSimulationPar ()
 Import BKLM simulation parameters into the database.
 

Private Attributes

int m_ExperimentLow = 0
 Low experiment.
 
int m_RunLow = 0
 Low run.
 
int m_ExperimentHigh = -1
 High experiment.
 
int m_RunHigh = -1
 High run.
 

Detailed Description

This module writes BKLM data to database.

Definition at line 20 of file BKLMDatabaseImporter.h.

Constructor & Destructor Documentation

◆ BKLMDatabaseImporter()

Constructor.

Definition at line 24 of file BKLMDatabaseImporter.cc.

25{
26}

◆ ~BKLMDatabaseImporter()

~BKLMDatabaseImporter ( )
inline

Destructor.

Definition at line 31 of file BKLMDatabaseImporter.h.

32 {
33 }

Member Function Documentation

◆ importSimulationPar()

void importSimulationPar ( )

Import BKLM simulation parameters into the database.

Definition at line 37 of file BKLMDatabaseImporter.cc.

38{
39 GearDir content(Gearbox::getInstance().getDetectorComponent("KLM"), "BKLM/SimulationParameters");
40 BKLMSimulationPar bklmSimulationPar(content);
43 Database::Instance().storeData("BKLMSimulationPar", &bklmSimulationPar, iov);
44}
int m_ExperimentHigh
High experiment.
Provides BKLM simulation parameters.
GearDir is the basic class used for accessing the parameter store.
Definition: GearDir.h:31
A class that describes the interval of experiments/runs for which an object in the database is valid.
static Gearbox & getInstance()
Return reference to the Gearbox instance.
Definition: Gearbox.cc:81
static Database & Instance()
Instance of a singleton Database.
Definition: Database.cc:42
bool storeData(const std::string &name, TObject *object, const IntervalOfValidity &iov)
Store an object in the database.
Definition: Database.cc:141

◆ setIOV()

void setIOV ( int  experimentLow,
int  runLow,
int  experimentHigh,
int  runHigh 
)

Set interval of validity.

Definition at line 28 of file BKLMDatabaseImporter.cc.

30{
31 m_ExperimentLow = experimentLow;
32 m_RunLow = runLow;
33 m_ExperimentHigh = experimentHigh;
34 m_RunHigh = runHigh;
35}

Member Data Documentation

◆ m_ExperimentHigh

int m_ExperimentHigh = -1
private

High experiment.

Definition at line 54 of file BKLMDatabaseImporter.h.

◆ m_ExperimentLow

int m_ExperimentLow = 0
private

Low experiment.

Definition at line 48 of file BKLMDatabaseImporter.h.

◆ m_RunHigh

int m_RunHigh = -1
private

High run.

Definition at line 57 of file BKLMDatabaseImporter.h.

◆ m_RunLow

int m_RunLow = 0
private

Low run.

Definition at line 51 of file BKLMDatabaseImporter.h.


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