Skip to content

Commit 6bfda1a

Browse files
author
myliu
committed
Update DriftChamber construct
1 parent 220144f commit 6bfda1a

File tree

5 files changed

+0
-10
lines changed

5 files changed

+0
-10
lines changed

Detector/DetDriftChamber/src/driftchamber/DriftChamber.cpp

-3
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,6 @@ static dd4hep::Ref_t create_detector(dd4hep::Detector& theDetector,
171171
offset = 0.5 * cell_phi;
172172
}
173173
double epsilon = sign_eps*std::atan(rmid_zZero * std::tan(alpha / 2.0) / chamber_half_length);
174-
//double alpha0 = 2*std::asin(chamber_length * std::tan(epsilon)/(2*rmid_zEnd));
175174

176175
segmentationDC->setGeomParams(chamber_id, layer_id, cell_phi, rmid_zEnd , epsilon, offset);
177176
segmentationDC->setWiresInLayer(chamber_id, layer_id, nCell);
@@ -241,8 +240,6 @@ static dd4hep::Ref_t create_detector(dd4hep::Detector& theDetector,
241240
}//end of loop over cell
242241
dd4hep::Transform3D transform_layer(dd4hep::Rotation3D(),
243242
dd4hep::Position(0,0,0));
244-
dd4hep::PlacedVolume layer_phy = det_chamber_vol.placeVolume(layer_vol,transform_layer);
245-
layer_phy.addPhysVolID("layer", layer_id);
246243
}//end of loop over layers
247244

248245

Detector/DetSegmentation/include/DetSegmentation/GridDriftChamber.h

-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ typedef struct CID
3434
{
3535
int chamberID;
3636
int layerID;
37-
// CID(){}
3837
CID(int i, int j): chamberID(i),layerID(j){}
3938
// the operator < defines the operation used in map
4039
friend bool operator < (const CID &c1, const CID &c2);
@@ -176,7 +175,6 @@ class GridDriftChamber : public Segmentation {
176175
}
177176

178177
double m_cellSize;
179-
// double m_epsilon0;
180178
double m_detectorLength;
181179
double m_layer_width;
182180
double m_DC_rbegin;

Detector/DetSegmentation/src/GridDriftChamber.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,5 @@ double GridDriftChamber::Distance(const CellID& cID, const TVector3& pointIn, co
329329
return distance;
330330
}
331331

332-
333332
}
334333
}

Digitisers/DCHDigi/src/DCHDigiAlg.cpp

-3
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,6 @@ StatusCode DCHDigiAlg::execute()
167167
TVector3 Wend (0,0,0);
168168
m_segmentation->cellposition(wcellid, Wstart, Wend);
169169
float dd4hep_mm = dd4hep::mm;
170-
//std::cout<<"dd4hep_mm="<<dd4hep_mm<<std::endl;
171-
// Wstart =(1/dd4hep_mm)* Wstart;// from DD4HEP cm to mm
172-
// Wend =(1/dd4hep_mm)* Wend ;
173170
if(m_debug) std::cout<<"DCHDigi wcellid ="<<wcellid<< ",chamber="<<chamber<<",layer="<<layer<<",cellID="<<cellID<<",s_x="<<Wstart.x()<<",s_y="<<Wstart.y()<<",s_z="<<Wstart.z()<<",E_x="<<Wend.x()<<",E_y="<<Wend.y()<<",E_z="<<Wend.z()<<std::endl;
174171

175172
TVector3 denominator = (Wend-Wstart) ;

Digitisers/DCHDigi/src/DCHDigiAlg.h

-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ class DCHDigiAlg : public GaudiAlgorithm
9696
Gaudi::Property<bool> m_debug{ this, "debug", false};
9797
Gaudi::Property<double> m_wireEff{ this, "wireEff", 1.0};
9898

99-
10099
// Input collections
101100
DataHandle<edm4hep::SimTrackerHitCollection> r_SimDCHCol{"DriftChamberHitsCollection", Gaudi::DataHandle::Reader, this};
102101
// Output collections

0 commit comments

Comments
 (0)