LDMX Software
DetectorHeader.h
Go to the documentation of this file.
1
7#ifndef DETDESCR_DETECTORHEADER_H_
8#define DETDESCR_DETECTORHEADER_H_
9
10namespace ldmx {
11
22 public:
30 DetectorHeader(std::string name, int version, std::string description,
31 std::string author)
32 : name_(name),
33 version_(version),
34 description_(description),
35 author_(author) {}
36
41 const std::string& getName() { return name_; }
42
47 int getVersion() { return version_; }
48
53 const std::string& getDescription() { return description_; }
54
59 const std::string& getAuthor() const { return author_; }
60
61 private:
65 std::string name_;
66
71
75 std::string description_;
76
80 std::string author_;
81};
82
83} // namespace ldmx
84
85#endif
Defines detector header information.
const std::string & getName()
Get the name of the detector.
std::string description_
A short description of the detector.
DetectorHeader(std::string name, int version, std::string description, std::string author)
Class constructor.
int version_
The version of the detector.
const std::string & getDescription()
Get a short description of the detector.
int getVersion()
Get the version of the detector.
std::string name_
The name of the detector.
const std::string & getAuthor() const
Get the author of the detector (first and last name).
std::string author_
The name of the detector's author.