Class Reference for E1039 Core & Analysis Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Fun4AllTriggerDstOutputManager Class Reference

A Fun4All output manger that creates one DST file per run containing events selected with trigger. More...

#include </dev/shm/kenichi/update-github-e1039-doc/e1039-core/online/decoder_maindaq/Fun4AllTriggerDstOutputManager.h>

+ Inheritance diagram for Fun4AllTriggerDstOutputManager:
+ Collaboration diagram for Fun4AllTriggerDstOutputManager:

Public Member Functions

 Fun4AllTriggerDstOutputManager (const std::string &myname, const std::string &filename)
 
virtual ~Fun4AllTriggerDstOutputManager ()
 
void SetTriggerMask (const int fpga_mask, const int nim_mask)
 
void SetTriggerMask (const bool fpga1, const bool fpga2, const bool fpga3, const bool fpga4, const bool fpga5, const bool nim1, const bool nim2, const bool nim3, const bool nim4, const bool nim5)
 
virtual int Write (PHCompositeNode *startNode)
 write starting from given node More...
 
- Public Member Functions inherited from Fun4AllDstOutputManager
 Fun4AllDstOutputManager (const std::string &myname="DSTOUT", const std::string &filename="dstout.root")
 
virtual ~Fun4AllDstOutputManager ()
 
int AddNode (const std::string &nodename)
 add a node in outputmanager More...
 
int StripNode (const std::string &nodename)
 not write a node in outputmanager More...
 
int outfileopen (const std::string &fname)
 opens output file More...
 
int RemoveNode (const std::string &nodename)
 removes a node from outputmanager More...
 
void Print (const std::string &what="ALL") const
 print method (dump event selector) More...
 
virtual int WriteNode (PHCompositeNode *thisNode)
 write specified node More...
 
void EnableRealTimeSave ()
 
- Public Member Functions inherited from Fun4AllOutputManager
virtual ~Fun4AllOutputManager ()
 destructor More...
 
virtual int AddEventSelector (const std::string &recomodule)
 add an event selector to the outputmanager. event will get written only if all event selectors process_event method return EVENT_OK More...
 
int WriteGeneric (PHCompositeNode *startNode)
 Common method, called before calling virtual Write. More...
 
virtual std::vector< std::string > * EventSelector ()
 retrieves pointer to vector of event selector module names More...
 
virtual std::vector< unsigned > * RecoModuleIndex ()
 retrieves pointer to vector of event selector module ids More...
 
virtual int DoNotWriteEvent (std::vector< int > *retcodes) const
 decides if event is to be written or not More...
 
virtual size_t EventsWritten () const
 get number of Events More...
 
virtual std::string OutFileName () const
 get output file name More...
 
- Public Member Functions inherited from Fun4AllBase
virtual ~Fun4AllBase ()
 
virtual const std::string Name () const
 Returns the name of this module. More...
 
virtual void Name (const std::string &name)
 Sets the name of this module. More...
 
virtual void Verbosity (const int ival)
 Sets the verbosity of this module (0 by default=quiet). More...
 
virtual void Verbosity (enu_Verbosity ival)
 Sets the verbosity of this module (0 by default=quiet). More...
 
virtual int Verbosity () const
 Gets the verbosity of this module. More...
 

Additional Inherited Members

- Public Types inherited from Fun4AllBase
enum  enu_Verbosity {
  VERBOSITY_QUIET = 0 , VERBOSITY_SOME = 1 , VERBOSITY_MORE = 2 , VERBOSITY_EVEN_MORE = 3 ,
  VERBOSITY_A_LOT = 4 , VERBOSITY_MAX = INT_MAX - 10
}
 
- Protected Member Functions inherited from Fun4AllOutputManager
 Fun4AllOutputManager (const std::string &myname)
 
- Protected Member Functions inherited from Fun4AllBase
 Fun4AllBase (const std::string &name="NONAME")
 
- Protected Attributes inherited from Fun4AllDstOutputManager
std::vector< std::string > savenodes
 
std::vector< std::string > stripnodes
 
PHNodeIOManagerdstOut
 
- Protected Attributes inherited from Fun4AllOutputManager
size_t nEvents
 Number of Events. More...
 
std::vector< std::string > EventSelectors
 vector of event selectors modules More...
 
std::vector< unsigned > recomoduleindex
 vector of associated module indexes More...
 
std::string outfilename
 output file name More...
 
- Protected Attributes inherited from Fun4AllBase
std::string ThisName
 
int verbosity
 The verbosity level. 0 means not verbose at all. More...
 

Detailed Description

A Fun4All output manger that creates one DST file per run containing events selected with trigger.

Definition at line 6 of file Fun4AllTriggerDstOutputManager.h.

Constructor & Destructor Documentation

◆ Fun4AllTriggerDstOutputManager()

Fun4AllTriggerDstOutputManager::Fun4AllTriggerDstOutputManager ( const std::string &  myname,
const std::string &  filename 
)

Definition at line 12 of file Fun4AllTriggerDstOutputManager.cc.

◆ ~Fun4AllTriggerDstOutputManager()

Fun4AllTriggerDstOutputManager::~Fun4AllTriggerDstOutputManager ( )
virtual

Definition at line 19 of file Fun4AllTriggerDstOutputManager.cc.

Member Function Documentation

◆ SetTriggerMask() [1/2]

void Fun4AllTriggerDstOutputManager::SetTriggerMask ( const bool  fpga1,
const bool  fpga2,
const bool  fpga3,
const bool  fpga4,
const bool  fpga5,
const bool  nim1,
const bool  nim2,
const bool  nim3,
const bool  nim4,
const bool  nim5 
)

◆ SetTriggerMask() [2/2]

void Fun4AllTriggerDstOutputManager::SetTriggerMask ( const int  fpga_mask,
const int  nim_mask 
)

Definition at line 24 of file Fun4AllTriggerDstOutputManager.cc.

References SQEvent::MATRIX1, and SQEvent::NIM1.

◆ Write()

int Fun4AllTriggerDstOutputManager::Write ( PHCompositeNode )
virtual

write starting from given node

Reimplemented from Fun4AllDstOutputManager.

Definition at line 44 of file Fun4AllTriggerDstOutputManager.cc.

References SQEvent::get_trigger(), PHWHERE, and Fun4AllDstOutputManager::Write().

+ Here is the call graph for this function:

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