FairRoot/PandaRoot
|
#include "TFile.h"
#include "TGeoArb8.h"
#include "TGeoCompositeShape.h"
#include "TGeoManager.h"
#include "TGeoMaterial.h"
#include "TGeoMedium.h"
#include "TGeoMatrix.h"
#include "TGeoPcon.h"
#include "TGeoTube.h"
#include "TGeoVolume.h"
#include "TMath.h"
#include "TSystem.h"
#include "TVector3.h"
#include "TView.h"
#include "TVirtualPad.h"
#include "TTree.h"
#include <iostream>
Go to the source code of this file.
Functions | |
void | geom () |
void | ConstructSlice (TGeoVolume *vol) |
void | ConstructTargetSlice (TGeoVolume *vol) |
void | ConstructSuperModule (TGeoVolume *vol, Int_t id, Bool_t is_target=kFALSE) |
void | ConstructModule (TGeoVolume *vol, Int_t id, Int_t sign, Bool_t is_target=kFALSE) |
void | CalculateCrystalMatricesZ () |
void | CalculateCrystalMatricesPhi () |
void | CreateFrontInsertShapesAndMatricesZ () |
void | CreateAlveoleShapesAndMatricesZ () |
TGeoTrap * | create_trap (TString name, Int_t type, Double_t af, Double_t bf, Double_t cf, Double_t ar, Double_t br, Double_t cr, Double_t l) |
TGeoTrap * | create_trap (TString name, Int_t type, Double_t af, Double_t bf, Double_t cf, Double_t ar, Double_t br, Double_t cr, Double_t l, Int_t i) |
void | get_trap_vertices (TGeoTrap *, TVector3 *points) |
void | raytrace_x (TGeoManager *geom, TString filename) |
void | raytrace_z (TGeoManager *geom, TString filename) |
int | main () |
Variables | |
TGeoManager * | geoMan |
TGeoTrap * | crystals_L [11] |
TGeoTrap * | crystals_R [11] |
TGeoCompositeShape * | wrappings_L [11] |
TGeoCompositeShape * | wrappings_R [11] |
TGeoCompositeShape * | front_inserts_L [11] |
TGeoCompositeShape * | front_inserts_R [11] |
TGeoCompositeShape * | alveoles_L_plus [43] |
TGeoCompositeShape * | alveoles_R_plus [43] |
TGeoCompositeShape * | alveoles_L_minus [28] |
TGeoCompositeShape * | alveoles_R_minus [28] |
TGeoCombiTrans * | matrices_minus_left [28] |
TGeoCombiTrans * | matrices_minus_right [28] |
TGeoCombiTrans * | matrices_plus_left [43] |
TGeoCombiTrans * | matrices_plus_right [43] |
TGeoTranslation * | matrices_fe2cry_left [11] |
TGeoTranslation * | matrices_fe2cry_right [11] |
TGeoMatrix * | matrices_alveole_minus_left [28] |
TGeoMatrix * | matrices_alveole_minus_right [28] |
TGeoMatrix * | matrices_alveole_plus_left [43] |
TGeoMatrix * | matrices_alveole_plus_right [43] |
Double_t | crystal_dz [43] |
Double_t | crystal_theta [44] |
TGeoMatrix * | matrices_phi [5] |
TGeoTranslation * | matrices_crystal2alveole_L [11] |
TGeoTranslation * | matrices_crystal2alveole_R [11] |
Double_t | AF [11] = {2.121, 2.118, 2.117, 2.117, 2.117, 2.119, 2.122, 2.123, 2.123, 2.125, 2.125} |
Double_t | BF [11] = {2.128, 2.128, 2.128, 2.128, 2.128, 2.128, 2.128, 2.128, 2.128, 2.128, 2.128} |
Double_t | CF [11] = {2.127, 2.139, 2.151, 2.160, 2.169, 2.178, 2.186, 2.191, 2.195, 2.200, 2.202} |
Double_t | AR [11] = {2.904, 2.878, 2.836, 2.790, 2.735, 2.672, 2.623, 2.570, 2.514, 2.470, 2.435} |
Double_t | BR [11] = {2.875, 2.875, 2.875, 2.722, 2.722, 2.722, 2.547, 2.547, 2.547, 2.442, 2.442} |
Double_t | CR [11] = {2.912, 2.907, 2.881, 2.845, 2.801, 2.747, 2.699, 2.651, 2.600, 2.556, 2.523} |
Double_t | theta_hole_corr = -(4.997 + 3.862213309 + 90.) |
void CalculateCrystalMatricesPhi | ( | ) |
Definition at line 681 of file createRootGeoFileBarrel_2018v1.C.
References Double_t, i, matrices_phi, rot, rot1, theta, and theta_hole_corr.
Referenced by geom().
void CalculateCrystalMatricesZ | ( | ) |
Definition at line 507 of file createRootGeoFileBarrel_2018v1.C.
References CAMath::Cos(), crystal_dz, crystal_theta, crystals_L, crystals_R, Double_t, dz, get_trap_vertices(), h1, h2, i, matrices_minus_left, matrices_minus_right, matrices_plus_left, matrices_plus_right, Pi, and theta.
Referenced by geom().
void ConstructModule | ( | TGeoVolume * | vol, |
Int_t | id, | ||
Int_t | sign, | ||
Bool_t | is_target = kFALSE |
||
) |
Definition at line 386 of file createRootGeoFileBarrel_2018v1.C.
References alveoles_L_minus, alveoles_L_plus, alveoles_R_minus, alveoles_R_plus, crystals_L, crystals_R, front_inserts_L, front_inserts_R, geoMan, i, matrices_alveole_minus_left, matrices_alveole_minus_right, matrices_alveole_plus_left, matrices_alveole_plus_right, matrices_fe2cry_left, matrices_fe2cry_right, matrices_minus_left, matrices_minus_right, matrices_phi, matrices_plus_left, matrices_plus_right, TString, wrappings_L, and wrappings_R.
Referenced by ConstructSuperModule().
void ConstructSlice | ( | TGeoVolume * | vol | ) |
Definition at line 210 of file createRootGeoFileBarrel_2018v1.C.
References ConstructSuperModule(), geoMan, and theta_hole_corr.
Referenced by geom().
void ConstructSuperModule | ( | TGeoVolume * | vol, |
Int_t | id, | ||
Bool_t | is_target = kFALSE |
||
) |
Definition at line 304 of file createRootGeoFileBarrel_2018v1.C.
References ConstructModule().
Referenced by ConstructSlice(), and ConstructTargetSlice().
void ConstructTargetSlice | ( | TGeoVolume * | vol | ) |
Definition at line 249 of file createRootGeoFileBarrel_2018v1.C.
References ConstructSuperModule(), geoMan, and theta_hole_corr.
Referenced by geom().
TGeoTrap * create_trap | ( | TString | name, |
Int_t | type, | ||
Double_t | af, | ||
Double_t | bf, | ||
Double_t | cf, | ||
Double_t | ar, | ||
Double_t | br, | ||
Double_t | cr, | ||
Double_t | l | ||
) |
Definition at line 1110 of file createRootGeoFileBarrel_2018v1.C.
References Double_t, dz, h1, h2, phi, Pi, and theta.
Referenced by CreateAlveoleShapesAndMatricesZ(), CreateFrontInsertShapesAndMatricesZ(), and geom().
TGeoTrap * create_trap | ( | TString | name, |
Int_t | type, | ||
Double_t | af, | ||
Double_t | bf, | ||
Double_t | cf, | ||
Double_t | ar, | ||
Double_t | br, | ||
Double_t | cr, | ||
Double_t | l, | ||
Int_t | i | ||
) |
Definition at line 1147 of file createRootGeoFileBarrel_2018v1.C.
References crystal_theta, Double_t, dz, h1, h2, phi, Pi, CAMath::Tan(), and theta.
void CreateAlveoleShapesAndMatricesZ | ( | ) |
Definition at line 775 of file createRootGeoFileBarrel_2018v1.C.
References alveoles_L_minus, alveoles_L_plus, alveoles_R_minus, alveoles_R_plus, BF, BR, CF, CAMath::Cos(), CR, create_trap(), crystal_theta, Double_t, get_trap_vertices(), i, matrices_alveole_minus_left, matrices_alveole_minus_right, matrices_alveole_plus_left, matrices_alveole_plus_right, Pi, safety, CAMath::Sin(), CAMath::Tan(), thickness, X, Y, and Z.
Referenced by geom().
void CreateFrontInsertShapesAndMatricesZ | ( | ) |
Definition at line 698 of file createRootGeoFileBarrel_2018v1.C.
References AF, AR, BF, BR, CF, CR, create_trap(), crystals_L, crystals_R, Double_t, front_inserts_L, front_inserts_R, get_trap_vertices(), i, matrices_fe2cry_left, matrices_fe2cry_right, and thickness.
Referenced by geom().
void geom | ( | ) |
Definition at line 79 of file createRootGeoFileBarrel_2018v1.C.
References ABS, AF, AR, BF, BR, CalculateCrystalMatricesPhi(), CalculateCrystalMatricesZ(), CF, ConstructSlice(), ConstructTargetSlice(), CR, create_trap(), CreateAlveoleShapesAndMatricesZ(), CreateFrontInsertShapesAndMatricesZ(), crystals_L, crystals_R, Double_t, f, geobuild, geoFace, geoLoad, geoMan, i, Media, rot, theta, thickness, top, wrappings_L, and wrappings_R.
Referenced by FairEvtFilterOnSingleParticleCounts::AcceptGeometry(), FairEvtFilterOnSingleParticleCounts::AndMinMaxGeom(), CrystalShapeTest(), hypGe_DoubleGeo(), hypGe_GeoBuilder_template(), hypGe_TripleGeo(), hypGeCableAbsorptionTest(), hypGeGeantTestGeometry(), hypGeGeoBuilderDEGASBall40_6sym_offset20(), hypGeGeoBuilderDEGASStraight40_offset15(), hypGeGeoBuilderDEGASStraight40_offset20(), hypGeGeoBuilderDouble30cmRadius(), hypGeGeoBuilderDouble30cmRadius_test(), hypGeGeoBuilderSingle(), hypGeGeoBuilderTriple30cmRadius(), hypGeGeoBuilderTriple30cmRadius_test(), hypGeGeoBuilderTriple30cmRadiusCrystalsOnly(), hypGeGeoBuilderTripleBall40Offset10Geometry(), hypGeGeoBuilderTripleBall40Offset10Geometry_STTFitting(), hypGeGeoBuilderTripleBall40Offset10GeometryCrystalsOnly(), hypGeGeoBuilderTripleBall40Offset20Geometry(), hypGeGeoBuilderTripleBall40Offset20Geometry_STTFitting(), hypGeGeoBuilderTripleBall40Offset20Geometry_STTFittingCrystalsOnly(), hypGeGeoBuilderTripleBall40Offset20GeometryCrystalsOnly(), hypGeGeoBuilderTripleStraightGeometry(), hypGeGeoBuilderTripleStraightGeometryCrystalsOnly(), hypGeGeoCOSYBeamDumpTOF(), hypGeGeoCOSYGermaniums(), hypGeGeoCOSYInBeamStuff(), hypGeGeoCOSYsetup2014(), hypGeGeoCOSYsetup2014Actives(), hypGeGeoCOSYsetup2014Passives(), hypGeGeoCOSYSiPm(), hypGeGeoCOSYTarget(), main(), muon_barrel_strip_5bis(), sim(), and simLut().
void get_trap_vertices | ( | TGeoTrap * | trap, |
TVector3 * | points | ||
) |
Definition at line 1183 of file createRootGeoFileBarrel_2018v1.C.
References Double_t, i, and p.
Referenced by CalculateCrystalMatricesZ(), CreateAlveoleShapesAndMatricesZ(), and CreateFrontInsertShapesAndMatricesZ().
int main | ( | void | ) |
Definition at line 75 of file createRootGeoFileBarrel_2018v1.C.
References geom().
void raytrace_x | ( | TGeoManager * | geom, |
TString | filename | ||
) |
void raytrace_z | ( | TGeoManager * | geom, |
TString | filename | ||
) |
Double_t AF[11] = {2.121, 2.118, 2.117, 2.117, 2.117, 2.119, 2.122, 2.123, 2.123, 2.125, 2.125} |
Definition at line 48 of file createRootGeoFileBarrel_2018v1.C.
Referenced by CreateFrontInsertShapesAndMatricesZ(), and geom().
TGeoCompositeShape* alveoles_L_minus[28] |
Definition at line 30 of file createRootGeoFileBarrel_2018v1.C.
Referenced by ConstructModule(), and CreateAlveoleShapesAndMatricesZ().
TGeoCompositeShape* alveoles_L_plus[43] |
Definition at line 28 of file createRootGeoFileBarrel_2018v1.C.
Referenced by ConstructModule(), and CreateAlveoleShapesAndMatricesZ().
TGeoCompositeShape* alveoles_R_minus[28] |
Definition at line 31 of file createRootGeoFileBarrel_2018v1.C.
Referenced by ConstructModule(), and CreateAlveoleShapesAndMatricesZ().
TGeoCompositeShape* alveoles_R_plus[43] |
Definition at line 29 of file createRootGeoFileBarrel_2018v1.C.
Referenced by ConstructModule(), and CreateAlveoleShapesAndMatricesZ().
Double_t AR[11] = {2.904, 2.878, 2.836, 2.790, 2.735, 2.672, 2.623, 2.570, 2.514, 2.470, 2.435} |
Definition at line 51 of file createRootGeoFileBarrel_2018v1.C.
Referenced by CreateFrontInsertShapesAndMatricesZ(), and geom().
Double_t BF[11] = {2.128, 2.128, 2.128, 2.128, 2.128, 2.128, 2.128, 2.128, 2.128, 2.128, 2.128} |
Definition at line 49 of file createRootGeoFileBarrel_2018v1.C.
Referenced by CreateAlveoleShapesAndMatricesZ(), CreateFrontInsertShapesAndMatricesZ(), and geom().
Double_t BR[11] = {2.875, 2.875, 2.875, 2.722, 2.722, 2.722, 2.547, 2.547, 2.547, 2.442, 2.442} |
Definition at line 52 of file createRootGeoFileBarrel_2018v1.C.
Referenced by CreateAlveoleShapesAndMatricesZ(), CreateFrontInsertShapesAndMatricesZ(), and geom().
Double_t CF[11] = {2.127, 2.139, 2.151, 2.160, 2.169, 2.178, 2.186, 2.191, 2.195, 2.200, 2.202} |
Definition at line 50 of file createRootGeoFileBarrel_2018v1.C.
Referenced by CreateAlveoleShapesAndMatricesZ(), CreateFrontInsertShapesAndMatricesZ(), and geom().
Double_t CR[11] = {2.912, 2.907, 2.881, 2.845, 2.801, 2.747, 2.699, 2.651, 2.600, 2.556, 2.523} |
Definition at line 53 of file createRootGeoFileBarrel_2018v1.C.
Referenced by CreateAlveoleShapesAndMatricesZ(), CreateFrontInsertShapesAndMatricesZ(), PndFtsDataAccessor::Exec(), PndCATracking::Exec(), geom(), PndFtsCATracking::WriteFTSHits(), and PndCATracking::WriteMVDHits().
Double_t crystal_dz[43] |
Definition at line 42 of file createRootGeoFileBarrel_2018v1.C.
Referenced by CalculateCrystalMatricesZ().
Double_t crystal_theta[44] |
Definition at line 43 of file createRootGeoFileBarrel_2018v1.C.
Referenced by CalculateCrystalMatricesZ(), create_trap(), and CreateAlveoleShapesAndMatricesZ().
TGeoTrap* crystals_L[11] |
Definition at line 22 of file createRootGeoFileBarrel_2018v1.C.
Referenced by CalculateCrystalMatricesZ(), ConstructModule(), CreateFrontInsertShapesAndMatricesZ(), and geom().
TGeoTrap* crystals_R[11] |
Definition at line 23 of file createRootGeoFileBarrel_2018v1.C.
Referenced by CalculateCrystalMatricesZ(), ConstructModule(), CreateFrontInsertShapesAndMatricesZ(), and geom().
TGeoCompositeShape* front_inserts_L[11] |
Definition at line 26 of file createRootGeoFileBarrel_2018v1.C.
Referenced by ConstructModule(), and CreateFrontInsertShapesAndMatricesZ().
TGeoCompositeShape* front_inserts_R[11] |
Definition at line 27 of file createRootGeoFileBarrel_2018v1.C.
Referenced by ConstructModule(), and CreateFrontInsertShapesAndMatricesZ().
TGeoManager* geoMan |
Definition at line 21 of file createRootGeoFileBarrel_2018v1.C.
Referenced by anaclust(), ConstructModule(), ConstructSlice(), ConstructTargetSlice(), convert_geometry(), draw_track(), drawGeo(), gem_material_ana1(), geoconvert(), geom(), geotester(), if(), PndEmcStructure::Instance(), materialana(), and QAmacro_mdt_2().
TGeoMatrix* matrices_alveole_minus_left[28] |
Definition at line 38 of file createRootGeoFileBarrel_2018v1.C.
Referenced by ConstructModule(), and CreateAlveoleShapesAndMatricesZ().
TGeoMatrix* matrices_alveole_minus_right[28] |
Definition at line 39 of file createRootGeoFileBarrel_2018v1.C.
Referenced by ConstructModule(), and CreateAlveoleShapesAndMatricesZ().
TGeoMatrix* matrices_alveole_plus_left[43] |
Definition at line 40 of file createRootGeoFileBarrel_2018v1.C.
Referenced by ConstructModule(), and CreateAlveoleShapesAndMatricesZ().
TGeoMatrix* matrices_alveole_plus_right[43] |
Definition at line 41 of file createRootGeoFileBarrel_2018v1.C.
Referenced by ConstructModule(), and CreateAlveoleShapesAndMatricesZ().
TGeoTranslation* matrices_crystal2alveole_L[11] |
Definition at line 45 of file createRootGeoFileBarrel_2018v1.C.
TGeoTranslation* matrices_crystal2alveole_R[11] |
Definition at line 46 of file createRootGeoFileBarrel_2018v1.C.
TGeoTranslation* matrices_fe2cry_left[11] |
Definition at line 36 of file createRootGeoFileBarrel_2018v1.C.
Referenced by ConstructModule(), and CreateFrontInsertShapesAndMatricesZ().
TGeoTranslation* matrices_fe2cry_right[11] |
Definition at line 37 of file createRootGeoFileBarrel_2018v1.C.
Referenced by ConstructModule(), and CreateFrontInsertShapesAndMatricesZ().
TGeoCombiTrans* matrices_minus_left[28] |
Definition at line 32 of file createRootGeoFileBarrel_2018v1.C.
Referenced by CalculateCrystalMatricesZ(), and ConstructModule().
TGeoCombiTrans* matrices_minus_right[28] |
Definition at line 33 of file createRootGeoFileBarrel_2018v1.C.
Referenced by CalculateCrystalMatricesZ(), and ConstructModule().
TGeoMatrix* matrices_phi[5] |
Definition at line 44 of file createRootGeoFileBarrel_2018v1.C.
Referenced by CalculateCrystalMatricesPhi(), and ConstructModule().
TGeoCombiTrans* matrices_plus_left[43] |
Definition at line 34 of file createRootGeoFileBarrel_2018v1.C.
Referenced by CalculateCrystalMatricesZ(), and ConstructModule().
TGeoCombiTrans* matrices_plus_right[43] |
Definition at line 35 of file createRootGeoFileBarrel_2018v1.C.
Referenced by CalculateCrystalMatricesZ(), and ConstructModule().
Double_t theta_hole_corr = -(4.997 + 3.862213309 + 90.) |
Definition at line 54 of file createRootGeoFileBarrel_2018v1.C.
Referenced by CalculateCrystalMatricesPhi(), ConstructSlice(), and ConstructTargetSlice().
TGeoCompositeShape* wrappings_L[11] |
Definition at line 24 of file createRootGeoFileBarrel_2018v1.C.
Referenced by ConstructModule(), and geom().
TGeoCompositeShape* wrappings_R[11] |
Definition at line 25 of file createRootGeoFileBarrel_2018v1.C.
Referenced by ConstructModule(), and geom().