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
5 changes: 1 addition & 4 deletions sbncode/SinglePhotonAnalysis/CCDeltaRadiative_module.cc
Original file line number Diff line number Diff line change
Expand Up @@ -180,10 +180,7 @@ bool CCDeltaRadiative::filter(art::Event & e) {
for(size_t const s : exiting_photon_parents) {
simb::MCParticle const & mcp = mct.GetParticle(s);
// Require parent vertex inside TPC.
if(std::abs(mcp.Vx()) > 210 || std::abs(mcp.Vy()) > 210 || mcp.Vz() > 510 || mcp.Vz() < -1) {
std::cout << "OUTSIDE TPC x y z =" << mcp.Vx() << " " << mcp.Vy() << " " << mcp.Vz() << std::endl;
return false;
}
if(std::abs(mcp.Vx()) > 210 || std::abs(mcp.Vy()) > 210 || mcp.Vz() > 510 || mcp.Vz() < -1) continue;
if(isDelta(mcp.PdgCode())) {
if(ftree) FillTree(e, i, s, true);
return true;
Expand Down
9 changes: 3 additions & 6 deletions sbncode/SinglePhotonAnalysis/NCDeltaRadiative_module.cc
Original file line number Diff line number Diff line change
Expand Up @@ -170,13 +170,10 @@ bool NCDeltaRadiative::filter(art::Event & e) {
std::vector<size_t> in_nucleus_photons;
for(size_t const s : exiting_photon_parents) {
simb::MCParticle const & mcp = mct.GetParticle(s);
//CHEKC hardcode, TPC filter:
if(abs(mcp.Vx())>210 || abs(mcp.Vy())>210||mcp.Vz()>510 || mcp.Vz()<-1){
std::cout<<"OUTSIDE TPC x y z ="<<mcp.Vx()<<" "<<mcp.Vy()<<" "<<mcp.Vz()<<std::endl;
return false;
}
// Require parent vertex inside TPC.
if(abs(mcp.Vx())>210 || abs(mcp.Vy())>210||mcp.Vz()>510 || mcp.Vz()<-1) continue;
if(abs(mcp.PdgCode()) == 2114 || abs(mcp.PdgCode()) == 2214) {
if(ftree) FillTree(e, i, mcp.PdgCode(), true);
if(ftree) FillTree(e, i, s, true);
return true;
}
else if(mcp.PdgCode() == 22) {
Expand Down