#include <ToyDetectorFactory.h>
Definition at line 10 of file ToyDetectorFactory.h.
◆ ToyDetectorFactory() [1/2]
ToyDetectorFactory::ToyDetectorFactory |
( |
StoreGateSvc * |
pDetStore | ) |
|
◆ ~ToyDetectorFactory()
ToyDetectorFactory::~ToyDetectorFactory |
( |
| ) |
|
◆ ToyDetectorFactory() [2/2]
◆ create()
void ToyDetectorFactory::create |
( |
GeoPhysVol * |
world | ) |
|
|
virtual |
Definition at line 62 of file ToyDetectorFactory.cxx.
68 if (StatusCode::SUCCESS !=
m_detectorStore->retrieve(materialManager, std::string(
"MATERIALS"))) {
77 #if defined BUILDVP1LIGHT
79 double densityOfAir=0.1, densityOfPolystyrene=0.2;
80 const GeoMaterial *air =
new GeoMaterial(
"Air Toy",densityOfAir);
81 const GeoMaterial *
poly =
new GeoMaterial(
"std::Polystyrene",densityOfPolystyrene);
84 const GeoMaterial *air = materialManager->
getMaterial(
"std::Air");
85 const GeoMaterial *
poly = materialManager->
getMaterial(
"std::Polystyrene");
95 const GeoLogVol *toyLog =
new GeoLogVol(
"ToyLog", toyBox, air);
99 GeoPhysVol *toyPhys =
new GeoPhysVol(toyLog);
114 const GeoLogVol *ringLog =
new GeoLogVol(
"RingLog", ringTube, air);
118 GeoSerialDenominator *ringName =
new GeoSerialDenominator(
"RING");
119 toyPhys->add(ringName);
120 for (
int i=0;
i<100;
i++) {
121 GeoFullPhysVol *ringPhys =
new GeoFullPhysVol(ringLog);
122 GeoAlignableTransform *xform =
new GeoAlignableTransform(GeoTrf::TranslateZ3D((
i-50)*20*
SYSTEM_OF_UNITS::cm));
124 toyPhys->add(ringPhys);
138 GeoLogVol *lPass =
new GeoLogVol(
"Passive", sPass,
poly);
139 GeoPhysVol *pPass =
new GeoPhysVol(lPass);
142 GeoLogVol *lIPass =
new GeoLogVol(
"InnerPassive", sIPass, air);
143 GeoPhysVol *pIPass =
new GeoPhysVol(lIPass);
147 const unsigned int NPLATES=100;
151 GENFUNCTION
g =
sin(4*
f);
161 GeoSerialDenominator *pass1Name =
new GeoSerialDenominator(
"PASSIVE-1-");
162 GeoSerialTransformer *
s1 =
new GeoSerialTransformer(pPass,&
t1, NPLATES);
163 toyPhys->add(pass1Name);
166 GeoSerialDenominator *pass2Name =
new GeoSerialDenominator(
"PASSIVE-2-");
167 GeoSerialTransformer *
s2 =
new GeoSerialTransformer(pPass,&
t2, NPLATES);
168 toyPhys->add(pass2Name);
174 GeoNameTag *
tag =
new GeoNameTag(
"Toy");
◆ getDetectorManager()
◆ operator=()
◆ m_detectorManager
◆ m_detectorStore
The documentation for this class was generated from the following files: