LDMX Software
DetectorHeader.h
Go to the documentation of this file.
1
7#ifndef DETDESCR_DETECTORHEADER_H_
8#define DETDESCR_DETECTORHEADER_H_
9
10#include <string>
11
12namespace ldmx {
13
24 public:
32 DetectorHeader(std::string name, int version, std::string description,
33 std::string author)
34 : name_(name),
35 version_(version),
36 description_(description),
37 author_(author) {}
38
43 const std::string& getName() { return name_; }
44
49 int getVersion() { return version_; }
50
55 const std::string& getDescription() { return description_; }
56
61 const std::string& getAuthor() const { return author_; }
62
63 private:
67 std::string name_;
68
73
77 std::string description_;
78
82 std::string author_;
83};
84
85} // namespace ldmx
86
87#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.