Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHTFileServer::SafeTFile Class Reference

local class to store TFile and counter More...

+ Inheritance diagram for PHTFileServer::SafeTFile:
+ Collaboration diagram for PHTFileServer::SafeTFile:

Public Types

typedef std::map< std::string,
SafeTFile * > 
TFileMap
 shortcut for SafeTFile map
 

Public Member Functions

 SafeTFile (const std::string &filename, const std::string &type="RECREATE")
 constructor
 
 ~SafeTFile (void) override
 destructor
 
int & counter ()
 get reference to counter
 
const int & counter () const
 get const reference to counter
 

Static Public Member Functions

static TFileMapfile_map (void)
 

Private Attributes

std::string _filename
 filename (for debugging)
 
int _counter
 call counter
 

Static Private Attributes

static TFileMap _map
 filename/SafeTFile map
 

Detailed Description

local class to store TFile and counter

Definition at line 69 of file PHTFileServer.h.

View newest version in sPHENIX GitHub at line 69 of file PHTFileServer.h

Member Typedef Documentation

typedef std::map<std::string, SafeTFile*> PHTFileServer::SafeTFile::TFileMap

shortcut for SafeTFile map

Definition at line 96 of file PHTFileServer.h.

View newest version in sPHENIX GitHub at line 96 of file PHTFileServer.h

Constructor & Destructor Documentation

PHTFileServer::SafeTFile::SafeTFile ( const std::string &  filename,
const std::string &  type = "RECREATE" 
)
inline

constructor

Definition at line 73 of file PHTFileServer.h.

View newest version in sPHENIX GitHub at line 73 of file PHTFileServer.h

PHTFileServer::SafeTFile::~SafeTFile ( void  )
override

destructor

Definition at line 170 of file PHTFileServer.cc.

View newest version in sPHENIX GitHub at line 170 of file PHTFileServer.cc

References _counter, _filename, _map, Close(), and Write().

+ Here is the call graph for this function:

Member Function Documentation

int& PHTFileServer::SafeTFile::counter ( )
inline

get reference to counter

Definition at line 84 of file PHTFileServer.h.

View newest version in sPHENIX GitHub at line 84 of file PHTFileServer.h

References _counter.

Referenced by doinstatescat(), and getqvec().

+ Here is the caller graph for this function:

const int& PHTFileServer::SafeTFile::counter ( ) const
inline

get const reference to counter

Definition at line 90 of file PHTFileServer.h.

View newest version in sPHENIX GitHub at line 90 of file PHTFileServer.h

References _counter.

static TFileMap& PHTFileServer::SafeTFile::file_map ( void  )
inlinestatic

Definition at line 98 of file PHTFileServer.h.

View newest version in sPHENIX GitHub at line 98 of file PHTFileServer.h

References _map.

Referenced by PHTFileServer::cd(), PHTFileServer::close(), PHTFileServer::flush(), PHTFileServer::open(), PHTFileServer::write(), and PHTFileServer::~PHTFileServer().

+ Here is the caller graph for this function:

Member Data Documentation

int PHTFileServer::SafeTFile::_counter
private

call counter

Definition at line 108 of file PHTFileServer.h.

View newest version in sPHENIX GitHub at line 108 of file PHTFileServer.h

Referenced by counter(), and ~SafeTFile().

std::string PHTFileServer::SafeTFile::_filename
private

filename (for debugging)

Definition at line 105 of file PHTFileServer.h.

View newest version in sPHENIX GitHub at line 105 of file PHTFileServer.h

Referenced by ~SafeTFile().

PHTFileServer::SafeTFile::TFileMap PHTFileServer::SafeTFile::_map
staticprivate

filename/SafeTFile map

Definition at line 111 of file PHTFileServer.h.

View newest version in sPHENIX GitHub at line 111 of file PHTFileServer.h

Referenced by file_map(), and ~SafeTFile().


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