Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,10 @@ struct MoliereRadius final
double moliereRadius = 0.0;

// Retrieve barycentre and total energy
double barycentre_x = InputBarycenter[0]->at(0);
double barycentre_y = InputBarycenter[1]->at(0);
double totalEnergy = InputTotalEnergy.at(0);
// [[maybe_unused]] used to avoid downstream build failures due to unused variables
[[maybe_unused]] double barycentre_x = InputBarycenter[0]->at(0);
[[maybe_unused]] double barycentre_y = InputBarycenter[1]->at(0);
[[maybe_unused]] double totalEnergy = InputTotalEnergy.at(0);

// Step 1: Calculate radius for each hit and store with energy
// You can use the HitData struct defined below to store the relevant information
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,15 @@ struct RandomNoiseDigitizer final
random_engine.seed(engine_seed);

// Create the random distributions for smearing the hit energy
std::normal_distribution<double> gaussian_noise{0.0, 0.0}; // Replace with mean and width from properties
// [[maybe_unused]] used to avoid downstream build failures due to unused variables
[[maybe_unused]] std::normal_distribution<double> gaussian_noise{
0.0, 0.0}; // Replace with mean and width from properties

// Loop over the input hits
for (const auto& hit : InputCaloSimHitCollection) {
auto digihit = CaloDigiHits.create();

double noise = gaussian_noise(random_engine);
[[maybe_unused]] double noise = gaussian_noise(random_engine);

digihit.setCellID(hit.getCellID());
// Use the EDM4hep yaml file to "guess" the names of the getter and setter functions
Expand Down
Loading