18 #include "cetlib_except/exception.h" 19 #include "canvas/Persistency/Common/FindOneP.h" 64 bool interactionDesired(
false);
70 std::vector<art::Ptr<simb::MCTruth> > mclist;
81 std::set<art::Ptr<simb::MCTruth> > mctSetGENIE;
82 for(
size_t i=0; i<mctruthListHandle->size(); ++i)
85 if( mctSetGENIE.find(mct_ptr) == mctSetGENIE.end() ) mctSetGENIE.insert(mct_ptr);
89 art::FindOneP<simb::MCTruth> assMCT(mcpHandle, evt,
"largeant");
122 for(
size_t i=0; i < mcpHandle->size() && !inTPC; ++i)
126 if( mctSetGENIE.find(mct) == mctSetGENIE.end() )
142 int n = part->NumberTrajectoryPoints();
143 for(
int j = 0; j < n && !inTPC; ++j)
147 TVector3
pos = part->Position(j).Vect();
148 if(pos.X() >= xmin &&
155 interactionDesired =
true;
157 std::cout <<
"FilterNoDirtNeutrinos: Genie daughter found in TPC. G4Particle " <<
std::endl ;
164 return interactionDesired;
geo::Length_t CryostatHalfHeight(geo::CryostatID const &cid) const
Returns the height of the cryostat (y direction)
geo::Length_t DetHalfWidth(geo::TPCID const &tpcid) const
Returns the half width of the active volume of the specified TPC.
std::string fLArG4ModuleLabel
art framework interface to geometry description
std::string fGenModuleLabel
bool fKeepCryostatNeutrinos
bool getByLabel(std::string const &label, std::string const &instance, Handle< PROD > &result) const
geo::Length_t DetHalfHeight(geo::TPCID const &tpcid) const
Returns the half height of the active volume of the specified TPC.
#define DEFINE_ART_MODULE(klass)
geo::Length_t DetLength(geo::TPCID const &tpcid) const
Returns the length of the active volume of the specified TPC.
FilterNoDirtNeutrinos(fhicl::ParameterSet const &pset)
geo::Length_t CryostatHalfWidth(geo::CryostatID const &cid) const
Returns the half width of the cryostat (x direction)
EDFilter(fhicl::ParameterSet const &pset)
bool filter(art::Event &) override
void fill_ptr_vector(std::vector< Ptr< T >> &ptrs, H const &h)
QTextStream & endl(QTextStream &s)