Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split the SD for HGCal for silicon and scintillators
- Loading branch information
Sunanda
committed
Jul 10, 2018
1 parent
4d160db
commit ec638ad
Showing
10 changed files
with
488 additions
and
55 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
#ifndef SimG4CMS_HGCScintSD_h | ||
#define SimG4CMS_HGCScintSD_h | ||
/////////////////////////////////////////////////////////////////////////////// | ||
// File: HGCScintSD.h | ||
// Description: Stores hits of the High Granularity Calorimeter (HGC) in the | ||
// appropriate container (post TDR version) | ||
/////////////////////////////////////////////////////////////////////////////// | ||
|
||
#include "SimG4CMS/Calo/interface/CaloSD.h" | ||
#include "SimG4Core/Notification/interface/BeginOfJob.h" | ||
#include "SimG4CMS/Calo/interface/HGCalNumberingScheme.h" | ||
|
||
#include <string> | ||
|
||
class DDCompactView; | ||
class HGCalDDDConstants; | ||
class G4LogicalVolume; | ||
class G4Step; | ||
|
||
class HGCScintSD : public CaloSD, public Observer<const BeginOfJob *> { | ||
|
||
public: | ||
|
||
HGCScintSD(const std::string& , const DDCompactView &, | ||
const SensitiveDetectorCatalog &, edm::ParameterSet const &, | ||
const SimTrackManager*); | ||
~HGCScintSD() override; | ||
|
||
uint32_t setDetUnitId(const G4Step* step) override; | ||
|
||
protected: | ||
|
||
double getEnergyDeposit(const G4Step*) override; | ||
void update(const BeginOfJob *) override; | ||
void initRun() override; | ||
bool filterHit(CaloG4Hit*, double) override; | ||
|
||
private: | ||
|
||
uint32_t setDetUnitId(int, int, int, int, G4ThreeVector &); | ||
bool isItinFidVolume (const G4ThreeVector&); | ||
|
||
const HGCalDDDConstants* hgcons_; | ||
HGCalNumberingScheme* numberingScheme_; | ||
DetId::Detector mydet_; | ||
std::string nameX_; | ||
HGCalGeometryMode::GeometryMode geom_mode_; | ||
double eminHit_, slopeMin_, distanceFromEdge_; | ||
int levelT1_, levelT2_; | ||
bool storeAllG4Hits_, fiducialCut_, useBirk_; | ||
double birk1_, birk2_, birk3_, weight_; | ||
}; | ||
|
||
#endif // HGCScintSD_h |
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.