Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PgPostCalBank.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PgPostCalBank.h
1 // Tell emacs that this is a C++ source
2 // -*- C++ -*-.
3 #ifndef PDBCALPG_PGPOSTCALBANK_H
4 #define PDBCALPG_PGPOSTCALBANK_H
5 
6 #include <pdbcalbase/PdbBankID.h>
7 #include <pdbcalbase/PdbCalBank.h>
8 
9 #include <phool/PHTimeStamp.h>
10 
11 #include <TObject.h>
12 
13 #include <cstring>
14 #include <iostream>
15 
16 class PgPostCalBank : public PdbCalBank
17 {
18  public:
20  virtual ~PgPostCalBank() {}
21 
22  void printHeader() const override { std::cout << "I'm PgPostCalBank" << std::endl; }
23  void printEntry(size_t) override = 0;
24  void print() override = 0;
25 
26  // virtual bool commit() = 0;
27  size_t getLength() override = 0;
28  PdbCalChan& getEntry(size_t) override = 0;
29  void setLength(size_t val) override = 0;
30 
31  PdbBankID getBankID() const override { return 0; }
32  PHTimeStamp getInsertTime() const override { return PHTimeStamp((time_t) 0); }
33  PHTimeStamp getStartValTime() const override { return PHTimeStamp((time_t) 0); }
34  PHTimeStamp getEndValTime() const override { return PHTimeStamp((time_t) 0); }
35  std::string getDescription() const override { return ""; }
36  std::string getUserName() const override { return ""; }
37  virtual std::string getTableName() const { return ""; }
38 
39  void setBankID(const PdbBankID& /*val*/) override {}
40  void setInsertTime(const PHTimeStamp& /*val*/) override {}
41  void setStartValTime(const PHTimeStamp& /*val*/) override {}
42  void setEndValTime(const PHTimeStamp& /*val*/) override {}
43  void setDescription(const std::string& /*val*/) override {}
44  void setUserName(const std::string& /*val*/) override {}
45  virtual void setTableName(const std::string& /*val*/) {}
46 
47  int isValid(const PHTimeStamp&) const override { return 0; }
48 
50 };
51 
52 #endif