29 if (
names->size() != xs->size() || xs->size() != ys->size() || ys->size() != zs->size()) {
30 edm::LogError(
"RHStopDump") <<
"mismatch array sizes name/x/y/z:" <<
names->size() <<
'/' << xs->size() <<
'/' 31 << ys->size() <<
'/' << zs->size() << std::endl;
33 for (
size_t i = 0;
i <
names->size(); ++
i) {
34 mStream << (*names)[
i] <<
' ' << (*xs)[
i] <<
' ' << (*ys)[
i] <<
' ' << (*zs)[
i] <<
' ' << (*ts)[
i] << std::endl;
35 mStream << (*ids)[
i] <<
' ' << (*masses)[
i] <<
' ' << (*charges)[
i] << std::endl;
const edm::EDGetTokenT< std::vector< float > > tokenYs_
const edm::EDGetTokenT< std::vector< int > > tokenIds_
void analyze(const edm::Event &, const edm::EventSetup &) override
Log< level::Error, false > LogError
const std::string names[nVars_]
RHStopDump(const edm::ParameterSet &)
const edm::EDGetTokenT< std::vector< float > > tokenXs_
const edm::EDGetTokenT< std::vector< float > > tokenZs_
const edm::EDGetTokenT< std::vector< float > > tokenCharges_
charges
only generated particles of these IDs are considered
const edm::EDGetTokenT< std::vector< std::string > > tokNames_
const edm::EDGetTokenT< std::vector< float > > tokenTs_
const edm::EDGetTokenT< std::vector< float > > tokenMasses_