Project
Loading...
Searching...
No Matches
FairGeoSet.h
Go to the documentation of this file.
1/********************************************************************************
2 * Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
3 * *
4 * This software is distributed under the terms of the *
5 * GNU Lesser General Public Licence (LGPL) version 3, *
6 * copied verbatim in the file "LICENSE" *
7 ********************************************************************************/
8#ifndef FAIRGEOSET_H
9#define FAIRGEOSET_H
10
11#include "FairGeoNode.h"
12
13#include <Rtypes.h> // for Int_t, Bool_t, etc
14#include <TList.h> // for TList
15#include <TNamed.h> // for TNamed
16#include <TString.h> // for TString
17#include <iosfwd> // for fstream
18
19// class FairGeoNode;
20class FairGeoShapes;
21class FairGeoMedia;
22class FairGeoBuilder;
24class TArrayI;
25
30class FairGeoSet : public TNamed
31{
32 protected:
33 Int_t hadesGeo;
34
35 class FairGeoCopyNode : public TNamed
36 {
37 public:
40 : TNamed(name, "")
41 , pNode(node)
42 {}
43 // SetName(name);
44 //
45 // }
47
48 private:
50 FairGeoCopyNode& operator=(const FairGeoCopyNode&);
51 };
52
53 TList* volumes;
54 TList* masterNodes;
55 Int_t maxSectors;
57 Int_t maxModules;
58 TArrayI* modules;
60 TString geoFile;
61 TString author;
62 TString description;
64 FairGeoSet();
65 void readInout(std::fstream&);
66 void readTransform(std::fstream&, FairGeoTransform&);
67 Bool_t readVolumeParams(std::fstream&, FairGeoMedia*, FairGeoNode*, TList* l = 0);
68 Bool_t readKeepIn(std::fstream&, FairGeoMedia*, TString&);
69 Bool_t readModule(std::fstream&, FairGeoMedia*, TString&, TString&, Bool_t a = kFALSE);
70
71 public:
72 virtual ~FairGeoSet();
74 void setMasterNodes(TList* m) { masterNodes = m; }
75 void setGeomFile(const char* filename) { geoFile = filename; }
76 const char* getGeomFile() { return geoFile.Data(); }
77 Int_t getMaxSectors(void) { return maxSectors; }
78 Int_t getMaxModules(void) { return maxModules; }
79 Int_t getMaxKeepinVolumes(void) { return maxKeepinVolumes; }
80 void setModules(Int_t, Int_t*);
81 Int_t* getModules(void);
82 Int_t getModule(Int_t, Int_t);
83 FairGeoNode* getVolume(const char* name) { return dynamic_cast<FairGeoNode*>(volumes->FindObject(name)); }
84 FairGeoNode* getMasterNode(const char* name) { return dynamic_cast<FairGeoNode*>(masterNodes->FindObject(name)); }
85 TList* getListOfVolumes() { return volumes; }
87 void setAuthor(TString& s) { author = s; }
88 void setDescription(TString& s) { description = s; }
89 TString& getAuthor() { return author; }
90 TString& getDescription() { return description; }
91 virtual const char* getKeepinName(Int_t, Int_t) { return 0; }
92 virtual const char* getModuleName(Int_t) { return 0; }
93 virtual const char* getEleName(Int_t) { return 0; }
94 virtual Int_t getSecNumInMod(const TString&) { return -1; }
95 virtual Int_t getModNumInMod(const TString&) { return 0; }
96 virtual Bool_t read(std::fstream&, FairGeoMedia*);
97 virtual void addRefNodes() {}
98 virtual void write(std::fstream&);
99 virtual void print();
100 virtual Bool_t create(FairGeoBuilder*);
101 void compare(FairGeoSet&);
103
104 private:
105 FairGeoSet(const FairGeoSet&);
106 FairGeoSet& operator=(const FairGeoSet&);
107};
108
109#endif /* !FAIRGEOSET_H */
std::unique_ptr< expressions::Node > node
Timeframe settings Average distance in cm of events merged into Randomize distance around average distance of merged events Simulate correct bunch interactions instead of placing only the average number of events A value[n] sets TFlen for[n] collisions in Number of bunches per trainsort Number of bunch trains Instantaneous interaction rate Do not simulate border Total number of collisions to be placed in the interior of all time Do not select random but walk over array of events in stride steps h Event generator settings h configStandalone Use CPU for GPU Force usage of the specified GPU device no CPU fallback Continue processing after an error s
FairGeoCopyNode(const char *name, FairGeoNode *node)
Definition FairGeoSet.h:39
void setDescription(TString &s)
Definition FairGeoSet.h:88
TList * volumes
Definition FairGeoSet.h:53
Int_t getMaxSectors(void)
Definition FairGeoSet.h:77
void setGeomFile(const char *filename)
Definition FairGeoSet.h:75
void compare(FairGeoSet &)
Int_t maxModules
Definition FairGeoSet.h:57
Int_t maxSectors
Definition FairGeoSet.h:55
virtual Bool_t create(FairGeoBuilder *)
FairGeoShapes * pShapes
Definition FairGeoSet.h:59
void setAuthor(TString &s)
Definition FairGeoSet.h:87
Int_t getMaxKeepinVolumes(void)
Definition FairGeoSet.h:79
TString author
Definition FairGeoSet.h:61
FairGeoShapes * getShapes()
Definition FairGeoSet.h:86
virtual const char * getModuleName(Int_t)
Definition FairGeoSet.h:92
virtual void print()
Int_t getMaxModules(void)
Definition FairGeoSet.h:78
TArrayI * modules
Definition FairGeoSet.h:58
const char * getGeomFile()
Definition FairGeoSet.h:76
TString geoFile
Definition FairGeoSet.h:60
virtual void addRefNodes()
Definition FairGeoSet.h:97
virtual const char * getKeepinName(Int_t, Int_t)
Definition FairGeoSet.h:91
TList * getListOfVolumes()
Definition FairGeoSet.h:85
ClassDef(FairGeoSet, 0)
virtual ~FairGeoSet()
Int_t * getModules(void)
void setShapes(FairGeoShapes *s)
Definition FairGeoSet.h:73
void readTransform(std::fstream &, FairGeoTransform &)
Bool_t readModule(std::fstream &, FairGeoMedia *, TString &, TString &, Bool_t a=kFALSE)
TString & getAuthor()
Definition FairGeoSet.h:89
void setModules(Int_t, Int_t *)
Bool_t readKeepIn(std::fstream &, FairGeoMedia *, TString &)
virtual void write(std::fstream &)
virtual Int_t getModNumInMod(const TString &)
Definition FairGeoSet.h:95
void readInout(std::fstream &)
virtual Int_t getSecNumInMod(const TString &)
Definition FairGeoSet.h:94
TList * masterNodes
Definition FairGeoSet.h:54
virtual const char * getEleName(Int_t)
Definition FairGeoSet.h:93
Int_t hadesGeo
Definition FairGeoSet.h:33
Bool_t readVolumeParams(std::fstream &, FairGeoMedia *, FairGeoNode *, TList *l=0)
TString description
Definition FairGeoSet.h:62
TString & getDescription()
Definition FairGeoSet.h:90
Int_t getModule(Int_t, Int_t)
FairGeoNode * getMasterNode(const char *name)
Definition FairGeoSet.h:84
FairGeoNode * getVolume(const char *name)
Definition FairGeoSet.h:83
virtual Bool_t read(std::fstream &, FairGeoMedia *)
void setMasterNodes(TList *m)
Definition FairGeoSet.h:74
Int_t maxKeepinVolumes
Definition FairGeoSet.h:56
const GLfloat * m
Definition glcorearb.h:4066
GLuint const GLchar * name
Definition glcorearb.h:781
GLboolean GLboolean GLboolean GLboolean a
Definition glcorearb.h:1233
std::string filename()