00001
00002
00003 #include "gismo/Detector.h"
00004 #include "gismo/World.h"
00005 #include "geometry/Box.h"
00006 #include "gismo/Field.h"
00007 #include "gismo/TowerArray.h"
00008 #include "gismo/MCParticle.h"
00009 #include "gismo/SimpleDetector.h"
00010
00011
00012
00013
00014
00015
00016 class Demo1 : public World
00017 {
00018 public:
00019 Demo1()
00020 :World(150)
00021 {
00022 setMaxStep(500.);
00023 Medium* child;
00024
00025
00026
00027
00028 TowerArray* tower = new TowerArray(10,10,50,50,50 ,0);
00029 tower->s_display_scale = 1/0.01;
00030
00031 child= new Medium(this, new Box(50,50,100), "ArLiq", tower );
00032 child->setTitle("calorimeter");
00033 child->setMaxStep(1.0);
00034 child->setField(new Field(0,0.4,0));
00035 child->moveZ(10);
00036
00037
00038
00039 child = new Medium(this, new Box(50,50,1) , "Pb" );
00040 child->setTitle("preradiator");
00041 child->moveZ(-55);
00042
00043
00044
00045 child = new Medium(this, new Box(50.,50.,1.0),"vacuum", new SimpleDetector("tracker"));
00046 child->setTitle("tracker");
00047 child->moveZ(-50);
00048
00049 }
00050 };
00051