Classes | Public Member Functions | Private Attributes | List of all members
art::DataFlow Class Reference

Classes

struct  Config
 

Public Member Functions

 DataFlow (fhicl::TableFragment< Config > const &cfg)
 
void preProcessEvent ()
 
void postProcessEvent ()
 
void processEventProvenance (art::Provenance const &prov)
 

Private Attributes

std::ofstream out_
 
int nEvents_
 
std::string colorscheme_
 
int debug_
 

Detailed Description

Definition at line 29 of file DataFlowDumper_module.cc.

Constructor & Destructor Documentation

art::DataFlow::DataFlow ( fhicl::TableFragment< Config > const &  cfg)
explicit

Definition at line 58 of file DataFlowDumper_module.cc.

59  : out_(cfg().dotfile())
60  , nEvents_(0)
61  , colorscheme_(cfg().colorscheme())
62  , debug_(cfg().debuglevel())
63 {
64  if (!out_) {
66  << "Failed to create output file: " << cfg().dotfile();
67  }
68 }
std::string colorscheme_
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
Definition: Exception.h:66

Member Function Documentation

void art::DataFlow::postProcessEvent ( )

Definition at line 77 of file DataFlowDumper_module.cc.

78 {
79  out_ << "}\n\n";
80  ++nEvents_;
81 }
void art::DataFlow::preProcessEvent ( )

Definition at line 71 of file DataFlowDumper_module.cc.

72 {
73  out_ << "digraph d" << nEvents_ << " {\n";
74 }
void art::DataFlow::processEventProvenance ( art::Provenance const &  prov)

Definition at line 188 of file DataFlowDumper_module.cc.

189 {
192  for (art::ProductID const parent : p.parents()) {
194  }
195 }
std::string colorscheme_
void write_product_node(art::Provenance const &p, std::ostream &os, int debug)
void write_creator_line(art::Provenance const &p, std::string const &colorscheme, std::ostream &os, int debug)
void write_parentage_line(art::Provenance const &p, art::ProductID const parent, std::ostream &os, int debug)
p
Definition: test.py:223
def parent(G, child, parent_type)
Definition: graph.py:67

Member Data Documentation

std::string art::DataFlow::colorscheme_
private

Definition at line 52 of file DataFlowDumper_module.cc.

int art::DataFlow::debug_
private

Definition at line 53 of file DataFlowDumper_module.cc.

int art::DataFlow::nEvents_
private

Definition at line 51 of file DataFlowDumper_module.cc.

std::ofstream art::DataFlow::out_
private

Definition at line 50 of file DataFlowDumper_module.cc.


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