Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
PgPostBankWrapper.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file PgPostBankWrapper.h
1
// Tell emacs that this is a C++ source
2
// -*- C++ -*-.
3
#ifndef PDBCALPG_PGPOSTBANKWRAPPER_H
4
#define PDBCALPG_PGPOSTBANKWRAPPER_H
5
6
#include "
PgPostCalBank.h
"
7
8
#include <pdbcalbase/PdbBankID.h>
9
#include <pdbcalbase/PdbCalBank.h>
10
11
#include <
phool/PHTimeStamp.h
>
12
13
#include <cstddef>
14
#include <string>
15
16
class
PdbCalChan
;
17
class
PHObject
;
18
19
class
PgPostBankWrapper
:
public
PgPostCalBank
20
{
21
public
:
22
PgPostBankWrapper
();
23
PgPostBankWrapper
(
PdbCalBank
*
b
);
24
virtual
~PgPostBankWrapper
();
25
virtual
PHObject
*
CloneMe
()
const
{
return
new
PgPostBankWrapper
(*
this
); }
26
27
void
printHeader
()
const
;
28
void
print
() {
bank
->
print
(); }
29
void
printEntry
(
size_t
s
) {
bank
->
printEntry
(s); }
30
31
size_t
getLength
() {
return
bank
->
getLength
(); }
32
PdbCalChan
&
getEntry
(
size_t
pos
) {
return
bank
->
getEntry
(pos); }
33
void
setLength
(
size_t
len) {
bank
->
setLength
(len); }
34
virtual
bool
commit
();
35
36
PdbBankID
getBankID
()
const
{
return
bankID
; }
37
PHTimeStamp
getInsertTime
()
const
{
return
insertTime
; }
38
PHTimeStamp
getStartValTime
()
const
{
return
startValTime
; }
39
PHTimeStamp
getEndValTime
()
const
{
return
endValTime
; }
40
std::string
getDescription
()
const
{
return
description
; }
41
std::string
getUserName
()
const
{
return
userName
; }
42
std::string
getTableName
()
const
{
return
tableName
; }
43
44
void
setBankID
(
const
PdbBankID
&val) {
bankID
= val; }
45
void
setInsertTime
(
const
PHTimeStamp
&val) {
insertTime
= val; }
46
void
setStartValTime
(
const
PHTimeStamp
&val) {
startValTime
= val; }
47
void
setEndValTime
(
const
PHTimeStamp
&val) {
endValTime
= val; }
48
void
setDescription
(
const
std::string
&val) {
description
= val; }
49
void
setUserName
(
const
std::string
&val) {
userName
= val; }
50
void
setTableName
(
const
std::string
&val) {
tableName
= val; }
51
52
PdbCalBank
*
getBank
() {
return
bank
; }
53
virtual
int
isValid
(
const
PHTimeStamp
&)
const
{
return
0; }
54
55
private
:
56
PdbBankID
bankID
;
57
PHTimeStamp
insertTime
;
58
PHTimeStamp
startValTime
;
59
PHTimeStamp
endValTime
;
60
std::string
description
;
61
std::string
userName
;
62
std::string
tableName
;
63
64
PdbCalBank
*
bank
;
65
66
ClassDefOverride
(
PgPostBankWrapper
, 1);
67
};
68
69
#endif
/* PDBCAL_PG_PGPOSTBANKWRAPPER_H */
coresoftware
blob
master
offline
database
pdbcal
pg
PgPostBankWrapper.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:04
using
1.8.2 with
sPHENIX GitHub integration