Skip to content
Snippets Groups Projects
Commit 852ccbcf authored by FU Chengdong's avatar FU Chengdong
Browse files

Merge branch 'master' into 'master'

Fix tpcData error, rMinReadout!=TPC_rMin_Sensitive

See merge request !78
parents 2ed4c806 4d96be6a
No related branches found
No related tags found
No related merge requests found
...@@ -90,6 +90,7 @@ static Ref_t create_element(Detector& theDetector, xml_h e, SensitiveDetector se ...@@ -90,6 +90,7 @@ static Ref_t create_element(Detector& theDetector, xml_h e, SensitiveDetector se
const double rOuter = theDetector.constant<double>("TPC_outer_radius") ; const double rOuter = theDetector.constant<double>("TPC_outer_radius") ;
const double drInnerWall = theDetector.constant<double>("TPC_dr_InnerWall"); const double drInnerWall = theDetector.constant<double>("TPC_dr_InnerWall");
const double drOuterWall = theDetector.constant<double>("TPC_dr_OuterWall"); const double drOuterWall = theDetector.constant<double>("TPC_dr_OuterWall");
const double drInnerServiceArea = theDetector.constant<double>("TPC_dr_InnerServiceArea");
const double dz_Cathode = theDetector.constant<double>("TPC_dz_Cathode"); const double dz_Cathode = theDetector.constant<double>("TPC_dz_Cathode");
const double dz_Endplate = theDetector.constant<double>("TPC_dz_Endplate"); const double dz_Endplate = theDetector.constant<double>("TPC_dz_Endplate");
const double dz_Readout = theDetector.constant<double>("TPC_dz_Readout"); const double dz_Readout = theDetector.constant<double>("TPC_dz_Readout");
...@@ -510,8 +511,8 @@ static Ref_t create_element(Detector& theDetector, xml_h e, SensitiveDetector se ...@@ -510,8 +511,8 @@ static Ref_t create_element(Detector& theDetector, xml_h e, SensitiveDetector se
tpcData->rMax = rOuter; tpcData->rMax = rOuter;
tpcData->innerWallThickness = drInnerWall; tpcData->innerWallThickness = drInnerWall;
tpcData->outerWallThickness = drOuterWall; tpcData->outerWallThickness = drOuterWall;
tpcData->rMinReadout = rInner + drInnerWall; tpcData->rMinReadout = rInner + drInnerWall + drInnerServiceArea;
tpcData->rMaxReadout = rInner + drInnerWall + tpcnumberOfPadRows*tpcpadheight; tpcData->rMaxReadout = rInner + drInnerWall + drInnerServiceArea + tpcnumberOfPadRows*tpcpadheight;
tpcData->maxRow = tpcnumberOfPadRows; tpcData->maxRow = tpcnumberOfPadRows;
tpcData->padHeight = tpcpadheight; tpcData->padHeight = tpcpadheight;
tpcData->padWidth = tpcpadwidth; tpcData->padWidth = tpcpadwidth;
......
...@@ -90,6 +90,7 @@ static Ref_t create_element(Detector& theDetector, xml_h e, SensitiveDetector se ...@@ -90,6 +90,7 @@ static Ref_t create_element(Detector& theDetector, xml_h e, SensitiveDetector se
const double rOuter = theDetector.constant<double>("TPC_outer_radius") ; const double rOuter = theDetector.constant<double>("TPC_outer_radius") ;
const double drInnerWall = theDetector.constant<double>("TPC_dr_InnerWall"); const double drInnerWall = theDetector.constant<double>("TPC_dr_InnerWall");
const double drOuterWall = theDetector.constant<double>("TPC_dr_OuterWall"); const double drOuterWall = theDetector.constant<double>("TPC_dr_OuterWall");
const double drInnerServiceArea = theDetector.constant<double>("TPC_dr_InnerServiceArea");
const double dz_Cathode = theDetector.constant<double>("TPC_dz_Cathode"); const double dz_Cathode = theDetector.constant<double>("TPC_dz_Cathode");
const double dz_Endplate = theDetector.constant<double>("TPC_dz_Endplate"); const double dz_Endplate = theDetector.constant<double>("TPC_dz_Endplate");
const double dz_Readout = theDetector.constant<double>("TPC_dz_Readout"); const double dz_Readout = theDetector.constant<double>("TPC_dz_Readout");
...@@ -454,8 +455,8 @@ static Ref_t create_element(Detector& theDetector, xml_h e, SensitiveDetector se ...@@ -454,8 +455,8 @@ static Ref_t create_element(Detector& theDetector, xml_h e, SensitiveDetector se
tpcData->rMax = rOuter; tpcData->rMax = rOuter;
tpcData->innerWallThickness = drInnerWall; tpcData->innerWallThickness = drInnerWall;
tpcData->outerWallThickness = drOuterWall; tpcData->outerWallThickness = drOuterWall;
tpcData->rMinReadout = rInner + drInnerWall; tpcData->rMinReadout = rInner + drInnerWall + drInnerServiceArea;
tpcData->rMaxReadout = rInner + drInnerWall + tpcnumberOfPadRows*tpcpadheight; tpcData->rMaxReadout = rInner + drInnerWall + drInnerServiceArea + tpcnumberOfPadRows*tpcpadheight;
tpcData->maxRow = tpcnumberOfPadRows; tpcData->maxRow = tpcnumberOfPadRows;
tpcData->padHeight = tpcpadheight; tpcData->padHeight = tpcpadheight;
tpcData->padWidth = tpcpadwidth; tpcData->padWidth = tpcpadwidth;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment