ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4_TTL_EIC.C File Reference
#include "GlobalVariables.C"
#include <g4ttl/PHG4TTLSubsystem.h>
#include <g4detectors/PHG4CylinderSubsystem.h>
#include <g4main/PHG4Reco.h>
#include <string>
+ Include dependency graph for G4_TTL_EIC.C:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  Enable
 
namespace  G4TTL
 
namespace  G4TTL::SETTING
 

Macros

#define MACRO_G4TTLEIC_C
 

Functions

int make_forward_station (string name, PHG4Reco *g4Reco, double zpos, double Rmin, double Rmax, double tSilicon, double xoffset=0)
 
int make_forward_station_basic (string name, PHG4Reco *g4Reco, double zpos, double Rmin, double Rmax, double tSilicon)
 
int make_barrel_layer_basic (string name, PHG4Reco *g4Reco, double radius, double halflength, double tSilicon, double zOffset)
 
int make_barrel_layer_LYSO_basic (string name, PHG4Reco *g4Reco, double radius, double halflength, double tSilicon, double zOffset)
 
int make_barrel_layer (string name, PHG4Reco *g4Reco, double radius, double halflength, double tSilicon, double zOffset)
 
const double G4TTL::PositionResolution (30e-4)
 
void TTL_Init ()
 
void FTTLSetup (PHG4Reco *g4Reco, TString fttloption="")
 
void ETTLSetup (PHG4Reco *g4Reco, TString ettloption="")
 
void CTTLSetup (PHG4Reco *g4Reco, TString cttloption="")
 

Variables

bool Enable::FTTL = false
 
bool Enable::ETTL = false
 
bool Enable::CTTL = false
 
int G4TTL::layer [3] = { 2, 1, 2}
 
double G4TTL::positionToVtx [3][3] = { {-169., -172., -309.5}, {80., 114.7, 0. }, { 287., 289., 340.} }
 
double G4TTL::minExtension [3][3] = { {8, 8, 15.3}, {218, 180, 0 }, {11.62, 11.7, 13.8 } }
 
double G4TTL::maxExtension [3][3] = { {61., 61. , 200}, {-40, 0, 0 }, {170., 170., 250 } }
 
double G4TTL::xoffsetFTTLIP6 [3] = { -6., -6., -6.}
 
double G4TTL::xoffsetFTTLIP8 [3] = { 8.4, 8.4, 8.4}
 
bool G4TTL::SETTING::optionCEMC = false
 
bool G4TTL::SETTING::optionEEMCH = true
 
bool G4TTL::SETTING::optionBasicGeo = false
 
bool G4TTL::SETTING::optionLYSO = false
 
int G4TTL::SETTING::optionDR = 0
 
int G4TTL::SETTING::optionGeo = 7
 
int G4TTL::SETTING::optionGran = 1
 

Macro Definition Documentation

#define MACRO_G4TTLEIC_C

Definition at line 2 of file G4_TTL_EIC.C.

View newest version in sPHENIX GitHub at line 2 of file G4_TTL_EIC.C

Function Documentation

void CTTLSetup ( PHG4Reco g4Reco,
TString  cttloption = "" 
)

Definition at line 215 of file G4_TTL_EIC.C.

View newest version in sPHENIX GitHub at line 215 of file G4_TTL_EIC.C

References cm, e, G4TTL::layer, make_barrel_layer(), make_barrel_layer_basic(), make_barrel_layer_LYSO_basic(), G4TTL::maxExtension, G4TTL::minExtension, mm, G4TTL::SETTING::optionBasicGeo, G4TTL::SETTING::optionLYSO, G4TTL::positionToVtx, um, and PHG4Sector::Sector_Geometry::Unit_cm().

Referenced by G4Setup().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ETTLSetup ( PHG4Reco g4Reco,
TString  ettloption = "" 
)

Definition at line 199 of file G4_TTL_EIC.C.

View newest version in sPHENIX GitHub at line 199 of file G4_TTL_EIC.C

References cm, e, G4TTL::layer, make_forward_station(), make_forward_station_basic(), G4TTL::maxExtension, G4TTL::minExtension, mm, G4TTL::SETTING::optionBasicGeo, G4TTL::positionToVtx, um, and PHG4Sector::Sector_Geometry::Unit_cm().

Referenced by G4Setup().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void FTTLSetup ( PHG4Reco g4Reco,
TString  fttloption = "" 
)

Definition at line 181 of file G4_TTL_EIC.C.

View newest version in sPHENIX GitHub at line 181 of file G4_TTL_EIC.C

References cm, e, Enable::IP8, G4TTL::layer, make_forward_station(), make_forward_station_basic(), G4TTL::maxExtension, G4TTL::minExtension, mm, G4TTL::SETTING::optionBasicGeo, G4TTL::positionToVtx, um, PHG4Sector::Sector_Geometry::Unit_cm(), G4TTL::xoffsetFTTLIP6, and G4TTL::xoffsetFTTLIP8.

Referenced by G4Setup().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int make_barrel_layer ( string  name,
PHG4Reco g4Reco,
double  radius,
double  halflength,
double  tSilicon,
double  zOffset 
)

