23 <<
" mm doHcal is set to " << doHcal <<
" and Fromdd4hep to " <<
fromdd4hep_;
25 theHistoHcal_ = std::make_unique<MaterialBudgetHcalHistos>(m_p);
38 edm::LogVerbatim(
"MaterialBudget") <<
"MaterialBudgetHcal: Initialize the token for CompactView";
56 const G4Track* aTrack = (*trk)();
72 G4Track*
track = aStep->GetTrack();
73 track->SetTrackStatus(fStopAndKill);
85 G4ThreeVector hitPoint = aStep->GetPreStepPoint()->GetPosition();
86 double rr = hitPoint.perp();
90 edm::LogVerbatim(
"MaterialBudget") <<
" MaterialBudgetHcal::StopAfter R = " <<
rr <<
" and Z = " <<
zz;
Log< level::Info, true > LogVerbatim
void update(const BeginOfTrack *) override
This routine will be called when the appropriate signal arrives.
std::unique_ptr< MaterialBudgetHcalHistos > theHistoHcal_
uint32_t cc[maxCellsPerHit]
edm::ESGetToken< cms::DDCompactView, IdealGeometryRecord > cpvTokenDD4hep_
void beginRun(edm::EventSetup const &) override
void registerConsumes(edm::ConsumesCollector) override
T getUntrackedParameter(std::string const &, T const &) const
bool stopAfter(const G4Step *)
Abs< T >::type abs(const T &t)
edm::ESGetToken< DDCompactView, IdealGeometryRecord > cpvTokenDDD_
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
MaterialBudgetHcal(const edm::ParameterSet &)
std::unique_ptr< MaterialBudgetCastorHistos > theHistoCastor_