ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RunHeaderv1.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file RunHeaderv1.h
1 // Tell emacs that this is a C++ source
2 // -*- C++ -*-.
3 #ifndef FFAOBJECTS_RUNHEADERV1_H
4 #define FFAOBJECTS_RUNHEADERV1_H
5 
6 #include "RunHeader.h"
7 
8 #include <iostream>
9 #include <map>
10 #include <string>
11 
12 class RunHeaderv1 : public RunHeader
13 {
14  public:
15  RunHeaderv1() = default;
16  ~RunHeaderv1() override = default;
17 
18  void Reset() override {return;}
19  void identify(std::ostream &os = std::cout) const override;
20  int isValid() const override;
21 
22  int get_RunNumber() const override { return RunNumber; }
23  void set_RunNumber(const int run) override
24  {
25  RunNumber = run;
26  return;
27  }
28 
29  void set_floatval(const std::string &name, const float fval) override;
30  float get_floatval(const std::string &name) const override;
31 
32  void set_intval(const std::string &name, const int ival) override;
33  int get_intval(const std::string &name) const override;
34 
35  private:
36  int RunNumber = 0;
37  std::map<std::string, int> m_IntRunProperties;
38  std::map<std::string, float> m_FloatRunProperties;
39 
40  ClassDefOverride(RunHeaderv1, 1)
41 
42 };
43 
44 #endif /* FFAOBJECTS_RUNHEADERV1_H */