1 | // $Id: EEventGeoFiller.cc 2819 2009-03-13 11:48:16Z naumov $ |
---|
2 | // Author: Alessandro Thea 2005/11/14 |
---|
3 | |
---|
4 | /***************************************************************************** |
---|
5 | * ESAF: Euso Simulation and Analysis Framework * |
---|
6 | * * |
---|
7 | * Id: EEventGeoFiller * |
---|
8 | * Package: <packagename> * |
---|
9 | * Coordinator: <coordinator> * |
---|
10 | * * |
---|
11 | *****************************************************************************/ |
---|
12 | |
---|
13 | //_____________________________________________________________________________ |
---|
14 | // |
---|
15 | // EEventGeoFiller |
---|
16 | // |
---|
17 | // <extensive class description> |
---|
18 | // |
---|
19 | // Config file parameters |
---|
20 | // ====================== |
---|
21 | // |
---|
22 | // <parameter name>: <parameter description> |
---|
23 | // -Valid options: <available options> |
---|
24 | // |
---|
25 | |
---|
26 | #include "EEventGeoFiller.hh" |
---|
27 | #include "EGeometry.hh" |
---|
28 | #include "DetectorGeometry.hh" |
---|
29 | |
---|
30 | #include <iostream> |
---|
31 | |
---|
32 | ClassImp(EEventGeoFiller) |
---|
33 | |
---|
34 | //_____________________________________________________________________________ |
---|
35 | EEventGeoFiller::EEventGeoFiller( DetectorGeometry* geo ) : EFiller("EGeometry") { |
---|
36 | // |
---|
37 | // Constructor |
---|
38 | // |
---|
39 | |
---|
40 | fGeo = geo; |
---|
41 | } |
---|
42 | |
---|
43 | //_____________________________________________________________________________ |
---|
44 | EEventGeoFiller::~EEventGeoFiller() { |
---|
45 | // |
---|
46 | // Destructor |
---|
47 | // |
---|
48 | } |
---|
49 | |
---|
50 | //______________________________________________________________________________ |
---|
51 | void EEventGeoFiller::Fill( EFillable* f ) { |
---|
52 | // |
---|
53 | // Event filler |
---|
54 | // |
---|
55 | |
---|
56 | EGeometry* geo = dynamic_cast<EGeometry*>(f); |
---|
57 | |
---|
58 | geo->SetPos(fGeo->GetPos()); |
---|
59 | geo->SetFoV(fGeo->GetFoV()); |
---|
60 | geo->SetRadius(fGeo->GetRadius()); |
---|
61 | geo->SetOpticsRadius(fGeo->GetOpticsRadius()); |
---|
62 | geo->SetRotation(*(fGeo->GetToGlobal())); |
---|
63 | |
---|
64 | } |
---|
65 | |
---|