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 31 of file DataFlowDumper_module.cc.

Constructor & Destructor Documentation

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

Definition at line 60 of file DataFlowDumper_module.cc.

References plotROC::cfg, art::errors::FileOpenError, and out_.

61  : out_(cfg().dotfile())
62  , nEvents_(0)
63  , colorscheme_(cfg().colorscheme())
64  , debug_(cfg().debuglevel())
65 {
66  if (!out_) {
68  << "Failed to create output file: " << cfg().dotfile();
69  }
70 }
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 79 of file DataFlowDumper_module.cc.

References nEvents_, and out_.

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

Definition at line 73 of file DataFlowDumper_module.cc.

References nEvents_, and out_.

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

Definition at line 214 of file DataFlowDumper_module.cc.

References colorscheme_, debug_, DEFINE_ART_MODULE(), out_, file_size_ana::parent, art::Provenance::parents(), write_creator_line(), write_parentage_line(), and write_product_node().

215 {
218  for (art::ProductID const parent : p.parents()) {
220  }
221 }
const char * p
Definition: xmltok.h:285
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)

Member Data Documentation

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

Definition at line 54 of file DataFlowDumper_module.cc.

Referenced by processEventProvenance().

int art::DataFlow::debug_
private

Definition at line 55 of file DataFlowDumper_module.cc.

Referenced by processEventProvenance().

int art::DataFlow::nEvents_
private

Definition at line 53 of file DataFlowDumper_module.cc.

Referenced by postProcessEvent(), and preProcessEvent().

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

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