@@ -12,7 +12,7 @@ class PixelHit : public G4VHit
1212{
1313public:
1414 PixelHit () = default ;
15- PixelHit (G4double edep, G4int rowID, G4int colID, G4int layerId, G4int trackID, G4int parentID, G4int pdgc, G4bool isPrim);
15+ PixelHit (G4double edep, G4int rowID, G4int colID, G4int layerId, G4int trackID, G4int parentID, G4int pdgc, G4bool isPrim, G4bool isEMShower );
1616 PixelHit (const PixelHit&) = default ;
1717 ~PixelHit () override = default ;
1818
@@ -44,6 +44,7 @@ public:
4444 // void SetFromPrimaryPizero(G4bool fromPrimaryPizero) { fFromPrimaryPizero = fromPrimaryPizero; }
4545 // void SetFromFSLPizero(G4bool fromFSLPizero) { fFromFSLPizero = fromFSLPizero; }
4646 void SetFromPrimaryLepton (G4bool fromPrimaryLepton) { fFromPrimaryLepton = fromPrimaryLepton; }
47+ void SetFromPrimaryEMShower (G4bool fromPrimaryEMShower) { fFromPrimaryEMShower = fromPrimaryEMShower; }
4748 // void SetTruthHitPos(G4ThreeVector pos) { fTruthHitPos = pos; }
4849
4950 G4int GetPDGCode () const { return fPDGCode ; }
@@ -65,6 +66,7 @@ public:
6566 // G4bool GetFromPrimaryPizero() const { return fFromPrimaryPizero; }
6667 // G4bool GetFromFSLPizero() const { return fFromFSLPizero; }
6768 G4bool GetFromPrimaryLepton () const { return fFromPrimaryLepton ; }
69+ G4bool GetFromPrimaryEMShower () const { return fFromPrimaryEMShower ; }
6870
6971private:
7072 G4int fTrackID = -1 ;
@@ -76,6 +78,7 @@ private:
7678 G4int fLayerID = -1 ;
7779 // G4int fCharge = 0;
7880 G4bool fFromPrimaryLepton = false ;
81+ G4bool fFromPrimaryEMShower = false ;
7982 // G4bool fFromPrimaryPizero = false;
8083 // G4bool fFromFSLPizero = false;
8184 // G4ThreeVector fTruthHitPos;
0 commit comments