|
void | clear () override |
|
void | clearHits () override |
|
void | DrawAll () override |
|
void | EndOfEvent (G4HCofThisEvent *HCE) override |
|
| FiberSD (const std::string &, const edm::EventSetup &, 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 edm::EventSetup &es, const SensitiveDetectorCatalog &clg, edm::ParameterSet const &p) |
|
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 edm::EventSetup &es, const SensitiveDetectorCatalog &, edm::ParameterSet const &p, 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 26 of file FiberSD.h.
G4bool FiberSD::ProcessHits |
( |
G4Step * |
aStep, |
|
|
G4TouchableHistory * |
ROhist |
|
) |
| |
|
overridevirtual |
Implements SensitiveDetector.
Definition at line 67 of file FiberSD.cc.
69 double zoffset = 1000;
73 std::vector<HFShowerPhoton> thePE;
74 for (
unsigned int i = 0;
i <
hits.size();
i++) {
80 int trackID = aStep->GetTrack()->GetTrackID();
81 G4StepPoint* preStepPoint = aStep->GetPreStepPoint();
82 const G4VTouchable* touch = preStepPoint->GetTouchable();
83 G4LogicalVolume* lv = touch->GetVolume(0)->GetLogicalVolume();
84 int depth = (touch->GetReplicaNumber(0)) % 10;
87 preStepPoint->GetPosition().x(), preStepPoint->GetPosition().y(), preStepPoint->GetPosition().z());
92 edm::LogVerbatim(
"FiberSim") <<
"FiberSD :pre hit position " << aHit->hitPos();
93 aHit->setNpe(
hits.size());
94 aHit->setPos(theHitPos);
95 aHit->setTime(preStepPoint->GetGlobalTime());
96 aHit->setPhoton(thePE);
97 edm::LogVerbatim(
"FiberSim") <<
"FiberSD :ShowerPhoton position " << thePE[0].x() <<
" " << thePE[0].y() <<
" "
100 edm::LogVerbatim(
"FiberSim") <<
"FiberSD: Hit created at " << lv->GetName() <<
" DetID: " << aHit->towerId()
101 <<
" Depth: " << aHit->depth() <<
" Track ID: " << aHit->trackId()
102 <<
" Nb. of Cerenkov Photons: " << aHit->npe() <<
" Time: " << aHit->time() <<
" at "
104 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.