LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
LArStackingAction.h
Go to the documentation of this file.
1 //
2 // ********************************************************************
3 // * License and Disclaimer *
4 // * *
5 // * The Geant4 software is copyright of the Copyright Holders of *
6 // * the Geant4 Collaboration. It is provided under the terms and *
7 // * conditions of the Geant4 Software License, included in the file *
8 // * LICENSE and available at http://cern.ch/geant4/license . These *
9 // * include a list of copyright holders. *
10 // * *
11 // * Neither the authors of this software system, nor their employing *
12 // * institutes,nor the agencies providing financial support for this *
13 // * work make any representation or warranty, express or implied, *
14 // * regarding this software system or assume any liability for its *
15 // * use. Please see the license in the file LICENSE and URL above *
16 // * for the full disclaimer and the limitation of liability. *
17 // * *
18 // * This code implementation is the result of the scientific and *
19 // * technical work of the GEANT4 collaboration. *
20 // * By using, copying, modifying or distributing the software (or *
21 // * any work based on the software) you agree to acknowledge its *
22 // * use in resulting scientific publications, and indicate your *
23 // * acceptance of all terms of the Geant4 Software license. *
24 // ********************************************************************
25 //
26 
27 #ifndef LArStackingAction_H
28 #define LArStackingAction_H
29 
30 #include "Geant4/globals.hh"
31 #include "Geant4/G4UserStackingAction.hh"
32 #include "Geant4/G4ThreeVector.hh"
33 
34 class G4Track;
35 
36 //#include "ExN04TrackerHit.hh"
37 //#include "ExN04MuonHit.hh"
38 class LArStackingActionMessenger;
39 
40 class LArStackingAction : public G4UserStackingAction
41 {
42  public:
43  LArStackingAction(int );
44  virtual ~LArStackingAction();
45 
46  public:
47  // These 3 methods must be implemented by us. EC, 16-Feb-2011.
48  virtual G4ClassificationOfNewTrack ClassifyNewTrack(const G4Track* aTrack);
49  virtual void NewStage();
50  virtual void PrepareNewEvent();
51  G4int fStack;
52 
53  private:
54  //G4bool InsideRoI(const G4Track * aTrack,G4double ang);
55  std::string InsideTPC(const G4Track * aTrack);
56  //G4VHitsCollection* GetCollection(G4String colName);
57 
58  //ExN04TrackerHitsCollection* trkHits;
59  //ExN04MuonHitsCollection* muonHits;
60  //LArStackingActionMessenger* theMessenger;
61 
62  G4int fstage;
63  G4int freqMuon;
64  G4int freqIsoMuon;
65  G4int freqIso;
66  G4double fangRoI;
67 
68 
69 
70  public:
71  inline void SetNRequestMuon(G4int val) { freqMuon = val; }
72  inline G4int GetNRequestMuon() const { return freqMuon; }
73  inline void SetNRequestIsoMuon(G4int val) { freqIsoMuon = val; }
74  inline G4int GetNRequestIsoMuon() const { return freqIsoMuon; }
75  inline void SetNIsolation(G4int val) { freqIso = val; }
76  inline G4int GetNIsolation() const { return freqIso; }
77  inline void SetRoIAngle(G4double val) { fangRoI = val; }
78  inline G4double GetRoIAngle() const { return fangRoI; }
79 };
80 
81 #endif
82 
void SetNRequestIsoMuon(G4int val)
void SetRoIAngle(G4double val)
G4int GetNRequestIsoMuon() const
virtual void NewStage()
std::string InsideTPC(const G4Track *aTrack)
void SetNRequestMuon(G4int val)
G4int GetNRequestMuon() const
G4int GetNIsolation() const
G4double GetRoIAngle() const
virtual G4ClassificationOfNewTrack ClassifyNewTrack(const G4Track *aTrack)
void SetNIsolation(G4int val)
virtual void PrepareNewEvent()