Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4_RICH.C
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file G4_RICH.C
1 // $Id: G4_RICH.C,v 1.2 2013/10/09 01:08:17 jinhuang Exp $
2 
11 using namespace std;
12 
13 // global macro parameters
14 
15 void
17 {
18 }
19 
24 void
25 RICHSetup(PHG4Reco* g4Reco, //
26  const int N_RICH_Sector = 8, //
27  const double min_eta = 1.45, //
28  const double R_mirror_ref = 195, //cm
29  const double z_shift = 75, // cm
30  const double R_shift = 18.5 // cm
31  )
32 {
33 
34  /* Use dedicated RICH subsystem */
35  PHG4RICHSubsystem *rich = new PHG4RICHSubsystem("RICH");
36  rich->get_RICH_geometry().set_N_RICH_Sector(N_RICH_Sector);
37  rich->get_RICH_geometry().set_min_eta(min_eta);
38 
39  // rich->get_RICH_geometry().set_R_shift(10 * ePHENIXRICH::RICH_Geometry::Unit_cm()); // For compact RICH of 2<Eta<4
40 
41  rich->get_RICH_geometry().set_R_mirror_ref(R_mirror_ref * ePHENIXRICH::RICH_Geometry::Unit_cm());
42 
43  rich->get_RICH_geometry().set_z_shift(z_shift * ePHENIXRICH::RICH_Geometry::Unit_cm());
44  rich->get_RICH_geometry().set_R_shift(R_shift * ePHENIXRICH::RICH_Geometry::Unit_cm());
45 
46  /* Register RICH module */
47  rich->OverlapCheck( overlapcheck );
48 
49  g4Reco->registerSubsystem( rich );
50 
51 }