EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHG4InttDeadMapLoader Class Reference

PHG4InttDeadMapLoader loads dead map at inti run. More...

#include <fun4all_coresoftware/blob/master/simulation/g4simulation/g4intt/PHG4InttDeadMapLoader.h>

+ Inheritance diagram for PHG4InttDeadMapLoader:
+ Collaboration diagram for PHG4InttDeadMapLoader:

Public Member Functions

 PHG4InttDeadMapLoader (const std::string &detector="SILICON_TRACKER")
 
 ~PHG4InttDeadMapLoader () override
 
int InitRun (PHCompositeNode *topNode) override
 
void deadMapPath (unsigned int layer, const std::string &deadMapPath)
 
const std::string & detector () const
 
void detector (const std::string &detector)
 
- Public Member Functions inherited from SubsysReco
 ~SubsysReco () override
 
virtual int End (PHCompositeNode *)
 Called at the end of all processing.
 
virtual int EndRun (const int)
 Called at the end of each run.
 
virtual int Init (PHCompositeNode *)
 
virtual int process_event (PHCompositeNode *)
 
virtual int Reset (PHCompositeNode *)
 Reset.
 
virtual int ResetEvent (PHCompositeNode *)
 Clean up after each event.
 
void Print (const std::string &="ALL") const override
 
- Public Member Functions inherited from Fun4AllBase
virtual ~Fun4AllBase ()
 
virtual const std::string Name () const
 Returns the name of this module.
 
virtual void Name (const std::string &name)
 Sets the name of this module.
 
virtual void Verbosity (const int ival)
 Sets the verbosity of this module (0 by default=quiet).
 
virtual void Verbosity (enu_Verbosity ival)
 Sets the verbosity of this module (0 by default=quiet).
 
virtual int Verbosity () const
 Gets the verbosity of this module.
 

Private Attributes

std::map< unsigned int,
std::string > 
m_deadMapPathMap
 
std::string m_detector
 

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 SubsysReco
 SubsysReco (const std::string &name="NONAME")
 

Detailed Description

PHG4InttDeadMapLoader loads dead map at inti run.

Definition at line 24 of file PHG4InttDeadMapLoader.h.

View newest version in sPHENIX GitHub at line 24 of file PHG4InttDeadMapLoader.h

Constructor & Destructor Documentation

PHG4InttDeadMapLoader::PHG4InttDeadMapLoader ( const std::string &  detector = "SILICON_TRACKER")
explicit

Definition at line 52 of file PHG4InttDeadMapLoader.cc.

View newest version in sPHENIX GitHub at line 52 of file PHG4InttDeadMapLoader.cc

PHG4InttDeadMapLoader::~PHG4InttDeadMapLoader ( )
override

Definition at line 58 of file PHG4InttDeadMapLoader.cc.

View newest version in sPHENIX GitHub at line 58 of file PHG4InttDeadMapLoader.cc

Member Function Documentation

void PHG4InttDeadMapLoader::deadMapPath ( unsigned int  layer,
const std::string &  deadMapPath 
)
inline

Definition at line 33 of file PHG4InttDeadMapLoader.h.

View newest version in sPHENIX GitHub at line 33 of file PHG4InttDeadMapLoader.h

References G4TTL::layer, and m_deadMapPathMap.

Referenced by InitRun(), and Intt_Cells().

+ Here is the caller graph for this function:

const std::string& PHG4InttDeadMapLoader::detector ( ) const
inline

Definition at line 38 of file PHG4InttDeadMapLoader.h.

View newest version in sPHENIX GitHub at line 38 of file PHG4InttDeadMapLoader.h

References m_detector.

Referenced by detector().

+ Here is the caller graph for this function:

void PHG4InttDeadMapLoader::detector ( const std::string &  detector)
inline

Definition at line 43 of file PHG4InttDeadMapLoader.h.

View newest version in sPHENIX GitHub at line 43 of file PHG4InttDeadMapLoader.h

References detector(), and m_detector.

+ Here is the call graph for this function:

int PHG4InttDeadMapLoader::InitRun ( PHCompositeNode )
overridevirtual

Called for first event when run number is known. Typically this is where you may want to fetch data from database, because you know the run number.

Reimplemented from SubsysReco.

Definition at line 62 of file PHG4InttDeadMapLoader.cc.

View newest version in sPHENIX GitHub at line 62 of file PHG4InttDeadMapLoader.cc

References InttDeadMap::addDeadChannelIntt(), PHCompositeNode::addNode(), deadMapPath(), Fun4AllReturnCodes::EVENT_OK, PHNodeIterator::findFirst(), PHParameters::get_all_int_params(), InttDeadMap::identify(), m_deadMapPathMap, m_detector, Fun4AllBase::Name(), PHParameters::ReadFromFile(), InttDeadMap::size(), and Fun4AllBase::Verbosity().

+ Here is the call graph for this function:

Member Data Documentation

std::map<unsigned int, std::string> PHG4InttDeadMapLoader::m_deadMapPathMap
private

Definition at line 49 of file PHG4InttDeadMapLoader.h.

View newest version in sPHENIX GitHub at line 49 of file PHG4InttDeadMapLoader.h

Referenced by deadMapPath(), and InitRun().

std::string PHG4InttDeadMapLoader::m_detector
private

Definition at line 51 of file PHG4InttDeadMapLoader.h.

View newest version in sPHENIX GitHub at line 51 of file PHG4InttDeadMapLoader.h

Referenced by detector(), and InitRun().


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