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/G4UserStackingAction.hh"
31 #include "Geant4/G4Types.hh"
32 
33 #include <string>
34 
35 class G4Track;
36 
37 //#include "ExN04TrackerHit.hh"
38 //#include "ExN04MuonHit.hh"
39 class LArStackingActionMessenger;
40 
41 class LArStackingAction : public G4UserStackingAction
42 {
43  public:
44  LArStackingAction(int );
45  virtual ~LArStackingAction();
46 
47  public:
48  // These 3 methods must be implemented by us. EC, 16-Feb-2011.
49  virtual G4ClassificationOfNewTrack ClassifyNewTrack(const G4Track* aTrack);
50  virtual void NewStage();
51  virtual void PrepareNewEvent();
52  G4int fStack;
53 
54  private:
55  //G4bool InsideRoI(const G4Track * aTrack,G4double ang);
56  std::string InsideTPC(const G4Track * aTrack);
57  //G4VHitsCollection* GetCollection(G4String colName);
58 
59  //ExN04TrackerHitsCollection* trkHits;
60  //ExN04MuonHitsCollection* muonHits;
61  //LArStackingActionMessenger* theMessenger;
62 
63  G4int fstage;
64  G4int freqMuon;
65  G4int freqIsoMuon;
66  G4int freqIso;
67  G4double fangRoI;
68 
69 
70 
71  public:
72  inline void SetNRequestMuon(G4int val) { freqMuon = val; }
73  inline G4int GetNRequestMuon() const { return freqMuon; }
74  inline void SetNRequestIsoMuon(G4int val) { freqIsoMuon = val; }
75  inline G4int GetNRequestIsoMuon() const { return freqIsoMuon; }
76  inline void SetNIsolation(G4int val) { freqIso = val; }
77  inline G4int GetNIsolation() const { return freqIso; }
78  inline void SetRoIAngle(G4double val) { fangRoI = val; }
79  inline G4double GetRoIAngle() const { return fangRoI; }
80 };
81 
82 #endif
void SetNRequestIsoMuon(G4int val)
std::string string
Definition: nybbler.cc:12
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()