Skip to content

Commit

Permalink
test: incidence angle
Browse files Browse the repository at this point in the history
  • Loading branch information
chchatte92 committed Oct 10, 2023
1 parent a5ea71a commit ffd9b46
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/test_pixel_gap_cuts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ int main(int argc, char** argv) {

// ReadoutGeo
richgeo::ReadoutGeo geo("DRICH", &det, &cellid_converter, logger);

richgeo::IrtGeoDRICH drichGeo(&det, &cellid_converter, logger);
// open input file
auto reader = podio::ROOTFrameReader();
reader.openFile(root_file_name);
Expand All @@ -72,6 +72,7 @@ int main(int argc, char** argv) {

auto cellID = sim_hit.getCellID();
auto pos = sim_hit.getPosition();
auto normZ = drichGeo.GetSensorSurface(cellID);
dd4hep::Position pos_global(pos.x*dd4hep::mm, pos.y*dd4hep::mm, pos.z*dd4hep::mm);
auto pos_local = geo.GetSensorLocalPosition(cellID, pos_global);
h->Fill(pos_local.y()/dd4hep::mm, pos_local.x()/dd4hep::mm);
Expand Down

0 comments on commit ffd9b46

Please sign in to comment.