/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
SimG4Core/Application/interface/GFlashHadronShowerModel.h
62 строки
2 KB
Cms Build
Clang-Format
16 май 2019, 00:00
16 май 2019, 00:00
eed914b
Код
Авторство
О чём код?
#ifndef GflashHadronShowerModel_H #define GflashHadronShowerModel_H #include "FWCore/ParameterSet/interface/ParameterSet.h" #include "G4VFastSimulationModel.hh" #include "G4TouchableHandle.hh" #include "G4Navigator.hh" #include "G4Step.hh" class GflashHadronShowerProfile; class GflashPiKShowerProfile; class GflashKaonPlusShowerProfile; class GflashKaonMinusShowerProfile; class GflashProtonShowerProfile; class GflashAntiProtonShowerProfile; class G4Region; //class GflashHistogram; class GFlashHadronShowerModel : public G4VFastSimulationModel { public: //------------------------- // Constructor, destructor //------------------------- GFlashHadronShowerModel(G4String modelName, G4Region *envelope, const edm::ParameterSet &parSet); ~GFlashHadronShowerModel() override; //------------------------------------------------------------------------ // Virtual methods that should be implemented for this hadron shower model //------------------------------------------------------------------------ G4bool IsApplicable(const G4ParticleDefinition &) override; G4bool ModelTrigger(const G4FastTrack &) override; void DoIt(const G4FastTrack &, G4FastStep &) override; private: G4bool isFirstInelasticInteraction(const G4FastTrack &fastTrack); G4bool excludeDetectorRegion(const G4FastTrack &fastTrack); void makeHits(const G4FastTrack &fastTrack); void updateGflashStep(const G4ThreeVector &position, G4double time); private: G4bool theWatcherOn; edm::ParameterSet theParSet; GflashHadronShowerProfile *theProfile; GflashPiKShowerProfile *thePiKProfile; GflashKaonPlusShowerProfile *theKaonPlusProfile; GflashKaonMinusShowerProfile *theKaonMinusProfile; GflashProtonShowerProfile *theProtonProfile; GflashAntiProtonShowerProfile *theAntiProtonProfile; const G4Region *theRegion; G4Step *theGflashStep; G4Navigator *theGflashNavigator; G4TouchableHandle theGflashTouchableHandle; //debugging histograms //GflashHistogram* theHisto; }; #endif