Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-31 09:21:46

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 
0028 // ********************************************************************
0029 //
0030 //  CaTS (Calorimetry and Tracking Simulation)
0031 //
0032 //  Authors : Hans Wenzel
0033 //            Soon Yung Jun
0034 //            (Fermi National Accelerator Laboratory)
0035 //
0036 // History
0037 //   October 18th, 2021 : first implementation
0038 //
0039 // ********************************************************************
0040 //
0041 /// \file lArTPCSD.hh
0042 /// \brief Definition of the CaTS::lArTPCSD class
0043 
0044 #pragma once
0045 
0046 #include "lArTPCHit.hh"
0047 #include "G4VSensitiveDetector.hh"
0048 #include "G4ScintillationTrackInformation.hh"
0049 #include <G4MaterialPropertyVector.hh>
0050 #include <G4String.hh>
0051 #include <G4Types.hh>
0052 class G4Material;
0053 class G4PhysicsTable;
0054 class G4TouchableHistory;
0055 class G4Step;
0056 class G4HCofThisEvent;
0057 class G4MaterialPropertiesTable;
0058 class G4PhysicsOrderedFreeVector;
0059 
0060 class lArTPCSD : public G4VSensitiveDetector
0061 {
0062  public:
0063   lArTPCSD(G4String name);
0064   virtual ~lArTPCSD() = default;
0065   void Initialize(G4HCofThisEvent* hitCollection) final;
0066   G4bool ProcessHits(G4Step* step, G4TouchableHistory* history) final;
0067   void EndOfEvent(G4HCofThisEvent* hitCollection) final;
0068 
0069  private:
0070   G4int materialIndex;
0071   const G4Material* aMaterial;
0072   G4MaterialPropertiesTable* aMaterialPropertiesTable;
0073   //
0074   // properties related to Scintillation
0075   //
0076   G4MaterialPropertyVector* Fast_Intensity{ nullptr };
0077   G4MaterialPropertyVector* Slow_Intensity{ nullptr };
0078   G4double YieldRatio{ 0 };        // slowerRatio,
0079   G4double FastTimeConstant{ 0 };  // TimeConstant,
0080   G4double SlowTimeConstant{ 0 };  // slowerTimeConstant,
0081   G4ScintillationType ScintillationType;
0082   //
0083   // properties related to Cerenkov
0084   //
0085   G4MaterialPropertyVector* Rindex{ nullptr };
0086   G4PhysicsOrderedFreeVector* CerenkovAngleIntegrals{ nullptr };
0087   const G4PhysicsTable* thePhysicsTable{ 0 };
0088   G4double Pmin{ 0 };
0089   G4double Pmax{ 0 };
0090   G4double dp{ 0 };
0091   G4double nMax{ 0 };
0092   G4bool first{ false };
0093   G4bool verbose{ false };
0094   G4int tCphotons{ 0 };
0095   G4int tSphotons{ 0 };
0096   G4double NumElectrons(G4double e, G4double ds);
0097   lArTPCHitsCollection* flArTPCHitsCollection{ nullptr };
0098   G4int fHCID{ 0 };
0099 };