27 primaryVertices_(cfg.getParameter<
InputTag>(
"primaryVertices")) {
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" );
#define DEFINE_FWK_MODULE(type)
const Point & position() const
position
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
double chi2() const
chi-squares
double z() const
y coordinate
edm::InputTag primaryVertices_
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
EventVtxInfoNtupleDumper(const edm::ParameterSet &)
void produce(edm::Event &, const edm::EventSetup &)
size_t tracksSize() const
number of tracks