Skip to content

Commit

Permalink
Adapt to code style
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordi Duarte Campderros authored and Jordi Duarte Campderros committed Jun 29, 2020
1 parent aab88a8 commit 4df841c
Showing 1 changed file with 4 additions and 3 deletions.
Expand Up @@ -415,13 +415,14 @@ void Pixel3DDigitizerAlgorithm::induce_signal(const PSimHit& hit,
signal_map_type& the_signal = _signal[detId];

// Choose the proper pixel-to-channel converter
std::function<int(int,int)> pixelToChannel = pixelFlag_ ?
PixelDigi::pixelToChannel : static_cast<std::function<int(int,int)> >(Phase2TrackerDigi::pixelToChannel);
std::function<int(int, int)> pixelToChannel =
pixelFlag_ ? PixelDigi::pixelToChannel
: static_cast<std::function<int(int, int)> >(Phase2TrackerDigi::pixelToChannel);

// Iterate over collection points on the collection plane
for (const auto& pt : collection_points) {
// Extract corresponding channel (position is already given in pixel indices)
const int channel = pixelToChannel(pt.position().x(),pt.position().y());
const int channel = pixelToChannel(pt.position().x(), pt.position().y());

float corr_time = hit.tof() - pixdet->surface().toGlobal(hit.localPosition()).mag() * c_inv;
if (makeDigiSimLinks_) {
Expand Down

0 comments on commit 4df841c

Please sign in to comment.