OpenWalnut  1.5.0dev
WSingleSelectorName.cpp
1 //---------------------------------------------------------------------------
2 //
3 // Project: OpenWalnut ( http://www.openwalnut.org )
4 //
5 // Copyright 2009 OpenWalnut Community, BSV@Uni-Leipzig and CNCF@MPI-CBS
6 // For more information see http://www.openwalnut.org/copying
7 //
8 // This file is part of OpenWalnut.
9 //
10 // OpenWalnut is free software: you can redistribute it and/or modify
11 // it under the terms of the GNU Lesser General Public License as published by
12 // the Free Software Foundation, either version 3 of the License, or
13 // (at your option) any later version.
14 //
15 // OpenWalnut is distributed in the hope that it will be useful,
16 // but WITHOUT ANY WARRANTY; without even the implied warranty of
17 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 // GNU Lesser General Public License for more details.
19 //
20 // You should have received a copy of the GNU Lesser General Public License
21 // along with OpenWalnut. If not, see <http://www.gnu.org/licenses/>.
22 //
23 //---------------------------------------------------------------------------
24 
25 #include <list>
26 #include <string>
27 
28 #include "WDataType.h"
29 #include "WSingleSelectorName.h"
30 
32 {
33  return "X";
34 }
35 
37 {
38  return "Y";
39 }
40 
42 {
43  return "Z";
44 }
45 
47 {
48  return "Particle Data Group";
49 }
50 
52 {
53  return "Energy deposition";
54 }
55 
57 {
58  return "Event id";
59 }
60 
62 {
63  return "Parent id";
64 }
65 
67 {
69  getX(),
70  "Choose the column which should be used to determine the x coordinate.",
71  "posX",
72  std::list< std::string >
73  {
75  } );
76 }
77 
79 {
81  getY(),
82  "Choose the column which should be used to determine the y coordinate.",
83  "posY",
84  std::list< std::string >
85  {
87  } );
88 }
89 
91 {
93  getZ(),
94  "Choose the column which should be used to determine the z coordinate.",
95  "posZ",
96  std::list< std::string >
97  {
99  } );
100 }
101 
103 {
105  getPDG(),
106  "Choose the column which should be used to determine the particle data group.",
107  "PDGEncoding",
108  std::list< std::string >
109  {
111  } );
112 }
113 
115 {
117  getEdep(),
118  "Choose the column which should be used to determine the energy deposition.",
119  "edep",
120  std::list< std::string >
121  {
123  } );
124 }
125 
127 {
129  getEventId(),
130  "Choose the column which should be used to determine the event id."
131  "Tracks will be drawn based on the the event id, all particles with the same event id will be connected.",
132  "eventID",
133  std::list< std::string >
134  {
136  } );
137 }
138 
140 {
142  getParentId(),
143  "Choose the column which should be used to determine the parent id."
144  "Primaries and secondaries filtering is based on that id, if a "
145  "particle has the parent id 0 it is a primary otherwise it is a secondary.",
146  "parentID",
147  std::list< std::string >
148  {
150  } );
151 }
152 
153 std::list< WSingleSelectorName::NameDescriptionSearchTyp > WSingleSelectorName::getListOfSelectorContent()
154 {
155  std::list< WSingleSelectorName::NameDescriptionSearchTyp > list;
156 
157  list.push_back( getXwithDescription() );
158  list.push_back( getYwithDescription() );
159  list.push_back( getZwithDescription() );
160  list.push_back( getPDGwithDescription() );
161  list.push_back( getEdepWithDescription() );
162  list.push_back( getEventIdWithDescription() );
163  list.push_back( getParentIdWithDescription() );
164 
165  return list;
166 }
static std::string getInt()
getter
Definition: WDataType.cpp:29
static std::string getDouble()
getter
Definition: WDataType.cpp:34
static std::string getX()
getter
static std::string getY()
getter
static WSingleSelectorName::NameDescriptionSearchTyp getXwithDescription()
getter
static std::string getZ()
getter
static WSingleSelectorName::NameDescriptionSearchTyp getEventIdWithDescription()
getter
static WSingleSelectorName::NameDescriptionSearchTyp getPDGwithDescription()
getter
static WSingleSelectorName::NameDescriptionSearchTyp getYwithDescription()
getter
static std::string getEdep()
getter
static std::string getPDG()
getter
static std::string getParentId()
getter
std::tuple< std::string, std::string, std::string, std::list< std::string > > NameDescriptionSearchTyp
tuple with 3 string as value
static WSingleSelectorName::NameDescriptionSearchTyp getEdepWithDescription()
getter
static WSingleSelectorName::NameDescriptionSearchTyp getZwithDescription()
getter
static WSingleSelectorName::NameDescriptionSearchTyp getParentIdWithDescription()
getter
static std::string getEventId()
getter
static std::list< WSingleSelectorName::NameDescriptionSearchTyp > getListOfSelectorContent()
getter