89 lines
2.8 KiB
C++
89 lines
2.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: CCalG4Ecal.hh
|
|
// Description: Equipped to describe crystal matrix for different testbeam run
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
#ifndef CCalG4Ecal_h
|
|
#define CCalG4Ecal_h 1
|
|
|
|
#include "CCalEcal.hh"
|
|
#include "CCalG4Able.hh"
|
|
#include "g4std/vector"
|
|
|
|
typedef G4LogicalVolume* ptrG4Log;
|
|
|
|
class CCalG4Ecal: public CCalEcal, public CCalG4Able {
|
|
public:
|
|
//Backward or Forward type
|
|
enum CMType {module1, module2};
|
|
|
|
//Constructor and Destructor
|
|
CCalG4Ecal(const G4String &name);
|
|
virtual ~CCalG4Ecal();
|
|
|
|
void setType(CMType ty) {type = ty;}
|
|
|
|
//Prefix to all names in the Detector
|
|
static G4String idName;
|
|
|
|
protected:
|
|
//This methods actually constructs the volume.
|
|
virtual G4VPhysicalVolume* constructIn(G4VPhysicalVolume*);
|
|
|
|
//Constructs the sensitive detectors and associates them to the corresponding
|
|
//logical volumes
|
|
virtual void constructSensitive() ;
|
|
|
|
private:
|
|
//Methods to construct the different parts of the detector
|
|
G4LogicalVolume* constructGlobal();
|
|
|
|
private:
|
|
//Private data members
|
|
CMType type;
|
|
|
|
//Static logical volumes shared by forward and backward detectors.
|
|
static G4LogicalVolume* crystalmatrixLog;
|
|
|
|
// Logical volumes for sensitive detectors
|
|
G4std::vector<ptrG4Log> sensitiveLogs;
|
|
|
|
};
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|