Definition at line 377 of file G4_TTL_EIC.C.

View newest version in sPHENIX GitHub at line 377 of file G4_TTL_EIC.C

References PHG4TrackFastSim::add_cylinder_state(), PHG4TrackFastSim::add_phg4hits(), cm, PHG4TrackFastSim::Cylinder, TRACKING::FastKalmanFilter(), TRACKING::FastKalmanFilterInnerTrack(), G4TTL::SETTING::optionCEMC, Enable::OVERLAPCHECK, PHG4DetectorSubsystem::OverlapCheck(), G4TTL::PositionResolution(), TRACKING::ProjectionNames, PHG4Reco::registerSubsystem(), PHG4DetectorSubsystem::set_double_param(), PHG4DetectorSubsystem::set_int_param(), PHG4TTLSubsystem::SetDetailed(), PHG4TTLSubsystem::SuperDetector(), and TrkrDefs::ttl.

Referenced by CTTLSetup().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int make_barrel_layer_basic ( string  name,
PHG4Reco g4Reco,
double  radius,
double  halflength,
double  tSilicon,
double  zOffset 
)

Definition at line 430 of file G4_TTL_EIC.C.

View newest version in sPHENIX GitHub at line 430 of file G4_TTL_EIC.C

References PHG4TrackFastSim::add_cylinder_state(), PHG4TrackFastSim::add_phg4hits(), PHG4TrackFastSim::Cylinder, TRACKING::FastKalmanFilter(), TRACKING::FastKalmanFilterInnerTrack(), material(), PHG4DetectorSubsystem::OverlapCheck(), G4TTL::PositionResolution(), TRACKING::ProjectionNames, radius, PHG4Reco::registerSubsystem(), PHG4DetectorSubsystem::set_double_param(), PHG4DetectorSubsystem::set_string_param(), PHG4DetectorSubsystem::SetActive(), PHG4DetectorSubsystem::SuperDetector(), thickness, and um.

Referenced by CTTLSetup().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int make_barrel_layer_LYSO_basic ( string  name,
PHG4Reco g4Reco,
double  radius,
double  halflength,
double  tSilicon,
double  zOffset 
)

Definition at line 500 of file G4_TTL_EIC.C.

View newest version in sPHENIX GitHub at line 500 of file G4_TTL_EIC.C

References PHG4TrackFastSim::add_cylinder_state(), PHG4TrackFastSim::add_phg4hits(), cm, PHG4TrackFastSim::Cylinder, e, TRACKING::FastKalmanFilter(), material(), G4TTL::SETTING::optionLYSO, Enable::OVERLAPCHECK, PHG4DetectorSubsystem::OverlapCheck(), G4TTL::PositionResolution(), TRACKING::ProjectionNames, radius, PHG4Reco::registerSubsystem(), PHG4DetectorSubsystem::set_double_param(), PHG4DetectorSubsystem::set_string_param(), PHG4DetectorSubsystem::SetActive(), PHG4DetectorSubsystem::SuperDetector(), and thickness.

Referenced by CTTLSetup().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int make_forward_station ( string  name,
PHG4Reco g4Reco,
double  zpos,
double  Rmin,
double  Rmax,
double  tSilicon,
double  xoffset = 0 
)

Definition at line 235 of file G4_TTL_EIC.C.

View newest version in sPHENIX GitHub at line 235 of file G4_TTL_EIC.C

References PHG4TrackFastSim::add_phg4hits(), PHG4TrackFastSim::add_zplane_state(), cm, TRACKING::FastKalmanFilter(), TRACKING::FastKalmanFilterInnerTrack(), M_PI, Enable::OVERLAPCHECK, PHG4DetectorSubsystem::OverlapCheck(), G4PLUGDOOR::place_z, G4TTL::PositionResolution(), TRACKING::ProjectionNames, PHG4Reco::registerSubsystem(), PHG4DetectorSubsystem::set_double_param(), PHG4DetectorSubsystem::set_int_param(), PHG4TTLSubsystem::SetDetailed(), PHG4TTLSubsystem::SuperDetector(), TrkrDefs::ttl, and PHG4TrackFastSim::Vertical_Plane.

Referenced by ETTLSetup(), and FTTLSetup().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int make_forward_station_basic ( string  name,
PHG4Reco g4Reco,
double  zpos,
double  Rmin,
double  Rmax,
double  tSilicon 
)
void TTL_Init ( )

Definition at line 68 of file G4_TTL_EIC.C.

View newest version in sPHENIX GitHub at line 68 of file G4_TTL_EIC.C

References G4TTL::layer, max, BlackHoleGeometry::max_radius, BlackHoleGeometry::max_z, G4TTL::maxExtension, G4TTL::minExtension, G4TTL::SETTING::optionBasicGeo, G4TTL::SETTING::optionCEMC, G4TTL::SETTING::optionDR, G4TTL::SETTING::optionEEMCH, G4TTL::SETTING::optionGeo, G4TTL::SETTING::optionLYSO, G4TTL::positionToVtx, G4TTL::xoffsetFTTLIP6, and G4TTL::xoffsetFTTLIP8.

Referenced by G4Init().

+ Here is the caller graph for this function: