#include <StoreSecondary.h>
|
template<class T > |
void | produces () |
|
template<class T > |
void | produces (const std::string &instanceName) |
|
Definition at line 19 of file StoreSecondary.h.
Definition at line 22 of file StoreSecondary.cc.
References edm::ParameterSet::getParameter(), and treatSecondary.
27 produces<std::vector<math::XYZTLorentzVector> >(
"SecondaryMomenta");
28 produces<std::vector<int> >(
"SecondaryParticles");
30 edm::LogInfo(
"CheckSecondary") <<
"Instantiate StoreSecondary to store "
31 <<
"secondaries after 1st hadronic inelastic"
T getParameter(std::string const &) const
TreatSecondary * treatSecondary
StoreSecondary::~StoreSecondary |
( |
| ) |
|
|
virtual |
Implements SimProducer.
Definition at line 39 of file StoreSecondary.cc.
References i, edm::EventBase::id(), LogDebug, nsecs, procs, edm::Event::put(), and secondaries.
41 std::auto_ptr<std::vector<math::XYZTLorentzVector> > secMom(
new std::vector<math::XYZTLorentzVector>);
43 e.
put(secMom,
"SecondaryMomenta");
45 std::auto_ptr<std::vector<int> > secNumber(
new std::vector<int>);
47 e.
put(secNumber,
"SecondaryParticles");
49 LogDebug(
"CheckSecondary") <<
"StoreSecondary:: Event " << e.
id() <<
" with "
50 <<
nsecs.size() <<
" hadronic collisions with "
51 <<
"secondaries produced in each step";
52 for (
unsigned int i= 0;
i <
nsecs.size();
i++) {
56 <<
" produced in the first interactions:";
std::vector< math::XYZTLorentzVector > secondaries
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
std::vector< std::string > procs
void StoreSecondary::update |
( |
const G4Step * |
| ) |
|
|
privatevirtual |
This routine will be called when the appropriate signal arrives.
Implements Observer< const G4Step * >.
Definition at line 77 of file StoreSecondary.cc.
References RecoTauCleanerPlugins::charge, i, mergeVDriftHistosByStation::name, nHad, nsecs, procs, secondaries, storeIt, AlCaHLTBitMon_QueryRunRegistry::string, TreatSecondary::tracks(), testEve_cfg::tracks, and treatSecondary.
Referenced by Vispa.Gui.ZoomableWidget.ZoomableWidget::setZoom().
93 int sec = (int)(tracks.size());
95 procs.push_back(name);
97 for (
int i=0;
i<sec;
i++)
std::vector< math::XYZTLorentzVector > tracks(const G4Step *step, std::string &procName, int &procID, bool &intr, double &deltaE, std::vector< int > &charges)
std::vector< math::XYZTLorentzVector > secondaries
std::vector< std::string > procs
TreatSecondary * treatSecondary
int StoreSecondary::killAfter |
|
private |
std::vector<int> StoreSecondary::nsecs |
|
private |
std::vector<std::string> StoreSecondary::procs |
|
private |
bool StoreSecondary::storeIt |
|
private |
int StoreSecondary::verbosity |
|
private |