The Sparta Modeling Framework
Loading...
Searching...
No Matches
sparta::pevents::PeventCollectorController Class Reference

Simple class for recursively adding taps to pevents. There is probably a more efficient way than each collector having it's own tap... But I don't think there will be many taps at all, at max 10 for any run I imagine.. More...

#include <PeventController.hpp>

Public Member Functions

void cacheTap (const std::string &file, const std::string &type, const bool verbose, const std::string &node="ROOT")
 Add knowledge of a tap that will need to be created later, right now we are only parsing the command line likely.
 
void finalize (RootTreeNode *root)
 we are done parsing the command line, and simulation is setup, propagate the tap information throug the tree.
 
void printEventNames (std::ostream &o, TreeNode *root)
 Print out a nice listing of the pevents that we have in the model.
 

Detailed Description

Simple class for recursively adding taps to pevents. There is probably a more efficient way than each collector having it's own tap... But I don't think there will be many taps at all, at max 10 for any run I imagine..

This controller provides support for storing tap information during command line parsing that cannot be created until later when the sparta tree has been setup.

Definition at line 17 of file PeventController.hpp.

Member Function Documentation

◆ cacheTap()

void sparta::pevents::PeventCollectorController::cacheTap ( const std::string &  file,
const std::string &  type,
const bool  verbose,
const std::string &  node = "ROOT" 
)
inline

Add knowledge of a tap that will need to be created later, right now we are only parsing the command line likely.

Definition at line 46 of file PeventController.hpp.

◆ finalize()

void sparta::pevents::PeventCollectorController::finalize ( RootTreeNode root)
inline

we are done parsing the command line, and simulation is setup, propagate the tap information throug the tree.

Definition at line 56 of file PeventController.hpp.

Here is the call graph for this function:

◆ printEventNames()

void sparta::pevents::PeventCollectorController::printEventNames ( std::ostream &  o,
TreeNode root 
)
inline

Print out a nice listing of the pevents that we have in the model.

Definition at line 87 of file PeventController.hpp.


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