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 auto_ptr<int> nVtxs(
new int );
46 auto_ptr<int> nTrkVtx(
new int );
47 auto_ptr<float> chi2Vtx(
new float );
48 auto_ptr<float> ndofVtx(
new float );
49 auto_ptr<float> zVtx(
new float );
50 auto_ptr<float> rhoVtx(
new float );
64 *nVtxs = primaryVertices->size();
74 evt.
put( nVtxs,
"numPV" );
75 evt.
put( nTrkVtx,
"nTrkPV" );
76 evt.
put( chi2Vtx,
"chi2PV" );
77 evt.
put( ndofVtx,
"ndofPV" );
78 evt.
put( zVtx,
"zPV" );
79 evt.
put( rhoVtx,
"rhoPV" );
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
std::vector< Vertex > VertexCollection
collection of Vertex objects
const Point & position() const
position
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
edm::EDGetTokenT< reco::VertexCollection > primaryVerticesToken_
double chi2() const
chi-squares
double z() const
y coordinate
EventVtxInfoNtupleDumper(const edm::ParameterSet &)
void produce(edm::Event &, const edm::EventSetup &) override
size_t tracksSize() const
number of tracks