Definition at line 15 of file GenNuFilter_module.cc.
filt::GenNuFilter::GenNuFilter |
( |
fhicl::ParameterSet const & |
pset | ) |
|
|
explicit |
void filt::GenNuFilter::beginJob |
( |
| ) |
|
|
overridevirtual |
bool filt::GenNuFilter::filter |
( |
art::Event & |
e | ) |
|
|
overridevirtual |
Definition at line 48 of file GenNuFilter_module.cc.
51 auto mclists =
e.getMany< std::vector<simb::MCTruth> >();
52 for (
unsigned int i = 0; i < mclists.size() ; i++){
53 for (
unsigned int j = 0; j < mclists[i]->size(); j++){
55 const art::Ptr<simb::MCTruth> mc_truth(mclists[i],j);
56 if(mc_truth->Origin() == simb::kBeamNeutrino){
57 simb::MCNeutrino
nu = mc_truth->GetNeutrino();
59 double vtxX = nu.Nu().Vx();
60 double vtxY = nu.Nu().Vy();
61 double vtxZ = nu.Nu().Vz();
62 TVector3 vtx(vtxX, vtxY, vtxZ);
70 int lepPdg = nu.Lepton().PdgCode();
std::vector< int > fLepPDGs
Charged-current interactions.
Neutral-current interactions.
bool IsInsideTPC(TVector3 position, double distance_buffer)
void filt::GenNuFilter::reconfigure |
( |
fhicl::ParameterSet const & |
pset | ) |
|
Definition at line 40 of file GenNuFilter_module.cc.
42 fLepPDGs = pset.get<std::vector<int>>(
"LepPDGs");
43 fCC = pset.get<
bool>(
"CC");
44 fNC = pset.get<
bool>(
"NC");
std::vector< int > fLepPDGs
bool filt::GenNuFilter::fCC |
|
private |
std::vector<int> filt::GenNuFilter::fLepPDGs |
|
private |
bool filt::GenNuFilter::fNC |
|
private |
bool filt::GenNuFilter::fVtxInTPC |
|
private |
The documentation for this class was generated from the following file: