Files
geant4/examples/advanced/composite_calorimeter/include/CCalEcal.hh
T
2016-06-08 16:57:27 +02:00

111 lines
4.8 KiB
C++

//
// ********************************************************************
// * DISCLAIMER *
// * *
// * The following disclaimer summarizes all the specific disclaimers *
// * of contributors to this software. The specific disclaimers,which *
// * govern, are listed with their locations in: *
// * http://cern.ch/geant4/license *
// * *
// * Neither the authors of this software system, nor their employing *
// * institutes,nor the agencies providing financial support for this *
// * work make any representation or warranty, express or implied, *
// * regarding this software system or assume any liability for its *
// * use. *
// * *
// * This code implementation is the intellectual property of the *
// * GEANT4 collaboration. *
// * By copying, distributing or modifying the Program (or any work *
// * based on the Program) you indicate your acceptance of this *
// * statement, and all its terms. *
// ********************************************************************
//
///////////////////////////////////////////////////////////////////////////////
// File: CCalEcal.hh
// Description: CCalEcal Geometry factory class for crystal matrix
///////////////////////////////////////////////////////////////////////////////
#ifndef CCalEcal_h
#define CCalEcal_h 1
#include "CCalDetector.hh"
class CCalEcal: public CCalDetector {
public:
//Constructor and Destructor
CCalEcal(const G4String &name):
CCalDetector(name) {}
virtual ~CCalEcal();
//Get Methods
G4String getGenMat() const {return genMat;}
double getWidBox() const {return widBox;}
double getLengBox() const {return lengBox;}
double getXpos() const {return xpos;}
double getYpos() const {return ypos;}
double getZpos() const {return zpos;}
double getThetaX() const {return thetaX;}
double getPhiX() const {return phiX;}
double getThetaY() const {return thetaY;}
double getPhiY() const {return phiY;}
double getThetaZ() const {return thetaZ;}
double getPhiZ() const {return phiZ;}
G4String getLayMat() const {return layMat;}
int getLayNum() const {return layNum;}
double getLayRadius() const {return layRadius;}
double getLayAngle() const {return layAngle;}
double getLengFront() const {return lengFront;}
double getLayPar(unsigned int i) const {return layPar[i];}
G4String getCrystMat() const {return crystMat;}
int getCrystNum() const {return crystNum;}
double getCrystLength() const {return crystLength;}
double getCrystTol() const {return crystTol;}
double getCrystPar(unsigned int i) const {return crystPar[i];}
G4String getSuppMat() const {return suppMat;}
double getDxSupp() const {return dxSupp;}
double getDySupp() const {return dySupp;}
double getDzSupp() const {return dzSupp;}
double getDistSupp() const {return distSupp;}
protected:
virtual int readFile();
virtual void constructDaughters();
private:
G4String genMat; //General material
double widBox, lengBox; //Box parameters
double xpos, ypos, zpos; //Translation matrix definition
double thetaX,phiX,thetaY,phiY,thetaZ,phiZ; //Rotation matrix definition
G4String layMat; //Material for the layers
int layNum; //Layer numbers
double layRadius,layAngle; //Positioning parameters
double lengFront; //Distance from front
double layPar[5]; //Layer parameters
G4String crystMat; //Material for the crystals
int crystNum; //Crystal numbers
double crystLength; //Crystal length
double crystTol; //Tolerance for position
double crystPar[5]; //Crystal parameters
G4String suppMat; //Material of support system
double dxSupp, dySupp, dzSupp; //Dimension of support material
double distSupp; //Separation of support material
};
#endif