Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Member Functions
CCalG4Hall Class Reference

#include <CCalG4Hall.hh>

Inheritance diagram for CCalG4Hall:
CCalHall CCalG4Able CCalDetector

Public Member Functions

 CCalG4Hall (const G4String &name)
 
virtual ~CCalG4Hall ()
 
- Public Member Functions inherited from CCalHall
 CCalHall (const G4String &name)
 
virtual ~CCalHall ()
 
G4String getMaterial () const
 
double getDy_2Hall () const
 
double getDx_2Hall () const
 
- Public Member Functions inherited from CCalDetector
 CCalDetector (const G4String &name)
 
virtual ~CCalDetector ()
 
void constructHierarchy ()
 
void construct ()
 
void addDetector (CCalDetector *)
 
G4String Name () const
 
G4String baseFileName () const
 
G4String File () const
 
CCalDetectorgetDaughter (int i) const
 
int getNDaughters () const
 
G4bool operator== (const CCalDetector &left) const
 
G4bool operator!= (const CCalDetector &left) const
 
- Public Member Functions inherited from CCalG4Able
 CCalG4Able (G4String name)
 
virtual ~CCalG4Able ()
 
G4VPhysicalVolumePhysicalVolume (G4VPhysicalVolume *)
 
void setVisType (CCalVisualisable::visType, G4LogicalVolume *)
 
void setSensitivity (G4bool sens=true)
 
G4bool isSensitive () const
 
G4String G4Name () const
 
void setName (const G4String &name)
 
G4bool operator== (const CCalG4Able &right) const
 

Protected Member Functions

virtual G4VPhysicalVolumeconstructIn (G4VPhysicalVolume *)
 
virtual void constructDaughters ()
 
- Protected Member Functions inherited from CCalHall
virtual int readFile ()
 
- Protected Member Functions inherited from CCalDetector
int buildFromFile ()
 
- Protected Member Functions inherited from CCalG4Able
void AddCCalG4Able (CCalG4Able *)
 
virtual void constructSensitive ()
 

Additional Inherited Members

- Protected Attributes inherited from CCalDetector
G4String detectorName
 
G4String fileName
 
CCalDetectorTable theDetectorsInside
 
int constructFlag
 
- Protected Attributes inherited from CCalG4Able
G4VPhysicalVolumedetPhysicalVolume
 
CCalG4AbleTable theG4DetectorsInside
 
G4String g4ableName
 
G4bool sensitivity
 
CCalVisualisable visProperties
 
G4VisAttributesg4VisAtt [CCalVisualisable::TotalVisTypes]
 
- Static Protected Attributes inherited from CCalDetector
static G4String pathName = getenv("CCAL_GEOMPATH")
 

Detailed Description

Definition at line 36 of file CCalG4Hall.hh.

Constructor & Destructor Documentation

CCalG4Hall::CCalG4Hall ( const G4String name)

Definition at line 53 of file CCalG4Hall.cc.

53  :
54  CCalHall(name),CCalG4Able(name) {}
CCalG4Able(G4String name)
Definition: CCalG4Able.cc:49
CCalHall(const G4String &name)
Definition: CCalHall.cc:40
CCalG4Hall::~CCalG4Hall ( )
virtual

Definition at line 56 of file CCalG4Hall.cc.

56 {}

Member Function Documentation

void CCalG4Hall::constructDaughters ( )
protectedvirtual

Reimplemented from CCalHall.

Definition at line 101 of file CCalG4Hall.cc.

References CCalG4Able::AddCCalG4Able(), CCalDetector::addDetector(), CCalG4Ecal::module1, and CCalG4Ecal::setType().

101  {
102  //Hadron Calorimeter
103  CCalG4Hcal* hcal = new CCalG4Hcal("HadronCalorimeter");
104  addDetector(hcal);
105  AddCCalG4Able(hcal);
106 
107  //Crystal matrix
108  CCalG4Ecal* ecal = new CCalG4Ecal("CrystalMatrixModule");
110  addDetector(ecal);
111  AddCCalG4Able(ecal);
112 }
void addDetector(CCalDetector *)
Definition: CCalDetector.cc:87
void setType(CMType ty)
Definition: CCalG4Ecal.hh:48
void AddCCalG4Able(CCalG4Able *)
Definition: CCalG4Able.cc:100
G4VPhysicalVolume * CCalG4Hall::constructIn ( G4VPhysicalVolume mother)
protectedvirtual

Implements CCalG4Able.

Definition at line 62 of file CCalG4Hall.cc.

References CCalMaterialFactory::findMaterial(), G4cout, G4endl, CCalHall::getDx_2Hall(), CCalHall::getDy_2Hall(), CCalMaterialFactory::getInstance(), CCalHall::getMaterial(), G4VSolid::GetName(), G4VPhysicalVolume::GetName(), G4LogicalVolume::GetName(), python.hepunit::mm, CCalDetector::Name(), CCalVisualisable::PseudoVolumes, CCalG4Able::setVisType(), and tab().

62  {
63 
64  G4cout << "==>> Constructing CCalG4Hall..." << G4endl;
65 
66  ///////////////////////////////////////////////////////////////
67  //Pointers to the Rotation Matrices and to the Materials
69 
70  //Experimental Hall. The mother volume....
71 #ifdef debug
72  G4cout << tab << "Building experimental Hall geometry...." << G4endl;
73 #endif
74 
75  G4Box* solid = new G4Box(Name(), getDx_2Hall()*mm, getDy_2Hall()*mm,
76  getDy_2Hall()*mm);
77 #ifdef debug
78  G4cout << solid->GetName() << " made of " << getMaterial() << " of dimension "
79  << getDx_2Hall()*mm << " " << getDy_2Hall()*mm << " "
80  << getDy_2Hall()*mm << " (all in mm)" << G4endl;
81 #endif
82 
83  G4Material* matter = matfact->findMaterial(getMaterial());
84  G4LogicalVolume* glog = new G4LogicalVolume (solid, matter, Name(), 0, 0, 0);
86 
88  glog,mother,false,0);
89 #ifdef pdebug
90  G4String name("Null");
91  if (mother != 0) name = mother->GetName();
92  G4cout << glog->GetName() << " number 1 positioned in " << name
93  << " at (0,0,0) with no rotation" << G4endl;
94 #endif
95 
96  G4cout << "<<== End of CCalG4Hall construction ..." << G4endl;
97 
98  return volume;
99 }
G4String GetName() const
G4String GetName() const
CLHEP::Hep3Vector G4ThreeVector
Definition: G4Box.hh:63
void setVisType(CCalVisualisable::visType, G4LogicalVolume *)
Definition: CCalG4Able.cc:104
G4String Name() const
Definition: CCalDetector.hh:77
const XML_Char * name
G4GLOB_DLL std::ostream G4cout
const G4String & GetName() const
std::ostream & tab(std::ostream &)
Definition: CCalutils.cc:89
G4Material * findMaterial(const G4String &) const
G4String getMaterial() const
Definition: CCalHall.hh:42
#define G4endl
Definition: G4ios.hh:61
static CCalMaterialFactory * getInstance()
double getDy_2Hall() const
Definition: CCalHall.hh:43
double getDx_2Hall() const
Definition: CCalHall.hh:44

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