12 #include "fhiclcpp/types/Atom.h"
13 #include "fhiclcpp/types/Name.h"
14 #include "fhiclcpp/types/Comment.h"
17 #include "art/Framework/Core/EDAnalyzer.h"
18 #include "art/Framework/Core/ModuleMacros.h"
19 #include "art/Framework/Principal/Event.h"
20 #include "canvas/Utilities/InputTag.h"
49 Name(
"ParticleIDModuleLabel"),
50 Comment(
"tag of the producer used to create the anab::ParticleID collection")
54 Name(
"OutputCategory"),
55 Comment(
"the messagefacility category used for the output"),
87 #include "messagefacility/MessageLogger/MessageLogger.h"
90 #include "art/Framework/Principal/Handle.h"
100 : EDAnalyzer (config)
102 , fOutputCategory (config().OutputCategory())
113 <<
"The event contains " << ParticleIDs.size() <<
" '"
116 unsigned int ipid = 0;
121 log <<
"ParticleID #" << ipid <<
'\n';
122 log <<
"Plane ID = " << pid.PlaneID() <<
'\n';
123 auto scores = pid.ParticleIDAlgScores();
124 log <<
"Number of algorithms = " << scores.size() <<
'\n';
127 log <<
" ParticleID #" << ipid <<
", Algorithm " << ialg <<
'\n'
128 <<
" Algorithm name = " <<
score.fAlgName <<
'\n'
129 <<
" Variable type = " <<
score.fVariableType <<
'\n'
130 <<
" TrackDirection = " <<
score.fTrackDir <<
'\n'
131 <<
" NDF = " <<
score.fNdf <<
'\n'
132 <<
" Assumed PDG = " <<
score.fAssumedPdg <<
'\n'
133 <<
" Value = " <<
score.fValue <<
'\n'
134 <<
" Plane Mask = " <<
score.fPlaneMask <<
'\n';
fhicl::Atom< art::InputTag > ParticleIDModuleLabel
void analyze(const art::Event &evt) override
Does the printing.
BEGIN_PROLOG or score(default)}sbnd_crttrackmatchingalg_crID
Prints the content of all the partidle IDs on screen.
std::string const fOutputCategory
category for LogInfo output
BEGIN_PROLOG vertical distance to the surface Name
art::EDAnalyzer::Table< Config > Parameters
art::InputTag const fParticleIDsModuleLabel
name of module that produced the pids
physics analyzers analysistree true physics analyzers analysistree pandora physics analyzers analysistree pandoraTrack physics analyzers analysistree pandoraCalo physics analyzers analysistree ParticleIDModuleLabel
fhicl::Atom< std::string > OutputCategory
DumpParticleIDs(Parameters const &config)
Default constructor.