28 produces<int>(
"numPV" ).setBranchAlias(
"numPV" );
29 produces<int>(
"nTrkPV" ).setBranchAlias(
"nTrkPV" );
30 produces<float>(
"chi2PV" ).setBranchAlias(
"chi2PV" );
31 produces<float>(
"ndofPV" ).setBranchAlias(
"ndofPV" );
32 produces<float>(
"zPV" ).setBranchAlias(
"zPV" );
33 produces<float>(
"rhoPV" ).setBranchAlias(
"rhoPV" );
45 unique_ptr<int> nVtxs(
new int );
46 unique_ptr<int> nTrkVtx(
new int );
47 unique_ptr<float> chi2Vtx(
new float );
48 unique_ptr<float> ndofVtx(
new float );
49 unique_ptr<float> zVtx(
new float );
50 unique_ptr<float>
rhoVtx(
new float );
64 *nVtxs = primaryVertices->size();
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
std::vector< Vertex > VertexCollection
collection of Vertex objects
const Point & position() const
position
#define DEFINE_FWK_MODULE(type)
edm::EDGetTokenT< reco::VertexCollection > primaryVerticesToken_
double chi2() const
chi-squares
double z() const
z coordinate
EventVtxInfoNtupleDumper(const edm::ParameterSet &)
void produce(edm::Event &, const edm::EventSetup &) override
size_t tracksSize() const
number of tracks