EIC 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 162 of file PHTFileServer.cc.

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

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(), getqvec(), and pepsimainerhic().

+ 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.

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().

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

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().


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