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

#include <FCALHadModuleSD.hh>

Inheritance diagram for FCALHadModuleSD:
Collaboration diagram for FCALHadModuleSD:

Public Member Functions

 FCALHadModuleSD (G4String)
 
 ~FCALHadModuleSD ()
 
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 EvisF2Tile [2330]
 

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 47 of file FCALHadModuleSD.hh.

Constructor & Destructor Documentation

FCALHadModuleSD::FCALHadModuleSD ( G4String  name)

Definition at line 55 of file FCALHadModuleSD.cc.

55  : G4VSensitiveDetector(name),
56  InitF2(0)
57 {
58  HadModule = new FCALHadModule();
59 }
G4VSensitiveDetector(G4String name)
FCALHadModuleSD::~FCALHadModuleSD ( )

Definition at line 63 of file FCALHadModuleSD.cc.

64 {
65  delete HadModule;
66 }

Member Function Documentation

void FCALHadModuleSD::clear ( void  )
virtual

Reimplemented from G4VSensitiveDetector.

Definition at line 118 of file FCALHadModuleSD.cc.

119 {}
void FCALHadModuleSD::DrawAll ( void  )
virtual

Reimplemented from G4VSensitiveDetector.

Definition at line 123 of file FCALHadModuleSD.cc.

124 {}
void FCALHadModuleSD::EndOfEvent ( G4HCofThisEvent )
virtual

Reimplemented from G4VSensitiveDetector.

Definition at line 103 of file FCALHadModuleSD.cc.

104 {
105  G4int NF2Tile = 0;
106  G4int i=0;
107  for (i=0; i<2330; i++){
108  if(EvisF2Tile[i] > 0.) {
109  NF2Tile++;
110  };};
111 
112  G4cout << "Number of F2 tiles with Positive energy : " << NF2Tile << G4endl;
113 
114 }
G4double EvisF2Tile[2330]
int G4int
Definition: G4Types.hh:78
G4GLOB_DLL std::ostream G4cout
#define G4endl
Definition: G4ios.hh:61
void FCALHadModuleSD::Initialize ( G4HCofThisEvent )
virtual

Reimplemented from G4VSensitiveDetector.

Definition at line 70 of file FCALHadModuleSD.cc.

71 {
72  if(InitF2 == 0) {
73  HadModule->InitializeGeometry();
74  InitF2++;
75  }
76  for (G4int j=0; j<2330; j++) { EvisF2Tile[j]=0.;}
77 }
G4double EvisF2Tile[2330]
void InitializeGeometry()
int G4int
Definition: G4Types.hh:78

Here is the call graph for this function:

void FCALHadModuleSD::PrintAll ( void  )
virtual

Reimplemented from G4VSensitiveDetector.

Definition at line 128 of file FCALHadModuleSD.cc.

129 {}
G4bool FCALHadModuleSD::ProcessHits ( G4Step aStep,
G4TouchableHistory  
)
virtual

Implements G4VSensitiveDetector.

Definition at line 81 of file FCALHadModuleSD.cc.

82 {
83 
84  G4double edep = aStep->GetTotalEnergyDeposit();
85  if (edep==0.) return false;
86 
87  G4TouchableHistory* theTouchable
89  G4VPhysicalVolume* physVol = theTouchable->GetVolume();
90 
91 
92  if(strcmp(physVol->GetName(),"F2LArGapPhysical")==0){
93  G4int F2LArGapId = physVol->GetCopyNo();
94  G4int F2TileId = HadModule->GetF2TileID(F2LArGapId);
95  EvisF2Tile[F2TileId] = EvisF2Tile[F2TileId] + edep;
96  };
97 
98  return true;
99 }
G4int GetF2TileID(G4int)
G4VPhysicalVolume * GetVolume(G4int depth=0) const
G4double EvisF2Tile[2330]
const G4VTouchable * GetTouchable() const
int G4int
Definition: G4Types.hh:78
G4StepPoint * GetPreStepPoint() const
const G4String & GetName() const
G4double GetTotalEnergyDeposit() const
virtual G4int GetCopyNo() const =0
double G4double
Definition: G4Types.hh:76

Here is the call graph for this function:

Member Data Documentation

G4double FCALHadModuleSD::EvisF2Tile[2330]

Definition at line 71 of file FCALHadModuleSD.hh.


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