Skip to content
Snippets Groups Projects
Commit 5c377e95 authored by shexin@ihep.ac.cn's avatar shexin@ihep.ac.cn Committed by lintao@ihep.ac.cn
Browse files

TPC geometry update 2

parent 4234dadc
No related branches found
No related tags found
No related merge requests found
......@@ -33,6 +33,9 @@
<include ref="../CRD_common_v02/FTD_SkewRing_v01_05.xml"/>
<include ref="../CRD_common_v02/SIT_SimplePixel_v01_03.xml"/>
<include ref="../CRD_common_v01/TPC_Simple_v10_02.xml"/>
<include ref="../CRD_common_v01/SET_SimplePixel_v01_01.xml"/-->
<include ref="./TPC_ModularEndcap_TDR_o1_v01.xml"/>
<!--prepare for update, need check first-->
<!--include ref="../CRD_common_v02/TPC_ModularEndcap_o1_v01.xml"/-->
<include ref="../CRD_common_v01/SET_SimplePixel_v01_01.xml"/>
......
......@@ -28,6 +28,7 @@ using dd4hep::rec::SurfaceType;
using dd4hep::rec::volSurfaceList;
using dd4hep::rec::VolPlane;
using dd4hep::rec::FixedPadSizeTPCData;
using dd4hep::rec::ConicalSupportData;
/** Construction of TPC detector, ported from Mokka driver TPC10.cc
* Mokka History:
......@@ -507,6 +508,31 @@ static Ref_t create_element(Detector& theDetector, xml_h e, SensitiveDetector se
tpcData->driftLength = dzTotal/2.- dz_Endplate - dz_Readout - dz_Cathode/2.0; // SJA: cathode has to be added as the sensitive region does not start at 0.00
tpcData->zMinReadout = dz_Cathode/2.0;
ConicalSupportData* supportData = new ConicalSupportData;
ConicalSupportData::Section section0;
section0.rInner = rInner + drInnerWall;
section0.rOuter = rOuter - drOuterWall;
section0.zPos = dzTotal/2. - dz_Endplate - dz_Readout;
ConicalSupportData::Section section1;
section1.rInner = rInner + drInnerWall;
section1.rOuter = rOuter - drOuterWall;
section1.zPos = dzTotal/2. - dz_Endplate;
ConicalSupportData::Section section2;
section2.rInner = rInner ;
section2.rOuter = rOuter ;
section2.zPos = dzTotal/2.;
supportData->sections.push_back(section0);
supportData->sections.push_back(section1);
supportData->sections.push_back(section2);
tpc.addExtension< FixedPadSizeTPCData >(tpcData);
tpc.addExtension< ConicalSupportData >(supportData);
//tpc.setVisAttributes( theDetector, x_det.visStr(), envelope );
tpc.setVisAttributes( theDetector, "TPCMotherVis1", envelope );
// if( tpc.isValid() )
......
......@@ -28,6 +28,7 @@ using dd4hep::rec::SurfaceType;
using dd4hep::rec::volSurfaceList;
using dd4hep::rec::VolPlane;
using dd4hep::rec::FixedPadSizeTPCData;
using dd4hep::rec::ConicalSupportData;
/** Construction of TPC detector, ported from Mokka driver TPC10.cc
* Mokka History:
......@@ -450,6 +451,30 @@ static Ref_t create_element(Detector& theDetector, xml_h e, SensitiveDetector se
tpcData->padWidth = tpcpadwidth;
tpcData->driftLength = dzTotal/2.- dz_Endplate - dz_Readout - dz_Cathode/2.0; // SJA: cathode has to be added as the sensitive region does not start at 0.00
tpcData->zMinReadout = dz_Cathode/2.0;
ConicalSupportData* supportData = new ConicalSupportData;
ConicalSupportData::Section section0;
section0.rInner = rInner + drInnerWall;
section0.rOuter = rOuter - drOuterWall;
section0.zPos = dzTotal/2. - dz_Endplate - dz_Readout;
ConicalSupportData::Section section1;
section1.rInner = rInner + drInnerWall;
section1.rOuter = rOuter - drOuterWall;
section1.zPos = dzTotal/2. - dz_Endplate;
ConicalSupportData::Section section2;
section2.rInner = rInner ;
section2.rOuter = rOuter ;
section2.zPos = dzTotal/2.;
supportData->sections.push_back(section0);
supportData->sections.push_back(section1);
supportData->sections.push_back(section2);
tpc.addExtension< FixedPadSizeTPCData >(tpcData);
tpc.addExtension< ConicalSupportData >(supportData);
//tpc.setVisAttributes( theDetector, x_det.visStr(), envelope );
tpc.setVisAttributes( theDetector, "TPCMotherVis1", envelope );
......
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