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

Prints the content of all the PCA axis object on screen. More...

Inheritance diagram for recob::DumpPCAxes:

Classes

struct  Config
 Configuration parameters. More...
 

Public Types

using Parameters = art::EDAnalyzer::Table< Config >
 

Public Member Functions

 DumpPCAxes (Parameters const &config)
 Default constructor. More...
 
virtual void analyze (const art::Event &evt) override
 Does the printing. More...
 

Private Attributes

art::InputTag fInputTag
 input tag of the PCAxis 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 PCA axis object on screen.

This analyser prints the content of all the principal component axis object into the LogInfo/LogVerbatim stream.

Configuration parameters

Definition at line 45 of file DumpPCAxes_module.cc.

Member Typedef Documentation

using recob::DumpPCAxes::Parameters = art::EDAnalyzer::Table<Config>

Definition at line 70 of file DumpPCAxes_module.cc.

Constructor & Destructor Documentation

recob::DumpPCAxes::DumpPCAxes ( Parameters const &  config)
explicit

Default constructor.

Definition at line 188 of file DumpPCAxes_module.cc.

189  : EDAnalyzer(config)
190  , fInputTag(config().PCAxisModuleLabel())
191  , fOutputCategory(config().OutputCategory())
192  , fPrintHexFloats(config().PrintHexFloats())
193  {}
bool fPrintHexFloats
whether to print floats in base 16
art::InputTag fInputTag
input tag of the PCAxis product
std::string fOutputCategory
category for LogInfo output

Member Function Documentation

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

Does the printing.

Definition at line 197 of file DumpPCAxes_module.cc.

197  {
198 
199  //
200  // collect all the available information
201  //
202  // fetch the data to be dumped on screen
203  auto PCAxes = evt.getValidHandle<std::vector<recob::PCAxis>>(fInputTag);
204 
205  size_t const nPCAs = PCAxes->size();
206  mf::LogInfo(fOutputCategory)
207  << "The event contains " << nPCAs << " PC axes from '"
208  << fInputTag.encode() << "'";
209 
210  // prepare the dumper
211  PCAxisDumper::PrintOptions_t options;
212  options.hexFloats = fPrintHexFloats;
213  PCAxisDumper dumper(*PCAxes, options);
214 
215  dumper.DumpAllPCAxes(mf::LogVerbatim(fOutputCategory), " ");
216 
217  mf::LogVerbatim(fOutputCategory) << "\n"; // two empty lines
218 
219  } // DumpPCAxes::analyze()
bool fPrintHexFloats
whether to print floats in base 16
art::InputTag fInputTag
input tag of the PCAxis product
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
std::string fOutputCategory
category for LogInfo output

Member Data Documentation

art::InputTag recob::DumpPCAxes::fInputTag
private

input tag of the PCAxis product

Definition at line 80 of file DumpPCAxes_module.cc.

std::string recob::DumpPCAxes::fOutputCategory
private

category for LogInfo output

Definition at line 81 of file DumpPCAxes_module.cc.

bool recob::DumpPCAxes::fPrintHexFloats
private

whether to print floats in base 16

Definition at line 82 of file DumpPCAxes_module.cc.


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