Electron neutrino event selection.
More...
Electron neutrino event selection.
Definition at line 35 of file PandoraIDPrinter.cc.
ana::SBNOsc::PandoraIDPrinter::PandoraIDPrinter |
( |
| ) |
|
|
inline |
void ana::SBNOsc::PandoraIDPrinter::Finalize |
( |
| ) |
|
|
inlinevirtual |
void ana::SBNOsc::PandoraIDPrinter::Initialize |
( |
fhicl::ParameterSet * |
config = NULL | ) |
|
|
inlinevirtual |
Initialization.
- Parameters
-
config | A configuration, as a FHiCL ParameterSet object |
Implements core::ProcessorBase.
Definition at line 45 of file PandoraIDPrinter.cc.
46 fPandoraTags = config ? config->get<std::vector<std::string>>(
"PandoraTags", {
"pandora"}) : std::vector<std::string>(1,
"pandora");
47 fPandoraTrackTags = config ? config->get<std::vector<std::string>>(
"PandoraTags", {
"pandoraTrack"}) : std::vector<std::string>(1,
"pandoraTrack");
std::vector< std::string > fPandoraTags
std::vector< std::string > fPandoraTrackTags
Process one event.
- Parameters
-
ev | A single event, as a gallery::Event |
Reconstructed | interactions |
- Returns
- True to keep event
Implements core::ProcessorBase.
Definition at line 62 of file PandoraIDPrinter.cc.
64 auto const &tracks_handle = ev.getValidHandle<std::vector<recob::Track>>(
fPandoraTrackTags[j]);;
65 art::FindManyP<recob::PFParticle, void> tracks_to_particles(tracks_handle, ev,
fPandoraTrackTags[j]);
66 const std::vector<recob::Track> &
tracks = *tracks_handle;
68 for (
unsigned i = 0; i < tracks.size(); i++) {
69 unsigned pfp_id = tracks_to_particles.at(i).at(0)->Self();
70 std::cout <<
"Index: " << i <<
" track ID: " << tracks[i].ID() <<
" pfp id: " << pfp_id <<std::endl;
std::vector< std::string > fPandoraTags
ClusterModuleLabel join with tracks
std::vector< std::string > fPandoraTrackTags
BEGIN_PROLOG could also be cout
unsigned ana::SBNOsc::PandoraIDPrinter::event_ind |
|
protected |
std::vector<std::string> ana::SBNOsc::PandoraIDPrinter::fPandoraTags |
|
protected |
std::vector<std::string> ana::SBNOsc::PandoraIDPrinter::fPandoraTrackTags |
|
protected |
The documentation for this class was generated from the following file: