Geant4 9.6.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 * @version $Id: DefaultHepRepAttDef.cc,v 1.8 2005-06-02 21:28:45 duns Exp $
16 */
17namespace cheprep {
18
19DefaultHepRepAttDef::DefaultHepRepAttDef(string aName, string aDesc, string aCategory, string anExtra)
20 : name(aName), desc(aDesc), category(aCategory), extra(anExtra) {
21}
22
24}
25
27 return new DefaultHepRepAttDef(name, desc, category, extra);
28}
29
31 return name;
32}
33
35 string s = name;
36 transform(s.begin(), s.end(), s.begin(), (int(*)(int)) tolower);
37 return s;
38}
39
41 return desc;
42}
43
45 return category;
46}
47
49 return extra;
50}
51
52} // cheprep
HEPREP::HepRepAttDef * copy()
DefaultHepRepAttDef(std::string name, std::string desc, std::string category, std::string extra)