Geant4  10.03.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
FCALTestbeamSetupSD Class Reference

#include <FCALTestbeamSetupSD.hh>

Inheritance diagram for FCALTestbeamSetupSD:
Collaboration diagram for FCALTestbeamSetupSD:

Public Member Functions

 FCALTestbeamSetupSD (G4String)
 
 ~FCALTestbeamSetupSD ()
 
void Initialize (G4HCofThisEvent *)
 
G4bool ProcessHits (G4Step *, G4TouchableHistory *)
 
void EndOfEvent (G4HCofThisEvent *)
 
void clear ()
 
void DrawAll ()
 
void PrintAll ()
 
- Public Member Functions inherited from G4VSensitiveDetector
 G4VSensitiveDetector (G4String name)
 
 G4VSensitiveDetector (const G4VSensitiveDetector &right)
 
virtual ~G4VSensitiveDetector ()
 
G4VSensitiveDetectoroperator= (const G4VSensitiveDetector &right)
 
G4int operator== (const G4VSensitiveDetector &right) const
 
G4int operator!= (const G4VSensitiveDetector &right) const
 
G4bool Hit (G4Step *aStep)
 
void SetROgeometry (G4VReadOutGeometry *value)
 
void SetFilter (G4VSDFilter *value)
 
G4int GetNumberOfCollections () const
 
G4String GetCollectionName (G4int id) const
 
void SetVerboseLevel (G4int vl)
 
void Activate (G4bool activeFlag)
 
G4bool isActive () const
 
G4String GetName () const
 
G4String GetPathName () const
 
G4String GetFullPathName () const
 
G4VReadOutGeometryGetROgeometry () const
 
G4VSDFilterGetFilter () const
 
virtual G4VSensitiveDetectorClone () const
 

Public Attributes

G4double EBeamS1
 
G4double EBeamS2
 
G4double EBeamS3
 
G4double EHoleScint
 
G4double EBeamHole
 
G4double EBeamDead
 
G4int TailCatcherID
 
G4double ETailVis [NLENGTH]
 
G4double ETailDep [NLENGTH]
 

Additional Inherited Members

- Protected Member Functions inherited from G4VSensitiveDetector
virtual G4int GetCollectionID (G4int i)
 
- Protected Attributes inherited from G4VSensitiveDetector
G4CollectionNameVector collectionName
 
G4String SensitiveDetectorName
 
G4String thePathName
 
G4String fullPathName
 
G4int verboseLevel
 
G4bool active
 
G4VReadOutGeometryROgeometry
 
G4VSDFilterfilter
 

Detailed Description

Definition at line 49 of file FCALTestbeamSetupSD.hh.

Constructor & Destructor Documentation

FCALTestbeamSetupSD::FCALTestbeamSetupSD ( G4String  name)

Definition at line 53 of file FCALTestbeamSetupSD.cc.

53  : G4VSensitiveDetector(name)
54 {}
G4VSensitiveDetector(G4String name)
FCALTestbeamSetupSD::~FCALTestbeamSetupSD ( )

Definition at line 58 of file FCALTestbeamSetupSD.cc.

59 {}

Member Function Documentation

void FCALTestbeamSetupSD::clear ( void  )
virtual

Reimplemented from G4VSensitiveDetector.

Definition at line 151 of file FCALTestbeamSetupSD.cc.

152 {}
void FCALTestbeamSetupSD::DrawAll ( void  )
virtual

Reimplemented from G4VSensitiveDetector.

Definition at line 156 of file FCALTestbeamSetupSD.cc.

157 {}
void FCALTestbeamSetupSD::EndOfEvent ( G4HCofThisEvent )
virtual

Reimplemented from G4VSensitiveDetector.

Definition at line 129 of file FCALTestbeamSetupSD.cc.

130 {
131  G4cout << " Visisble Energy in S1 , S2 , S3 in (MeV)" << G4endl;
132  G4cout << EBeamS1/MeV << " " << EBeamS2/MeV << " " << EBeamS3/MeV << " " << G4endl;
133 
134  G4cout << " Visible Energy in Hole Counter (MeV) " << G4endl;
135  G4cout << EHoleScint/MeV << " " << EBeamHole/MeV << G4endl;
136 
137  G4cout << " Visible Energy in Upstream Dead Materials " << G4endl;
138  G4cout << EBeamDead/MeV << G4endl;
139 
140  G4cout << " Visible Energy in Tail Catcher Scintillator" << G4endl;
141  G4int j;
142  for (j=1; j<8 ; j++) {G4cout << ETailVis[j]/MeV << " " ;}; G4cout << G4endl;
143 
144  G4cout << " Visible Energy in Tail Catcher Absorber" << G4endl;
145  for (j=1; j<7 ; j++) {G4cout << ETailDep[j]/MeV << " " ;}; G4cout << G4endl;
146 
147 }
int G4int
Definition: G4Types.hh:78
G4double ETailDep[NLENGTH]
G4GLOB_DLL std::ostream G4cout
G4double ETailVis[NLENGTH]
#define G4endl
Definition: G4ios.hh:61
static constexpr double MeV
Definition: G4SIunits.hh:214
void FCALTestbeamSetupSD::Initialize ( G4HCofThisEvent )
virtual

