Skip to content

Commit 48e0f47

Browse files
author
Jacob McLaughlin
committed
Adjusted to only include collection plane
1 parent 3ec91ec commit 48e0f47

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

sbndcode/BlipRecoSBND/Alg/BlipRecoAlg.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,9 @@ namespace blip {
374374
//Loop over channels to get full sedlist
375375
for(int chIndex=0; chIndex<int(simchanlist.size()); chIndex++)
376376
{
377+
std::vector<geo::WireID> wids = wireReadoutGeom->Get().ChannelToWire( (*(simchanlist[chIndex])).Channel() ); //Not sure why this is a vector, but it should have len 1
378+
const geo::PlaneID& planeID = wids[0].planeID();
379+
if(int(planeID.Plane) != fCaloPlane) continue; //only take calorimetry plane IDE values
377380
std::vector< sim::IDE > TempChIDE = (*simchanlist[chIndex]).TrackIDsAndEnergies(0, 999999999);
378381
for(int ideIndex=0; ideIndex<int(TempChIDE.size()); ideIndex++)
379382
{

sbndcode/BlipRecoSBND/Alg/BlipRecoAlg.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
#include "lardataobj/AnalysisBase/BackTrackerMatchingData.h"
3737
#include "larsim/MCCheater/ParticleInventoryService.h"
3838
#include "larcore/Geometry/Geometry.h"
39+
#include "larcorealg/Geometry/WireReadoutGeom.h"
3940
#include "larcorealg/Geometry/GeometryCore.h"
4041
#include "larreco/Calorimetry/CalorimetryAlg.h"
4142
#include "art/Framework/Principal/Event.h"

0 commit comments

Comments
 (0)