#include <HcalTB06BeamSD.h>
|
virtual double | getEnergyDeposit (G4Step *) |
|
| HcalTB06BeamSD (G4String, const DDCompactView &, const SensitiveDetectorCatalog &, edm::ParameterSet const &, const SimTrackManager *) |
|
virtual uint32_t | setDetUnitId (G4Step *step) |
|
virtual | ~HcalTB06BeamSD () |
|
| CaloSD (G4String aSDname, const DDCompactView &cpv, const SensitiveDetectorCatalog &clg, edm::ParameterSet const &p, const SimTrackManager *, float timeSlice=1., bool ignoreTkID=false) |
|
virtual void | clear () |
|
virtual void | DrawAll () |
|
virtual void | EndOfEvent (G4HCofThisEvent *eventHC) |
|
void | fillHits (edm::PCaloHitContainer &, std::string n) |
|
virtual void | Initialize (G4HCofThisEvent *HCE) |
|
virtual void | PrintAll () |
|
virtual bool | ProcessHits (G4Step *step, G4TouchableHistory *tHistory) |
|
virtual bool | ProcessHits (G4GFlashSpot *aSpot, G4TouchableHistory *) |
|
virtual | ~CaloSD () |
|
| SensitiveCaloDetector (std::string &iname, const DDCompactView &cpv, const SensitiveDetectorCatalog &clg, edm::ParameterSet const &p) |
|
virtual void | AssignSD (const std::string &vname) |
|
Local3DPoint | ConvertToLocal3DPoint (const G4ThreeVector &point) |
|
Local3DPoint | FinalStepPosition (G4Step *s, coordinates) |
|
virtual std::vector< std::string > | getNames () |
|
Local3DPoint | InitialStepPosition (G4Step *s, coordinates) |
|
std::string | nameOfSD () |
|
void | NaNTrap (G4Step *step) |
|
void | Register () |
|
| SensitiveDetector (std::string &iname, const DDCompactView &cpv, const SensitiveDetectorCatalog &, edm::ParameterSet const &p) |
|
virtual | ~SensitiveDetector () |
|
| Observer () |
|
void | slotForUpdate (const BeginOfRun * iT) |
|
virtual | ~Observer () |
|
| Observer () |
|
void | slotForUpdate (const BeginOfEvent * iT) |
|
virtual | ~Observer () |
|
| Observer () |
|
void | slotForUpdate (const BeginOfTrack * iT) |
|
virtual | ~Observer () |
|
| Observer () |
|
void | slotForUpdate (const EndOfTrack * iT) |
|
virtual | ~Observer () |
|
| Observer () |
|
void | slotForUpdate (const EndOfEvent * iT) |
|
virtual | ~Observer () |
|
Definition at line 20 of file HcalTB06BeamSD.h.
Definition at line 23 of file HcalTB06BeamSD.cc.
References birk1, birk2, birk3, DDFilteredView::firstChild(), g, SensitiveDetector::getNames(), edm::ParameterSet::getParameter(), mps_fire::i, cmsBatch::log, DDFilteredView::logicalPart(), DDLogicalPart::material(), matName, MeV, DDName::name(), DDBase< N, C >::name(), DDFilteredView::next(), AlCaHLTBitMon_QueryRunRegistry::string, useBirk, relativeConstraints::value, and wcNames.
36 edm::LogInfo(
"HcalTB06BeamSD") <<
"HcalTB06BeamSD:: Use of Birks law is set to " 37 << useBirk <<
" with three constants kB = " 38 << birk1 <<
", C1 = " <<birk2 <<
", C2 = " <<
birk3;
44 value =
"WireChamber";
49 <<
"HcalTB06BeamSD:: Names to be tested for " 50 << attribute <<
" = " << value <<
": " <<
wcNames.size() <<
" paths";
52 edm::LogInfo(
"HcalTB06BeamSD") <<
"HcalTB06BeamSD:: (" <<
i <<
") " 56 attribute =
"ReadOutName";
59 bool dodet = fv2.firstChild();
61 std::vector<G4String> matNames;
62 std::vector<int> nocc;
67 for (
unsigned int i=0;
i<matNames.size();
i++) {
68 if (
matName == matNames[
i]) {notIn =
false; nocc[
i]++;}
76 if (matNames.size() > 0) {
79 for (
unsigned int i = 0;
i < matNames.size();
i++) {
90 <<
"HcalTB06BeamSD: Material name for " T getParameter(std::string const &) const
std::vector< G4String > wcNames
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e g
CaloSD(G4String aSDname, const DDCompactView &cpv, const SensitiveDetectorCatalog &clg, edm::ParameterSet const &p, const SimTrackManager *, float timeSlice=1., bool ignoreTkID=false)
A DDLogicalPart aggregates information concerning material, solid and sensitveness ...
virtual std::vector< std::string > getNames()
const std::string & name() const
Returns the name.
const DDMaterial & material(void) const
Returns a reference object of the material this LogicalPart is made of.
HcalTB06BeamSD::~HcalTB06BeamSD |
( |
| ) |
|
|
virtual |
double HcalTB06BeamSD::getEnergyDeposit |
( |
G4Step * |
aStep | ) |
|
|
virtual |
Reimplemented from CaloSD.
Definition at line 96 of file HcalTB06BeamSD.cc.
References birk1, birk2, birk3, CaloSD::getAttenuation(), LogDebug, matName, useBirk, and mps_merge::weight.
98 double destep = aStep->GetTotalEnergyDeposit();
100 if (
useBirk &&
matName == aStep->GetPreStepPoint()->GetMaterial()->GetName()) {
104 <<
"HcalTB06BeamSD: Detector " 105 << aStep->GetPreStepPoint()->GetTouchable()->GetVolume()->GetName()
107 return weight*destep;
double getAttenuation(G4Step *aStep, double birk1, double birk2, double birk3)
std::vector< G4String > HcalTB06BeamSD::getNames |
( |
DDFilteredView & |
fv | ) |
|
|
private |
Definition at line 132 of file HcalTB06BeamSD.cc.
References DDFilteredView::firstChild(), mps_fire::i, cmsBatch::log, DDFilteredView::logicalPart(), DDName::name(), SensitiveDetector::name, DDBase< N, C >::name(), DDFilteredView::next(), convertSQLiteXML::ok, and tmp.
134 std::vector<G4String>
tmp;
140 for (
unsigned int i=0;
i<tmp.size();
i++)
141 if (name == tmp[
i]) ok =
false;
142 if (ok) tmp.push_back(name);
const DDLogicalPart & logicalPart() const
The logical-part of the current node in the filtered-view.
bool next()
set current node to the next node in the filtered tree
A DDLogicalPart aggregates information concerning material, solid and sensitveness ...
std::vector< std::vector< double > > tmp
bool firstChild()
set the current node to the first child ...
const std::string & name() const
Returns the name.
bool HcalTB06BeamSD::isItWireChamber |
( |
G4String |
name | ) |
|
|
private |
uint32_t HcalTB06BeamSD::setDetUnitId |
( |
G4Step * |
step | ) |
|
|
virtual |
Implements CaloSD.
Definition at line 110 of file HcalTB06BeamSD.cc.
References createfilelist::int, isItWireChamber(), SensitiveDetector::name, HcalTestBeamNumbering::packIndex(), CaloSD::preStepPoint, CaloSD::setToLocal(), x, and y.
113 const G4VTouchable* touch = preStepPoint->GetTouchable();
114 G4String
name = preStepPoint->GetPhysicalVolume()->GetName();
117 int lay = 0,
x = 0,
y = 0;
119 lay = (touch->GetReplicaNumber(0));
122 lay = (touch->GetReplicaNumber(1));
123 G4ThreeVector hitPoint = preStepPoint->GetPosition();
124 G4ThreeVector localPoint =
setToLocal(hitPoint, touch);
125 x = (
int)(localPoint.x()/(0.2*mm));
126 y = (
int)(localPoint.y()/(0.2*mm));
static uint32_t packIndex(int det, int lay, int x, int y)
G4StepPoint * preStepPoint
bool isItWireChamber(G4String)
G4ThreeVector setToLocal(const G4ThreeVector &, const G4VTouchable *)
double HcalTB06BeamSD::birk1 |
|
private |
double HcalTB06BeamSD::birk2 |
|
private |
double HcalTB06BeamSD::birk3 |
|
private |
G4String HcalTB06BeamSD::matName |
|
private |
bool HcalTB06BeamSD::useBirk |
|
private |
std::vector<G4String> HcalTB06BeamSD::wcNames |
|
private |