LDMX Software
DetDescr
include
DetDescr
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
12
namespace
ldmx {
13
23
class
DetectorHeader
{
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
72
int
version_
;
73
77
std::string
description_
;
78
82
std::string
author_
;
83
};
84
85
}
// namespace ldmx
86
87
#endif
ldmx::DetectorHeader
Defines detector header information.
Definition
DetectorHeader.h:23
ldmx::DetectorHeader::getName
const std::string & getName()
Get the name of the detector.
Definition
DetectorHeader.h:43
ldmx::DetectorHeader::description_
std::string description_
A short description of the detector.
Definition
DetectorHeader.h:77
ldmx::DetectorHeader::DetectorHeader
DetectorHeader(std::string name, int version, std::string description, std::string author)
Class constructor.
Definition
DetectorHeader.h:32
ldmx::DetectorHeader::version_
int version_
The version of the detector.
Definition
DetectorHeader.h:72
ldmx::DetectorHeader::getDescription
const std::string & getDescription()
Get a short description of the detector.
Definition
DetectorHeader.h:55
ldmx::DetectorHeader::getVersion
int getVersion()
Get the version of the detector.
Definition
DetectorHeader.h:49
ldmx::DetectorHeader::name_
std::string name_
The name of the detector.
Definition
DetectorHeader.h:67
ldmx::DetectorHeader::getAuthor
const std::string & getAuthor() const
Get the author of the detector (first and last name).
Definition
DetectorHeader.h:61
ldmx::DetectorHeader::author_
std::string author_
The name of the detector's author.
Definition
DetectorHeader.h:82
Generated by
1.12.0