Skip to content

Commit

Permalink
Change the unit for RHICf geometry mm to cm
Browse files Browse the repository at this point in the history
  • Loading branch information
ggfdsa10 committed Dec 13, 2024
1 parent 054460e commit b9a58cb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions StRoot/StarGenerator/FILT/RHICfFilter.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -122,20 +122,20 @@ int RHICfFilter::Filter( StarGenEvent *_event )

int RHICfFilter::InitRHICfGeometry()
{
double tsDetSize = 20.; // [mm]
double tlDetSize = 40.; // [mm]
double detBoundCut = 2.; // [mm]
double distTStoTL = 47.4; // [mm]
double tsDetSize = 2.; // [cm]
double tlDetSize = 4.; // [cm]
double detBoundCut = 0.2; // [cm]
double distTStoTL = 4.74; // [cm]

double detBeamCenter = 0.;
double detBeamCenter = 0.; // [cm]

if(mRHICfRunType < 0 || mRHICfRunType > 2){
cout << "RHICfFilter::InitRHICfGeometry() warning!!! RHICf run type is not setted!!!" << endl;
return 0;
}
if(mRHICfRunType == 0){detBeamCenter = 0.;} // TS
if(mRHICfRunType == 1){detBeamCenter = -47.4;} // TL
if(mRHICfRunType == 2){detBeamCenter = 21.6;} // TOP
if(mRHICfRunType == 1){detBeamCenter = -4.74;} // TL
if(mRHICfRunType == 2){detBeamCenter = 2.16;} // TOP

mRHICfTowerBoundary[0][0][0] = sqrt(2)*((tsDetSize - detBoundCut*2.)/2.);
mRHICfTowerBoundary[0][0][1] = 0.;
Expand Down
2 changes: 1 addition & 1 deletion StRoot/StarGenerator/FILT/RHICfFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class RHICfFilter : public StarFilterMaker
bool mIsNeuEvent;

double mEnergyCut; // [GeV]
double mRHICfDetZ = 17800.; // [mm]
double mRHICfDetZ = 1780.; // [cm]

ClassDef(RHICfFilter,0);
};
Expand Down

0 comments on commit b9a58cb

Please sign in to comment.