Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-02-23 09:19:38

0001 //
0002 // ********************************************************************
0003 // * License and Disclaimer                                           *
0004 // *                                                                  *
0005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
0006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
0007 // * conditions of the Geant4 Software License,  included in the file *
0008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
0009 // * include a list of copyright holders.                             *
0010 // *                                                                  *
0011 // * Neither the authors of this software system, nor their employing *
0012 // * institutes,nor the agencies providing financial support for this *
0013 // * work  make  any representation or  warranty, express or implied, *
0014 // * regarding  this  software system or assume any liability for its *
0015 // * use.  Please see the license in the file  LICENSE  and URL above *
0016 // * for the full disclaimer and the limitation of liability.         *
0017 // *                                                                  *
0018 // * This  code  implementation is the result of  the  scientific and *
0019 // * technical work of the GEANT4 collaboration.                      *
0020 // * By using,  copying,  modifying or  distributing the software (or *
0021 // * any work based  on the software)  you  agree  to acknowledge its *
0022 // * use  in  resulting  scientific  publications,  and indicate your *
0023 // * acceptance of all terms of the Geant4 Software license.          *
0024 // ********************************************************************
0025 //
0026 ///////////////////////////////////////////////////////////////////////////////
0027 // File: CCalG4Hcal.hh
0028 // Description: Euipped to construct the G4 geometry of the hadron calorimeter
0029 //              in the 96 test beam run
0030 ///////////////////////////////////////////////////////////////////////////////
0031 #ifndef CCalG4Hcal_h
0032 #define CCalG4Hcal_h 1
0033 
0034 #include "CCalHcal.hh"
0035 #include "CCalG4Able.hh"
0036 #include <vector>
0037 
0038 typedef G4LogicalVolume* ptrG4Log;
0039 
0040 class CCalG4Hcal: public CCalHcal, public CCalG4Able {
0041 public:
0042   //Constructor and Destructor
0043   CCalG4Hcal(const G4String &name);
0044   virtual ~CCalG4Hcal();
0045 
0046 protected:
0047   //This methods actually constructs the volume.
0048   virtual G4VPhysicalVolume* constructIn(G4VPhysicalVolume*) override;
0049   virtual void constructDaughters() override;
0050 
0051   //Construct layer of scintillator or absorber
0052   G4LogicalVolume* constructScintillatorLayer(G4int);
0053   G4LogicalVolume* constructAbsorberLayer(G4int);
0054 
0055   //Constructs the sensitive detectors and associates them to the corresponding
0056   //logical volumes
0057   virtual void constructSensitive() override;
0058 
0059 private:
0060   //Private data members
0061   ptrG4Log* sclLog;
0062   ptrG4Log* absLog;
0063 
0064   // Logical volumes for sensitive detectors
0065   std::vector<ptrG4Log> allSensitiveLogs;
0066 };
0067 
0068 #endif