Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CCalSDList Class Reference

#include <CCalSDList.hh>

Public Member Functions

void addCalo (nameType name)
 
void addTracker (nameType name)
 
nameType getCaloSDName (int i)
 
nameType getTrackerSDName (int i)
 
int getNumberOfCaloSD ()
 
int getNumberOfTrackerSD ()
 

Static Public Member Functions

static CCalSDListgetInstance ()
 

Detailed Description

Definition at line 40 of file CCalSDList.hh.

Member Function Documentation

void CCalSDList::addCalo ( nameType  name)

Definition at line 44 of file CCalSDList.cc.

44  {
45 
46  theList->caloSD.push_back(name);
47 }

Here is the caller graph for this function:

void CCalSDList::addTracker ( nameType  name)

Definition at line 49 of file CCalSDList.cc.

49  {
50 
51  theList->trackerSD.push_back(name);
52 }
nameType CCalSDList::getCaloSDName ( int  i)

Definition at line 54 of file CCalSDList.cc.

54  {
55 
56  if (i>=theList->getNumberOfCaloSD() || i<0) {
57  G4cout << "CCalSDList invalid calo SD no: " << i << " max is "
58  << theList->getNumberOfCaloSD() << G4endl;
59  return " ";
60  } else
61  return theList->caloSD[i];
62 }
G4GLOB_DLL std::ostream G4cout
int getNumberOfCaloSD()
Definition: CCalSDList.cc:76
#define G4endl
Definition: G4ios.hh:61

Here is the call graph for this function:

CCalSDList * CCalSDList::getInstance ( )
static

Definition at line 37 of file CCalSDList.cc.

37  {
38 
39  if (theList == 0)
40  theList = new CCalSDList;
41  return theList;
42 }

Here is the caller graph for this function:

int CCalSDList::getNumberOfCaloSD ( )

Definition at line 76 of file CCalSDList.cc.

76  {
77 
78  return theList->caloSD.size();
79 }

Here is the caller graph for this function:

int CCalSDList::getNumberOfTrackerSD ( )

Definition at line 81 of file CCalSDList.cc.

81  {
82 
83  return theList->trackerSD.size();
84 }

Here is the caller graph for this function:

nameType CCalSDList::getTrackerSDName ( int  i)

Definition at line 64 of file CCalSDList.cc.

64  {
65 
66  if (i>=theList->getNumberOfTrackerSD() || i<0) {
67  G4cout << "CCalSDList invalid tracker SD no: " << i << " max is "
68  << theList->getNumberOfTrackerSD() << G4endl;
69  return " ";
70  }
71  else
72  return theList->trackerSD[i];
73 }
G4GLOB_DLL std::ostream G4cout
#define G4endl
Definition: G4ios.hh:61
int getNumberOfTrackerSD()
Definition: CCalSDList.cc:81

Here is the call graph for this function:


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