|
void | clear () override |
|
void | clearHits () override |
|
void | DrawAll () override |
|
void | EndOfEvent (G4HCofThisEvent *HCE) override |
|
| FiberSD (const std::string &, const HcalSimulationConstants *, const HcalDDDSimConstants *, const SensitiveDetectorCatalog &, edm::ParameterSet const &, const SimTrackManager *) |
|
void | fillHits (edm::PCaloHitContainer &, const std::string &) override |
|
void | Initialize (G4HCofThisEvent *HCE) override |
|
void | PrintAll () override |
|
G4bool | ProcessHits (G4Step *aStep, G4TouchableHistory *ROhist) override |
|
uint32_t | setDetUnitId (const G4Step *) override |
|
| ~FiberSD () override |
|
virtual void | reset () |
|
| SensitiveCaloDetector (const std::string &iname, const SensitiveDetectorCatalog &clg) |
|
void | EndOfEvent (G4HCofThisEvent *eventHC) override |
|
const std::vector< std::string > & | getNames () const |
|
void | Initialize (G4HCofThisEvent *eventHC) override |
|
bool | isCaloSD () const |
|
| SensitiveDetector (const std::string &iname, const SensitiveDetectorCatalog &, bool calo) |
|
| ~SensitiveDetector () override |
|
| Observer () |
|
void | slotForUpdate (const BeginOfJob * iT) |
|
virtual | ~Observer () |
|
| Observer () |
|
void | slotForUpdate (const BeginOfRun * iT) |
|
virtual | ~Observer () |
|
| Observer () |
|
void | slotForUpdate (const BeginOfEvent * iT) |
|
virtual | ~Observer () |
|
| Observer () |
|
void | slotForUpdate (const EndOfEvent * iT) |
|
virtual | ~Observer () |
|
Definition at line 29 of file FiberSD.h.
G4bool FiberSD::ProcessHits |
( |
G4Step * |
aStep, |
|
|
G4TouchableHistory * |
ROhist |
|
) |
| |
|
overridevirtual |
Implements SensitiveDetector.
Definition at line 50 of file FiberSD.cc.
52 double zoffset = 1000;
56 std::vector<HFShowerPhoton> thePE;
57 for (
unsigned int i = 0;
i <
hits.size();
i++) {
63 int trackID = aStep->GetTrack()->GetTrackID();
64 G4StepPoint* preStepPoint = aStep->GetPreStepPoint();
65 const G4VTouchable* touch = preStepPoint->GetTouchable();
66 G4LogicalVolume* lv = touch->GetVolume(0)->GetLogicalVolume();
67 int depth = (touch->GetReplicaNumber(0)) % 10;
70 preStepPoint->GetPosition().x(), preStepPoint->GetPosition().y(), preStepPoint->GetPosition().z());
76 edm::LogVerbatim(
"FiberSim") <<
"FiberSD :pre hit position " << aHit->hitPos();
78 aHit->setNpe(
hits.size());
79 aHit->setPos(theHitPos);
80 aHit->setTime(preStepPoint->GetGlobalTime());
81 aHit->setPhoton(thePE);
83 edm::LogVerbatim(
"FiberSim") <<
"FiberSD :ShowerPhoton position " << thePE[0].x() <<
" "
84 << thePE[0].y() <<
" " << thePE[0].z();
87 <<
" DetID: " << aHit->towerId() <<
" Depth: " << aHit->depth()
88 <<
" Track ID: " << aHit->trackId() <<
" Nb. of Cerenkov Photons: " << aHit->npe()
89 <<
" Time: " << aHit->time() <<
" at " << aHit->hitPos();
90 for (
unsigned int i = 0;
i < thePE.size();
i++)
References LEDCalibrationChannels::depth, HFShower::getHits(), hfClusterShapes_cfi::hits, mps_fire::i, position, setDetUnitId(), theHC, and theShower.