Reimplemented from G4VSensitiveDetector.

Definition at line 63 of file FCALTestbeamSetupSD.cc.

64 {
65  EBeamS1 = EBeamS2 = EBeamS3 = 0.;
66  EHoleScint = EBeamHole = 0.;
67  EBeamDead = 0;
68  G4int j;
69  for (j =0 ; j<NLENGTH ; j++) {
70  ETailVis[j] = 0.;
71  ETailDep[j] = 0.;
72  }
73  TailCatcherID = 0;
74 }
int G4int
Definition: G4Types.hh:78
G4double ETailDep[NLENGTH]
G4double ETailVis[NLENGTH]
static const G4int NLENGTH
void FCALTestbeamSetupSD::PrintAll ( void  )
virtual

Reimplemented from G4VSensitiveDetector.

Definition at line 161 of file FCALTestbeamSetupSD.cc.

162 {}
G4bool FCALTestbeamSetupSD::ProcessHits ( G4Step aStep,
G4TouchableHistory  
)
virtual

Implements G4VSensitiveDetector.

Definition at line 78 of file FCALTestbeamSetupSD.cc.

79 {
80 
81  G4double edep = aStep->GetTotalEnergyDeposit();
82  if (edep==0.) return true;
83 
84  G4TouchableHistory* theTouchable
86  G4VPhysicalVolume* physVol = theTouchable->GetVolume();
87 
88  G4String name = physVol->GetName();
89  TailCatcherID = physVol->GetCopyNo();
90 
91  if(name == "ScintS1Physical") {
92  EBeamS1 = EBeamS1 + edep;}
93 
94  else if(name == "ScintS2Physical") {
95  EBeamS2 = EBeamS2 + edep;}
96 
97  else if(name == "ScintS3Physical") {
98  EBeamS3 = EBeamS3 + edep;}
99 
100  else if(name == "HoleScintPhysical"){ EHoleScint += edep;}
101  else if(name == "HoleCntrScintPhysical"){
102  EBeamHole = EBeamHole + edep;}
103 
104  else if(name == "MWPCPhysical") { EBeamDead += edep;}
105  else if(name == "HoleCntrPbPhysical") { EBeamDead += edep;}
106  else if(name == "HoleCntrAlPhysical") { EBeamDead += edep;}
107  else if(name == "LeadWallPhysical") { EBeamDead += edep;}
108  else if(name == "IronWallPhysical") { EBeamDead += edep;}
109  else if(TailCatcherID >= 0 && TailCatcherID < NLENGTH) {
110  if(name == "BigScintPhysical") {
111  ETailVis[TailCatcherID] += edep;
112  }
113  else if(name == "SmallScintPhysical") {
114  if(TailCatcherID+3 < NLENGTH) ETailVis[TailCatcherID + 3] += edep;
115  }
116  else if(name == "BigIronPhysical") {
117  ETailDep[TailCatcherID] += edep;
118  }
119  else if(name == "SmallIronPhysical") {
120  if(TailCatcherID+2 < NLENGTH) ETailDep[TailCatcherID+2] += edep;
121  }
122  }
123 
124  return true;
125 }
const XML_Char * name
Definition: expat.h:151
G4VPhysicalVolume * GetVolume(G4int depth=0) const
const G4VTouchable * GetTouchable() const
G4double ETailDep[NLENGTH]
G4StepPoint * GetPreStepPoint() const
const G4String & GetName() const
G4double GetTotalEnergyDeposit() const
virtual G4int GetCopyNo() const =0
G4double ETailVis[NLENGTH]
double G4double
Definition: G4Types.hh:76
static const G4int NLENGTH

Here is the call graph for this function:

Member Data Documentation

G4double FCALTestbeamSetupSD::EBeamDead

Definition at line 75 of file FCALTestbeamSetupSD.hh.

G4double FCALTestbeamSetupSD::EBeamHole

Definition at line 74 of file FCALTestbeamSetupSD.hh.

G4double FCALTestbeamSetupSD::EBeamS1

Definition at line 73 of file FCALTestbeamSetupSD.hh.

G4double FCALTestbeamSetupSD::EBeamS2

Definition at line 73 of file FCALTestbeamSetupSD.hh.

G4double FCALTestbeamSetupSD::EBeamS3

Definition at line 73 of file FCALTestbeamSetupSD.hh.

G4double FCALTestbeamSetupSD::EHoleScint

Definition at line 74 of file FCALTestbeamSetupSD.hh.

G4double FCALTestbeamSetupSD::ETailDep[NLENGTH]

Definition at line 77 of file FCALTestbeamSetupSD.hh.

G4double FCALTestbeamSetupSD::ETailVis[NLENGTH]

Definition at line 77 of file FCALTestbeamSetupSD.hh.

G4int FCALTestbeamSetupSD::TailCatcherID

Definition at line 76 of file FCALTestbeamSetupSD.hh.


The documentation for this class was generated from the following files: