All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
recob::DumpVertices Class Reference

Prints the content of all the vertices on screen. More...

Inheritance diagram for recob::DumpVertices:

Public Member Functions

 DumpVertices (fhicl::ParameterSet const &pset)
 Default constructor. More...
 
virtual void analyze (const art::Event &evt) override
 Does the printing. More...
 

Private Attributes

art::InputTag fInputTag
 input tag of the Vertex product More...
 
std::string fOutputCategory
 category for LogInfo output More...
 
bool fPrintHexFloats
 whether to print floats in base 16 More...
 

Detailed Description

Prints the content of all the vertices on screen.

This analyser prints the content of all the vertices into the LogInfo/LogVerbatim stream.

Configuration parameters

Definition at line 43 of file DumpVertices_module.cc.

Constructor & Destructor Documentation

recob::DumpVertices::DumpVertices ( fhicl::ParameterSet const &  pset)
explicit

Default constructor.

Definition at line 167 of file DumpVertices_module.cc.

168  : EDAnalyzer(pset)
169  , fInputTag (pset.get<art::InputTag>("VertexModuleLabel"))
170  , fOutputCategory(pset.get<std::string> ("OutputCategory", "DumpVertices"))
171  , fPrintHexFloats(pset.get<bool> ("PrintHexFloats", false))
172  {}
std::string fOutputCategory
category for LogInfo output
art::InputTag fInputTag
input tag of the Vertex product
bool fPrintHexFloats
whether to print floats in base 16

Member Function Documentation

void recob::DumpVertices::analyze ( const art::Event &  evt)
overridevirtual

Does the printing.

Definition at line 176 of file DumpVertices_module.cc.

176  {
177 
178  //
179  // collect all the available information
180  //
181  // fetch the data to be dumped on screen
182  auto Vertices = evt.getValidHandle<std::vector<recob::Vertex>>(fInputTag);
183 
184  size_t const nVertices = Vertices->size();
185  mf::LogVerbatim(fOutputCategory) << "Event " << evt.id()
186  << " contains " << nVertices << " vertices from '"
187  << fInputTag.encode() << "'";
188 
189  // prepare the dumper
190  VertexDumper::PrintOptions_t options;
191  options.hexFloats = fPrintHexFloats;
192  VertexDumper dumper(*Vertices, options);
193 
194  dumper.DumpAllVertices(mf::LogVerbatim(fOutputCategory), " ");
195 
196  mf::LogVerbatim(fOutputCategory) << "\n"; // two empty lines
197 
198  } // DumpVertices::analyze()
std::string fOutputCategory
category for LogInfo output
art::InputTag fInputTag
input tag of the Vertex product
bool fPrintHexFloats
whether to print floats in base 16
then echo echo For and will not be changed by echo further linking echo echo B echo The symbol is in the uninitialized data multiple common symbols may appear with the echo same name If the symbol is defined the common echo symbols are treated as undefined references For more echo details on common see the discussion of warn common echo in *Note Linker options
TCEvent evt
Definition: DataStructs.cxx:8

Member Data Documentation

art::InputTag recob::DumpVertices::fInputTag
private

input tag of the Vertex product

Definition at line 54 of file DumpVertices_module.cc.

std::string recob::DumpVertices::fOutputCategory
private

category for LogInfo output

Definition at line 55 of file DumpVertices_module.cc.

bool recob::DumpVertices::fPrintHexFloats
private

whether to print floats in base 16

Definition at line 56 of file DumpVertices_module.cc.


The documentation for this class was generated from the following file: