Definition at line 35 of file FluxGeoFilter_module.cc.
FluxGeoFilter::FluxGeoFilter |
( |
fhicl::ParameterSet const & |
p | ) |
|
|
explicit |
Definition at line 55 of file FluxGeoFilter_module.cc.
59 std::cout<<
"Configuring flux filter."<<std::endl;
60 std::vector<std::string> tmp=
p.get<std::vector<std::string> >(
"volumes");
61 fVolFlux.insert(tmp.begin(),tmp.end());
63 std::cout<<
"Filtering flux through volumes: "<<std::endl;
std::set< std::string > fVolFlux
then echo File list $list not found else cat $list while read file do echo $file sed s
BEGIN_PROLOG could also be cout
bool FluxGeoFilter::filter |
( |
art::Event & |
e | ) |
|
|
override |
Definition at line 67 of file FluxGeoFilter_module.cc.
81 art::Handle< std::vector<simb::MCTruth> > mctruthHandle;
82 e.getByLabel(
"flux",mctruthHandle);
83 std::vector<simb::MCTruth>
const& mclist = *mctruthHandle;
85 for(
unsigned int inu = 0; inu < mclist.size(); inu++){
86 simb::MCParticle
nu = mclist[inu].GetNeutrino().Nu();
87 rgeo->SetCurrentPoint(nu.Vx(),nu.Vy(),nu.Vz());
88 rgeo->SetCurrentDirection(nu.Px(),nu.Py(),nu.Pz());
89 TGeoNode* node=rgeo->FindNode();
91 std::string volname=node->GetVolume()->GetName();
92 rgeo->FindNextBoundary();
93 node=gGeoManager->Step();
TGeoManager * ROOTGeoManager() const
Access to the ROOT geometry description manager.
std::set< std::string > fVolFlux
Description of geometry of one entire detector.
std::set<std::string> FluxGeoFilter::fVolFlux |
|
private |
The documentation for this class was generated from the following file: