Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
DefaultHepRepAttDef.cc
Go to the documentation of this file.
1// Copyright FreeHEP, 2005.
2
3#include <iostream>
4#include <cstring>
5#include <cctype>
6#include <algorithm>
7
9
10using namespace std;
11using namespace HEPREP;
12
13/**
14 * @author Mark Donszelmann
15 */
16namespace cheprep {
17
18DefaultHepRepAttDef::DefaultHepRepAttDef(string aName, string aDesc, string aCategory, string anExtra)
19 : name(aName), desc(aDesc), category(aCategory), extra(anExtra) {
20}
21
23}
24
26 return new DefaultHepRepAttDef(name, desc, category, extra);
27}
28
30 return name;
31}
32
34 string s = name;
35 transform(s.begin(), s.end(), s.begin(), (int(*)(int)) tolower);
36 return s;
37}
38
40 return desc;
41}
42
44 return category;
45}
46
48 return extra;
49}
50
51} // cheprep
HEPREP::HepRepAttDef * copy()
DefaultHepRepAttDef(std::string name, std::string desc, std::string category, std::string extra)