forked from cms-sw/cmssw
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add optional hadronic GFlash to any Physics List
- Loading branch information
Showing
6 changed files
with
472 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
#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 (); | ||
|
||
//------------------------------------------------------------------------ | ||
// Virtual methods that should be implemented for this hadron shower model | ||
//------------------------------------------------------------------------ | ||
|
||
G4bool IsApplicable(const G4ParticleDefinition&); | ||
G4bool ModelTrigger(const G4FastTrack &); | ||
void DoIt(const G4FastTrack&, G4FastStep&); | ||
|
||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.