KaliVeda  1.13/01
Heavy-Ion Analysis Toolkit
KVFAZIALNS17.cpp
Go to the documentation of this file.
1 //Created by KVClassFactory on Tue Jan 27 11:38:09 2015
2 //Author: ,,,
3 
4 #include "KVFAZIALNS17.h"
5 #include "KVUnits.h"
6 #include "KVFAZIABlock.h"
7 #include "TSystem.h"
8 #include "KVEnv.h"
9 
10 #include <TGeoMatrix.h>
11 
13 
14 // BEGIN_HTML <!--
16 /* -->
17 <h2>KVFAZIALNS17</h2>
18 <h4>Description of the FAZIA set up</h4>
19 <!-- */
20 // --> END_HTML
22 
23 
24 
28 {
29  // Default constructor
30 }
31 
32 
33 
36 
38 {
39  // Destructor
40 }
41 
42 
43 
46 
48 {
49  //Defined number of blocks, the distance from the target and the minimum polar angle
50  fNblocks = 6;
51  fFDist = 100.;
52  fFThetaMin = 1.65;
53 }
54 
55 
56 
62 
64 {
65  // Telescope for elastic scattering monitoring
66  // Two 5mm diameter silicon detectors of 525um thickness
67  // placed 2m20 from the target at theta=1.84deg phi=-90deg.
68  // distance between centres of detectors = 1mm
69 
70  KVMaterial silicon("Si");
71 
72  const double radius = 9 * KVUnits::mm / 2.;
73 
74  const double thick = 525 * KVUnits::um;
75  const double centre_dist = 1 * KVUnits::mm;
76  double total_thickness = thick + centre_dist;
77 
78  TGeoVolume* si_det = gGeoManager->MakeTube("DET_SI", silicon.GetGeoMedium(), 0., radius, thick / 2);
79 
80  TGeoVolumeAssembly* ruth_tel = gGeoManager->MakeVolumeAssembly("STRUCT_RUTH");
81 
82  ruth_tel->AddNode(si_det, 1, new TGeoTranslation(0, 0, -centre_dist / 2));
83  ruth_tel->AddNode(si_det, 2, new TGeoTranslation(0, 0, centre_dist / 2));
84 
85  // front entrance of first detector at 2 metres from target
86  const double distance = 2.27 * KVUnits::m + 0.5 * total_thickness;
87  const double theta = 0.99;
88  const double phi = -54.07;
89  gGeoManager->GetTopVolume()->AddNode(ruth_tel, 1,
90  GetVolumePositioningMatrix(distance, theta, phi)
91  );
92 }
93 
94 
95 
96 
102 
104 {
105  //Build geometry of FAZIASYM
106  //All telescopes are : Si(300?m)-Si(500?m)-CsI(10cm)
107  //No attempt has been made to implement real thicknesses
108  //
109  Info("BuildFAZIA", "Compact geometry, %f cm from target + 2BLK around 20 degrees",
110  fFDist);
111 
113 
114  Double_t distance_block_cible = fFDist * KVUnits::cm;
115 
116  KVFAZIABlock* block = new KVFAZIABlock;
117 
118  Double_t theta = 0;
119  Double_t phi = 0;
120 
121  Double_t theta_min = fFThetaMin;//smallest lab polar angle in degrees
122  Double_t centre_hole = 2.*tan(theta_min * TMath::DegToRad()) * distance_block_cible;
123  Double_t dx = (block->GetTotalSideWithBlindage()) / 2.;
124 
125  TVector3 centre;
126  for (Int_t bb = 0; bb < fNblocks; bb += 1) {
127 
128  if (bb == 1) centre.SetXYZ(-1 * (dx - centre_hole / 2), -dx - centre_hole / 2, distance_block_cible);
129  else if (bb == 2) centre.SetXYZ(-1 * (dx + centre_hole / 2), dx - centre_hole / 2, distance_block_cible);
130  else if (bb == 3) centre.SetXYZ(-1 * (-dx + centre_hole / 2), dx + centre_hole / 2, distance_block_cible);
131  else if (bb == 0) centre.SetXYZ(-1 * (-dx - centre_hole / 2), -dx + centre_hole / 2, distance_block_cible);
132  else if (bb == 4) centre.SetXYZ(0, -25, distance_block_cible);
133  else if (bb == 5) centre.SetXYZ(0, 25, distance_block_cible);
134  else {
135  Warning("BuildFAZIA", "Block position definition is done only for %d blocks", fNblocks);
136  }
137  theta = centre.Theta() * TMath::RadToDeg();
138  phi = centre.Phi() * TMath::RadToDeg();
139  printf("BLK #%d => theta=%1.2lf - phi=%1.2lf\n", bb, theta, phi);
140  top->AddNode(block, bb,
142  theta, phi)
143  );
144  }
145 
146  // add telescope for elastic scattering monitoring
148  // Change default geometry import angular range for rutherford telescope
149  SetGeometryImportParameters(.25, 1., 0.5) ;
150 }
151 
152 
153 
155 
157 {
158 
160  env.SetValue("RUTH_SI_1", "SI1-RUTH");
161  env.SetValue("RUTH_SI_2", "SI2-RUTH");
162 
163 }
164 
165 
int Int_t
ClassImp(KVPartitionList) void KVPartitionList
Initialisation.
double Double_t
R__EXTERN TGeoManager * gGeoManager
double tan(double)
Extension of TEnv to allow the writing of comments in the file.
Definition: KVEnv.h:16
Standard geometry of 16-telescope FAZIA block.
Definition: KVFAZIABlock.h:16
Double_t GetNominalDistanceTargetBlockCentre(double dist_SI1=100.) const
Definition: KVFAZIABlock.h:73
Double_t GetTotalSideWithBlindage() const
Definition: KVFAZIABlock.h:68
FAZIA set-up for LNS 2017.
Definition: KVFAZIALNS17.h:15
virtual ~KVFAZIALNS17()
Destructor.
void RutherfordTelescope()
virtual void SetNameOfDetectors(KVEnv &env)
virtual void BuildFAZIA()
virtual void GetGeometryParameters()
Defined number of blocks, the distance from the target and the minimum polar angle.
Double_t fFDist
distance of FAZIA detectors from target (in cm)
Definition: KVFAZIA.h:35
void SetGeometryImportParameters(Double_t dt=0.25, Double_t dp=1.0, Double_t tmin=2., Double_t pmin=0, Double_t tmax=20., Double_t pmax=360., Double_t xorg=0, Double_t yorg=0, Double_t zorg=0)
Definition: KVFAZIA.h:233
Double_t fFThetaMin
minimum polar angle for compact geometry (in degrees)
Definition: KVFAZIA.h:36
virtual void SetNameOfDetectors(KVEnv &env)
Definition: KVFAZIA.cpp:304
Int_t fNblocks
number of blocks
Definition: KVFAZIA.h:37
Description of physical materials used to construct detectors & targets; interface to range tables.
Definition: KVMaterial.h:93
virtual TGeoMedium * GetGeoMedium(const Char_t *="")
static TGeoHMatrix * GetVolumePositioningMatrix(Double_t distance, Double_t theta, Double_t phi, TGeoTranslation *postTrans=nullptr)
virtual void SetValue(const char *name, const char *value, EEnvLevel level=kEnvChange, const char *type=nullptr)
TGeoVolume * MakeTube(const char *name, TGeoMedium *medium, Double_t rmin, Double_t rmax, Double_t dz)
TGeoVolumeAssembly * MakeVolumeAssembly(const char *name)
TGeoVolume * GetTopVolume() const
virtual void AddNode(TGeoVolume *vol, Int_t copy_no, TGeoMatrix *mat=0, Option_t *option="")
virtual void AddNode(TGeoVolume *vol, Int_t copy_no, TGeoMatrix *mat=0, Option_t *option="")
virtual void Warning(const char *method, const char *msgfmt,...) const
virtual void Info(const char *method, const char *msgfmt,...) const
void SetXYZ(Double_t x, Double_t y, Double_t z)
Double_t Phi() const
Double_t Theta() const
const long double mm
Definition: KVUnits.h:69
const long double um
Definition: KVUnits.h:68
const long double cm
Definition: KVUnits.h:66
const long double m
Definition: KVUnits.h:70
constexpr Double_t DegToRad()
constexpr Double_t RadToDeg()