|  | 
| bool | filter (art::Event &) override | 
|  | 
Definition at line 30 of file FilterCryostatNus_module.cc.
 
  
  | 
        
          | simfilter::FilterCryostatNus::FilterCryostatNus | ( | fhicl::ParameterSet const & | pset | ) |  |  | explicit | 
 
 
  
  | 
        
          | bool simfilter::FilterCryostatNus::filter | ( | art::Event & | evt | ) |  |  | overrideprivate | 
 
Definition at line 49 of file FilterCryostatNus_module.cc.
   52     auto const& geom = *(lar::providerFrom<geo::Geometry>());
 
   56     auto allmclists = 
evt.getMany<std::vector<simb::MCTruth>>();
 
   58     bool inCryostatNu = 
false;
 
   59     for (
auto const& mclistHandle : allmclists) {
 
   60       for (simb::MCTruth 
const& mct : *mclistHandle) {
 
   63         for (
int ipart = 0; ipart < mct.NParticles(); ipart++) {
 
   64           auto const& part = mct.GetParticle(ipart);
 
   65           auto const absPDGID = 
std::abs(part.PdgCode());
 
   66           if (absPDGID == 12 || absPDGID == 14 || absPDGID == 16) {
 
   67             const TLorentzVector& end4 = part.EndPosition();
 
   68             if (geom.PositionToCryostatPtr({end4.X(), end4.Y(), end4.Z()}) !=
 
 
 
 
  
  | 
        
          | bool simfilter::FilterCryostatNus::fKeepNusInCryostat |  | private | 
 
 
The documentation for this class was generated from the following file: