|
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 64 of file FiberSD.cc.
66 double zoffset = 1000;
70 std::vector<HFShowerPhoton> thePE;
71 for (
unsigned int i = 0;
i <
hits.size();
i++) {
77 int trackID = aStep->GetTrack()->GetTrackID();
78 G4StepPoint* preStepPoint = aStep->GetPreStepPoint();
79 const G4VTouchable* touch = preStepPoint->GetTouchable();
80 G4LogicalVolume* lv = touch->GetVolume(0)->GetLogicalVolume();
81 int depth = (touch->GetReplicaNumber(0)) % 10;
84 preStepPoint->GetPosition().x(), preStepPoint->GetPosition().y(), preStepPoint->GetPosition().z());
88 std::cout <<
"hit size " <<
hits.size() <<
" npe" << aHit->npe() << std::endl;
89 std::cout <<
"pre hit position " << aHit->hitPos() << std::endl;
90 aHit->setNpe(
hits.size());
91 aHit->setPos(theHitPos);
92 aHit->setTime(preStepPoint->GetGlobalTime());
93 aHit->setPhoton(thePE);
94 std::cout <<
"ShowerPhoton position " << thePE[0].x() <<
" " << thePE[0].y() <<
" " << thePE[0].z() << std::endl;
96 LogDebug(
"FiberSim") <<
"FiberSD: Hit created at " << lv->GetName() <<
" DetID: " << aHit->towerId()
97 <<
" Depth: " << aHit->depth() <<
" Track ID: " << aHit->trackId()
98 <<
" Nb. of Cerenkov Photons: " << aHit->npe() <<
" Time: " << aHit->time() <<
" at "
100 for (
unsigned int i = 0;
i < thePE.size();
i++)
101 LogDebug(
"FiberSim") <<
"FiberSD: PE[" <<
i <<
"] " << thePE[
i];
References gather_cfg::cout, LEDCalibrationChannels::depth, HFShower::getHits(), hfClusterShapes_cfi::hits, mps_fire::i, LogDebug, position, setDetUnitId(), theHC, and theShower.