Skip to content
Snippets Groups Projects
Commit dec96c2a authored by guofangyi@ihep.ac.cn's avatar guofangyi@ihep.ac.cn
Browse files

Add source file in CMakeLists

parent f4b006c3
No related branches found
No related tags found
No related merge requests found
......@@ -17,6 +17,7 @@ find_package(ROOT COMPONENTS MathCore GenVector Geom REQUIRED)
gaudi_add_module(DetCRD
SOURCES src/Calorimeter/CRDEcal.cpp
src/Calorimeter/CRDEcal_v01.cpp
src/Other/CRDBeamPipe_v01_geo.cpp
LINK ${DD4hep_COMPONENT_LIBRARIES}
)
......
......@@ -140,7 +140,7 @@ static dd4hep::Ref_t create_detector(dd4hep::Detector& theDetector,
dd4hep::DetElement sd(stavedet, blockname, detid);
//sub-layer 0: bars along phi. length=barz_s0. Bar num=Nbar_z
/* for(int ibar0=1;ibar0<=Nbar_z;ibar0++){
for(int ibar0=1;ibar0<=Nbar_z;ibar0++){
dd4hep::PlacedVolume plv_bar0 = block.placeVolume(bar_s0, Position(0,(2*ibar0-1)*bary/2-barz_s1/2, -barx/2));
plv_bar0.addPhysVolID("slayer",0).addPhysVolID("bar",ibar0);
std::string barname0 = "CrystalBar_s0_"+std::to_string(ibar0);
......@@ -156,7 +156,7 @@ static dd4hep::Ref_t create_detector(dd4hep::Detector& theDetector,
dd4hep::DetElement bardet1(sd, barname1, detid);
bardet1.setPlacement(plv_bar1);
}
*/
//dd4hep::PlacedVolume plv = det_vol.placeVolume(block, Position(lx-(2*iphi-1)*barz_s0/2, (2*iz-1)*barz_s1/2-dim_y, (2*ilayer-1)*bary-dim_z));
dd4hep::PlacedVolume plv = det_stave.placeVolume(block, Position(lx-(2*iphi-1)*barz_s0/2, 0, (2*ilayer-1)*bary-dim_z));
plv.addPhysVolID("dlayer", ilayer).addPhysVolID("part", iphi);
......
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