Back to home page

EIC code displayed by LXR

 
 

    


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

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  *       Filename:  CexmcCommon.hh
0030  *
0031  *    Description:  common declarations
0032  *
0033  *        Version:  1.0
0034  *        Created:  01.11.2009 00:09:04
0035  *       Revision:  none
0036  *       Compiler:  gcc
0037  *
0038  *         Author:  Alexey Radkov (), 
0039  *        Company:  PNPI
0040  *
0041  * =============================================================================
0042  */
0043 
0044 #ifndef CEXMC_COMMON_HH
0045 #define CEXMC_COMMON_HH
0046 
0047 #include <vector>
0048 #include <limits>
0049 #include <G4String.hh>
0050 #include <G4Types.hh>
0051 
0052 #define CEXMC_LINE_START  "--- Cexmc ---  "
0053 
0054 
0055 typedef std::vector< G4double >  CexmcEnergyDepositCrystalRowCollection;
0056 
0057 typedef std::vector< CexmcEnergyDepositCrystalRowCollection >
0058                                  CexmcEnergyDepositCalorimeterCollection;
0059 
0060 
0061 const G4double  CexmcDblMax( std::numeric_limits< double >::max() );
0062 
0063 const G4String  CexmcStudiedProcessFirstName( "studiedProcess_" );
0064 const G4String  CexmcStudiedProcessLastName( "Cexmc" );
0065 const G4String  CexmcStudiedProcessFullName( CexmcStudiedProcessFirstName +
0066                                              CexmcStudiedProcessLastName );
0067 const G4String  CexmcChargeExchangeProductionModelName( "ChargeExchange" );
0068 const G4String  CexmcChargeExchangeInteractionName( "Cexmc" +
0069                                     CexmcChargeExchangeProductionModelName );
0070 
0071 const G4String  CexmcEDDigitizerName( "EDDig" );
0072 const G4String  CexmcTPDigitizerName( "TPDig" );
0073 
0074 const G4String  CexmcScenePrimitivesDescription( "CexmcScenePrimitives" );
0075 
0076 const G4double  CexmcFwhmToStddev( 0.42466 );
0077 const G4double  CexmcInvalidCosTheta( 2.0 );
0078 
0079 const G4int     CexmcInvalidTrackId( -1 );
0080 
0081 
0082 enum CexmcBasePhysicsUsed
0083 {
0084     CexmcNoBasePhysics,
0085     Cexmc_QGSP_BERT,
0086     Cexmc_QGSP_BIC_EMY,
0087     Cexmc_FTFP_BERT
0088 };
0089 
0090 
0091 enum  CexmcProductionModelType
0092 {
0093     CexmcUnknownProductionModel,
0094     CexmcPionZeroProduction,
0095     CexmcEtaProduction
0096 };
0097 
0098 
0099 enum  CexmcTriggerType
0100 {
0101     CexmcTPT,
0102     CexmcEDT,
0103     CexmcRT
0104 };
0105 
0106 
0107 enum  CexmcEventCountPolicy
0108 {
0109     CexmcCountAllEvents,
0110     CexmcCountEventsWithInteraction,
0111     CexmcCountEventsWithTrigger
0112 };
0113 
0114 
0115 enum  CexmcTrackType
0116 {
0117     CexmcInsipidTrack,
0118     CexmcBeamParticleTrack,
0119     CexmcOutputParticleTrack,
0120     CexmcNucleusParticleTrack,
0121     CexmcOutputParticleDecayProductTrack
0122 };
0123 
0124 
0125 enum  CexmcTrackTypeInfo
0126 {
0127     CexmcBasicTrackType,
0128     CexmcIncidentParticleTrackType
0129 };
0130 
0131 
0132 enum  CexmcSide
0133 {
0134     CexmcLeft,
0135     CexmcRight
0136 };
0137 
0138 
0139 enum  CexmcOuterCrystalsVetoAlgorithm
0140 {
0141     CexmcNoOuterCrystalsVeto,
0142     CexmcMaximumEDInASingleOuterCrystalVeto,
0143     CexmcFractionOfEDInOuterCrystalsVeto
0144 };
0145 
0146 
0147 enum  CexmcCalorimeterTriggerAlgorithm
0148 {
0149     CexmcAllCrystalsMakeEDTriggerThreshold,
0150     CexmcInnerCrystalsMakeEDTriggerThreshold
0151 };
0152 
0153 
0154 enum  CexmcCalorimeterEntryPointDefinitionAlgorithm
0155 {
0156     CexmcEntryPointInTheCenter,
0157     CexmcEntryPointInTheCenterOfCrystalWithMaxED,
0158     CexmcEntryPointByLinearEDWeights,
0159     CexmcEntryPointBySqrtEDWeights
0160 };
0161 
0162 
0163 enum  CexmcCalorimeterEntryPointDepthDefinitionAlgorithm
0164 {
0165     CexmcEntryPointDepthPlain,
0166     CexmcEntryPointDepthSphere
0167 };
0168 
0169 
0170 enum  CexmcCrystalSelectionAlgorithm
0171 {
0172     CexmcSelectAllCrystals,
0173     CexmcSelectAdjacentCrystals
0174 };
0175 
0176 
0177 enum  CexmcEDCollectionAlgoritm
0178 {
0179     CexmcCollectEDInAllCrystals,
0180     CexmcCollectEDInAdjacentCrystals
0181 };
0182 
0183 
0184 enum  CexmcEventDataVerboseLevel
0185 {
0186     CexmcWriteNoEventData,
0187     CexmcWriteEventDataOnEveryEDT,
0188     CexmcWriteEventDataOnEveryTPT
0189 };
0190 
0191 
0192 enum  CexmcOutputDataType
0193 {
0194     CexmcOutputRun,
0195     CexmcOutputGeometry,
0196     CexmcOutputEvents
0197 };
0198 
0199 
0200 #endif
0201