|
Class Reference for E1039 Core & Analysis Software
|
Fun4AllOutputManager to generate spill-level SRawEvent output files. More...
Inheritance diagram for Fun4AllSpillSRawEventOutputManager:
Collaboration diagram for Fun4AllSpillSRawEventOutputManager:Public Member Functions | |
| Fun4AllSpillSRawEventOutputManager (const std::string &dir_base, const std::string &myname="SPILLSRAWEVENTOUT") | |
| virtual | ~Fun4AllSpillSRawEventOutputManager () |
| void | SetTreeName (const std::string name) |
| void | SetBranchName (const std::string name) |
| void | EnableDB (const std::string name_schema="user_e1039_maindaq", const std::string name_table="sraw_file_status", const bool refresh_db=false) |
| void | EnableSQLiteDB (const bool use=true) |
| virtual int | Write (PHCompositeNode *startNode) |
| write starting from given node More... | |
Public Member Functions inherited from Fun4AllOutputManager | |
| virtual | ~Fun4AllOutputManager () |
| destructor More... | |
| virtual void | Print (const std::string &what="ALL") const |
| print method (dump event selector) More... | |
| virtual int | AddNode (const std::string &) |
| add a node in outputmanager More... | |
| virtual int | StripNode (const std::string &) |
| not write a node in outputmanager 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... | |
| virtual int | outfileopen (const std::string &) |
| opens output file More... | |
| virtual int | RemoveNode (const std::string &) |
| removes a node from outputmanager More... | |
| int | WriteGeneric (PHCompositeNode *startNode) |
| Common method, called before calling virtual Write. More... | |
| virtual int | WriteNode (PHCompositeNode *) |
| write specified node 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... | |
Protected Member Functions | |
| void | CloseFile () |
| void | OpenFile () |
| void | UpdateDBStatus (const int status) |
| Update the status stored in SQLite DB. Obsolete. More... | |
Protected Member Functions inherited from Fun4AllOutputManager | |
| Fun4AllOutputManager (const std::string &myname) | |
Protected Member Functions inherited from Fun4AllBase | |
| Fun4AllBase (const std::string &name="NONAME") | |
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 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... | |
Fun4AllOutputManager to generate spill-level SRawEvent output files.
Definition at line 16 of file Fun4AllSpillSRawEventOutputManager.h.
| Fun4AllSpillSRawEventOutputManager::Fun4AllSpillSRawEventOutputManager | ( | const std::string & | dir_base, |
| const std::string & | myname = "SPILLSRAWEVENTOUT" |
||
| ) |
Definition at line 23 of file Fun4AllSpillSRawEventOutputManager.cxx.
|
virtual |
Definition at line 46 of file Fun4AllSpillSRawEventOutputManager.cxx.
References CloseFile().
Here is the call graph for this function:
|
protected |
Definition at line 102 of file Fun4AllSpillSRawEventOutputManager.cxx.
References DbSvc::Con(), UpdateDBStatus(), and Fun4AllBase::Verbosity().
Referenced by Write(), and ~Fun4AllSpillSRawEventOutputManager().
Here is the call graph for this function:
Here is the caller graph for this function:| void Fun4AllSpillSRawEventOutputManager::EnableDB | ( | const std::string | name_schema = "user_e1039_maindaq", |
| const std::string | name_table = "sraw_file_status", |
||
| const bool | refresh_db = false |
||
| ) |
Definition at line 53 of file Fun4AllSpillSRawEventOutputManager.cxx.
References DbSvc::VarList::Add(), DbSvc::CreateTable(), DbSvc::DB1, DbSvc::DropTable(), DbSvc::HasTable(), and DbSvc::UseSchema().
Here is the call graph for this function:
|
inline |
Definition at line 51 of file Fun4AllSpillSRawEventOutputManager.h.
|
protected |
Definition at line 124 of file Fun4AllSpillSRawEventOutputManager.cxx.
References DbSvc::Con(), PHWHERE, UpdateDBStatus(), and Fun4AllBase::Verbosity().
Referenced by Write().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 49 of file Fun4AllSpillSRawEventOutputManager.h.
|
inline |
Definition at line 48 of file Fun4AllSpillSRawEventOutputManager.h.
|
protected |
Update the status stored in SQLite DB. Obsolete.
This function assumes the SQLite DB file exists with the proper table contents. We have to manually execute the following commands beforehand;
Definition at line 175 of file Fun4AllSpillSRawEventOutputManager.cxx.
References DbSvc::Con(), and DbSvc::LITE.
Referenced by CloseFile(), and OpenFile().
Here is the call graph for this function:
Here is the caller graph for this function:
|
virtual |
write starting from given node
Reimplemented from Fun4AllOutputManager.
Definition at line 73 of file Fun4AllSpillSRawEventOutputManager.cxx.
References CloseFile(), SQSpillMap::get(), SQEvent::get_run_id(), SQEvent::get_spill_id(), OpenFile(), PHWHERE, UtilSRawEvent::SetEvent(), UtilSRawEvent::SetHit(), UtilSRawEvent::SetSpill(), and UtilSRawEvent::SetTriggerHit().
Here is the call graph for this function: