ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
#include <coresoftware/blob/master/offline/framework/phool/PHNodeIOManager.h>
Public Member Functions | |
PHNodeIOManager () | |
PHNodeIOManager (const std::string &, const PHAccessType=PHReadOnly) | |
PHNodeIOManager (const std::string &, const std::string &, const PHAccessType=PHReadOnly) | |
PHNodeIOManager (const std::string &, const PHAccessType, const PHTreeType) | |
~PHNodeIOManager () override | |
void | closeFile () override |
bool | write (PHCompositeNode *) override |
void | print () const override |
bool | setFile (const std::string &, const std::string &, const PHAccessType=PHReadOnly) |
PHCompositeNode * | read (PHCompositeNode *=nullptr, size_t=0) |
bool | read (size_t requestedEvent) |
int | readSpecific (size_t requestedEvent, const std::string &objectName) |
void | selectObjectToRead (const std::string &objectName, bool readit) |
bool | isSelected (const std::string &objectName) |
int | isFunctional () const |
bool | SetCompressionLevel (const int level) |
double | GetBytesWritten () |
std::map< std::string, TBranch * > * | GetBranchMap () |
bool | write (TObject **, const std::string &, int buffersize, int splitlevel) |
bool | NodeExist (const std::string &nodename) |
Public Member Functions inherited from PHIOManager | |
virtual | ~PHIOManager () |
std::string | getFilename () const |
size_t | getEventNumber () const |
void | setEventNumber (const size_t evno) |
Private Member Functions | |
int | FillBranchMap () |
PHCompositeNode * | reconstructNodeTree (PHCompositeNode *) |
bool | readEventFromFile (size_t requestedEvent) |
std::string | getBranchClassName (TBranch *) |
Private Attributes | |
TFile * | file = nullptr |
TTree * | tree = nullptr |
std::string | TreeName = "T" |
int | accessMode = PHReadOnly |
int | CompressionLevel = 3 |
std::map< std::string, TBranch * > | fBranches |
std::map< std::string, bool > | objectToRead |
int | isFunctionalFlag = 0 |
Additional Inherited Members | |
Protected Member Functions inherited from PHIOManager | |
PHIOManager () | |
Protected Attributes inherited from PHIOManager | |
std::string | filename |
size_t | eventNumber = 0 |
Definition at line 22 of file PHNodeIOManager.h.
View newest version in sPHENIX GitHub at line 22 of file PHNodeIOManager.h
|
inline |
Definition at line 25 of file PHNodeIOManager.h.
View newest version in sPHENIX GitHub at line 25 of file PHNodeIOManager.h
PHNodeIOManager::PHNodeIOManager | ( | const std::string & | f, |
const PHAccessType | a = PHReadOnly |
||
) |
Definition at line 35 of file PHNodeIOManager.cc.
View newest version in sPHENIX GitHub at line 35 of file PHNodeIOManager.cc
PHNodeIOManager::PHNodeIOManager | ( | const std::string & | f, |
const std::string & | title, | ||
const PHAccessType | a = PHReadOnly |
||
) |
Definition at line 41 of file PHNodeIOManager.cc.
View newest version in sPHENIX GitHub at line 41 of file PHNodeIOManager.cc
PHNodeIOManager::PHNodeIOManager | ( | const std::string & | f, |
const PHAccessType | a, | ||
const PHTreeType | treeindex | ||
) |
Definition at line 47 of file PHNodeIOManager.cc.
View newest version in sPHENIX GitHub at line 47 of file PHNodeIOManager.cc
References PHEventTree.
|
override |
Definition at line 59 of file PHNodeIOManager.cc.
View newest version in sPHENIX GitHub at line 59 of file PHNodeIOManager.cc
References file.
|
overridevirtual |
Implements PHIOManager.
Definition at line 65 of file PHNodeIOManager.cc.
View newest version in sPHENIX GitHub at line 65 of file PHNodeIOManager.cc
|
private |
Definition at line 554 of file PHNodeIOManager.cc.
View newest version in sPHENIX GitHub at line 554 of file PHNodeIOManager.cc
References file, INPUTHEPMC::filename, and PHWHERE.
|
private |
Definition at line 237 of file PHNodeIOManager.cc.
View newest version in sPHENIX GitHub at line 237 of file PHNodeIOManager.cc
References g4zmq::exit(), and PHWHERE.
map< string, TBranch * > * PHNodeIOManager::GetBranchMap | ( | ) |
Definition at line 548 of file PHNodeIOManager.cc.
View newest version in sPHENIX GitHub at line 548 of file PHNodeIOManager.cc
Referenced by Fun4AllDstInputManager::ReadNextEventSyncObject().
double PHNodeIOManager::GetBytesWritten | ( | ) |
Definition at line 541 of file PHNodeIOManager.cc.
View newest version in sPHENIX GitHub at line 541 of file PHNodeIOManager.cc
References file.
|
inline |
Definition at line 41 of file PHNodeIOManager.h.
View newest version in sPHENIX GitHub at line 41 of file PHNodeIOManager.h
References isFunctionalFlag.
Referenced by Fun4AllDstInputManager::fileopen(), Fun4AllDstOutputManager::Fun4AllDstOutputManager(), and Fun4AllDstOutputManager::outfileopen().
bool PHNodeIOManager::isSelected | ( | const std::string & | objectName | ) |
Definition at line 513 of file PHNodeIOManager.cc.
View newest version in sPHENIX GitHub at line 513 of file PHNodeIOManager.cc
bool PHNodeIOManager::NodeExist | ( | const std::string & | nodename | ) |
Definition at line 579 of file PHNodeIOManager.cc.
View newest version in sPHENIX GitHub at line 579 of file PHNodeIOManager.cc
References phooldefs::branchpathdelim, phooldefs::legacypathdelims, and split().
Referenced by Fun4AllDstInputManager::fileopen().
|
overridevirtual |
Implements PHIOManager.
Definition at line 211 of file PHNodeIOManager.cc.
View newest version in sPHENIX GitHub at line 211 of file PHNodeIOManager.cc
References file, INPUTHEPMC::filename, PHReadOnly, and gammaraytel::tree.
Referenced by Fun4AllDstInputManager::fileopen(), and Fun4AllDstInputManager::Print().
PHCompositeNode * PHNodeIOManager::read | ( | PHCompositeNode * | topNode = nullptr , |
size_t | requestedEvent = 0 |
||
) |
Definition at line 191 of file PHNodeIOManager.cc.
View newest version in sPHENIX GitHub at line 191 of file PHNodeIOManager.cc
References gammaraytel::tree.
Referenced by Fun4AllDstInputManager::fileopen(), Fun4AllDstPileupInputManager::fileopen(), Fun4AllSingleDstPileupInputManager::fileopen(), Fun4AllDstInputManager::ReadNextEventSyncObject(), Fun4AllDstInputManager::run(), and Fun4AllDstInputManager::SyncIt().
bool PHNodeIOManager::read | ( | size_t | requestedEvent | ) |
Definition at line 178 of file PHNodeIOManager.cc.
View newest version in sPHENIX GitHub at line 178 of file PHNodeIOManager.cc
|
private |
Definition at line 272 of file PHNodeIOManager.cc.
View newest version in sPHENIX GitHub at line 272 of file PHNodeIOManager.cc
References g4zmq::exit(), file, PHError, PHMessage(), PHWHERE, and gammaraytel::tree.
int PHNodeIOManager::readSpecific | ( | size_t | requestedEvent, |
const std::string & | objectName | ||
) |
Definition at line 320 of file PHNodeIOManager.cc.
View newest version in sPHENIX GitHub at line 320 of file PHNodeIOManager.cc
References PHError, and PHMessage().
Referenced by Fun4AllDstInputManager::ReadNextEventSyncObject().
|
private |
Definition at line 344 of file PHNodeIOManager.cc.
View newest version in sPHENIX GitHub at line 344 of file PHNodeIOManager.cc
References PHNodeIterator::addNode(), phooldefs::branchpathdelim, PHNodeIterator::cd(), PHDataNode< T >::data, file, INPUTHEPMC::filename, PHNodeIterator::findFirst(), PHDataNode< T >::getData(), it, phooldefs::legacypathdelims, PHWHERE, PHNode::setObjectType(), split(), and gammaraytel::tree.
void PHNodeIOManager::selectObjectToRead | ( | const std::string & | objectName, |
bool | readit | ||
) |
Definition at line 495 of file PHNodeIOManager.cc.
View newest version in sPHENIX GitHub at line 495 of file PHNodeIOManager.cc
References it, and gammaraytel::tree.
Referenced by Fun4AllDstInputManager::setBranches(), and Fun4AllDstInputManager::setSyncBranches().
bool PHNodeIOManager::SetCompressionLevel | ( | const int | level | ) |
Definition at line 525 of file PHNodeIOManager.cc.
View newest version in sPHENIX GitHub at line 525 of file PHNodeIOManager.cc
References file.
Referenced by Fun4AllDstOutputManager::Fun4AllDstOutputManager(), and Fun4AllDstOutputManager::outfileopen().
bool PHNodeIOManager::setFile | ( | const std::string & | f, |
const std::string & | title, | ||
const PHAccessType | a = PHReadOnly |
||
) |
Definition at line 77 of file PHNodeIOManager.cc.
View newest version in sPHENIX GitHub at line 77 of file PHNodeIOManager.cc
References a, f, file, INPUTHEPMC::filename, LL, PHReadOnly, PHUpdate, PHWrite, and gammaraytel::tree.
|
overridevirtual |
Implements PHIOManager.
Definition at line 134 of file PHNodeIOManager.cc.
View newest version in sPHENIX GitHub at line 134 of file PHNodeIOManager.cc
References file, gammaraytel::tree, and PHCompositeNode::write().
Referenced by Fun4AllDstOutputManager::Write(), PHIODataNode< T >::write(), and Fun4AllDstOutputManager::WriteNode().
bool PHNodeIOManager::write | ( | TObject ** | data, |
const std::string & | path, | ||
int | buffersize, | ||
int | splitlevel | ||
) |
Definition at line 155 of file PHNodeIOManager.cc.
View newest version in sPHENIX GitHub at line 155 of file PHNodeIOManager.cc
References file, and gammaraytel::tree.
|
private |
Definition at line 58 of file PHNodeIOManager.h.
View newest version in sPHENIX GitHub at line 58 of file PHNodeIOManager.h
|
private |
Definition at line 59 of file PHNodeIOManager.h.
View newest version in sPHENIX GitHub at line 59 of file PHNodeIOManager.h
|
private |
Definition at line 60 of file PHNodeIOManager.h.
View newest version in sPHENIX GitHub at line 60 of file PHNodeIOManager.h
|
private |
Definition at line 55 of file PHNodeIOManager.h.
View newest version in sPHENIX GitHub at line 55 of file PHNodeIOManager.h
|
private |
Definition at line 63 of file PHNodeIOManager.h.
View newest version in sPHENIX GitHub at line 63 of file PHNodeIOManager.h
Referenced by isFunctional().
|
private |
Definition at line 61 of file PHNodeIOManager.h.
View newest version in sPHENIX GitHub at line 61 of file PHNodeIOManager.h
|
private |
Definition at line 56 of file PHNodeIOManager.h.
View newest version in sPHENIX GitHub at line 56 of file PHNodeIOManager.h
|
private |
Definition at line 57 of file PHNodeIOManager.h.
View newest version in sPHENIX GitHub at line 57 of file PHNodeIOManager.h