Skip to content

Commit

Permalink
Merge pull request #471 from SBNSoftware/fjnicolas-patch-2
Browse files Browse the repository at this point in the history
Solve compiling errors in SBNDPDSAnalyzer with c14
  • Loading branch information
bear-is-asleep authored May 28, 2024
2 parents fc6ccd2 + 1d8b903 commit 6affcbb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
3 changes: 0 additions & 3 deletions sbndcode/OpDetAnalyzer/PDSAnalyzer/SBNDPDSAnalyzer_module.cc
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,6 @@ void opdet::SBNDPDSAnalyzer::analyze(art::Event const& e)
art::ServiceHandle<cheat::ParticleInventoryService> pi_serv;
art::ServiceHandle<cheat::BackTrackerService> bt_serv;
art::ServiceHandle<detinfo::DetectorClocksService> timeservice;
auto const clockData(timeservice->DataFor(e));

// --- Saving MCTruths
if(fSaveMCTruth){
Expand Down Expand Up @@ -998,7 +997,6 @@ void opdet::SBNDPDSAnalyzer::FillAverageDepositedEnergyVariables(std::vector<std
}

if(ndeps_tpc0!=0){
dE_tpc0=dE_tpc0;
dEpromx_tpc0=dEpromx_tpc0/dE_tpc0;
dEpromy_tpc0=dEpromy_tpc0/dE_tpc0;
dEpromz_tpc0=dEpromz_tpc0/dE_tpc0;
Expand All @@ -1009,7 +1007,6 @@ void opdet::SBNDPDSAnalyzer::FillAverageDepositedEnergyVariables(std::vector<std
dEspreadx[0]=spreadx_tpc0;dEspready[0]=spready_tpc0;dEspreadz[0]=spreadz_tpc0;
}
if(ndeps_tpc1!=0){
dE_tpc1=dE_tpc1;
dEpromx_tpc1=dEpromx_tpc1/dE_tpc1;
dEpromy_tpc1=dEpromy_tpc1/dE_tpc1;
dEpromz_tpc1=dEpromz_tpc1/dE_tpc1;
Expand Down
5 changes: 2 additions & 3 deletions sbndcode/OpDetAnalyzer/PDSAnalyzer/SBNDPDSAnalyzer_module.hh
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,7 @@ private:
std::vector <double> _nuvZ;
std::vector <double> _nuvE;

// Saving MCParticles
int _nMCParticles;
// Saving MCParticles
std::vector < std::vector <double> > _mc_stepX;
std::vector < std::vector <double> > _mc_stepY;
std::vector < std::vector <double> > _mc_stepZ;
Expand Down Expand Up @@ -305,4 +304,4 @@ private:
};


DEFINE_ART_MODULE(opdet::SBNDPDSAnalyzer)
DEFINE_ART_MODULE(opdet::SBNDPDSAnalyzer)

0 comments on commit 6affcbb

Please sign in to comment.