|
bool | filter (art::Event &) override |
|
Definition at line 26 of file FilterPrimaryPDG_module.cc.
simfilter::FilterPrimaryPDG::FilterPrimaryPDG |
( |
fhicl::ParameterSet const & |
pset | ) |
|
|
explicit |
bool simfilter::FilterPrimaryPDG::filter |
( |
art::Event & |
evt | ) |
|
|
overrideprivate |
Definition at line 50 of file FilterPrimaryPDG_module.cc.
54 art::ServiceHandle<cheat::ParticleInventoryService const> pi_serv;
55 art::ServiceHandle<geo::Geometry const> geom;
58 const sim::ParticleList& Particles = pi_serv->ParticleList();
59 std::vector<const simb::MCParticle*> pvec;
60 pvec.reserve(Particles.size());
61 for (
const auto& PartPair: Particles) {
62 pvec.push_back(PartPair.second);
66 bool pdgDesired(
false);
67 for(
unsigned int i = 0; i < pvec.size(); ++i)
71 const std::string sprim(
"primary");
72 if(pvec[i]->PdgCode() ==
pdg)
75 for(
unsigned int s = 0;
s < pvec[i]->Process().length(); ++
s)
76 *(tProcess+
s) = pvec[i]->Process()[
s];
77 std::string sProcess(tProcess);
78 if (!sProcess.compare(sprim))
80 mf::LogInfo(
"FilterPrimaryPDG") <<
" Found a primary " <<
pdg <<
" in event.";
std::vector< int > fPrimaryVec
then echo File list $list not found else cat $list while read file do echo $file sed s
std::string simfilter::FilterPrimaryPDG::fG4ModuleLabel |
|
private |
std::vector<int> simfilter::FilterPrimaryPDG::fPrimaryVec |
|
private |
The documentation for this class was generated from the following file: