31 #include "HepMC/SimpleVector.h"
106 std::map<std::string, TH1*>
h;
107 std::map<std::string, TDirectory*>
hdir;
void printRecVtxs(const edm::Handle< reco::VertexCollection > &recVtxs)
std::vector< int > genVertex
bool isCharged(const HepMC::GenParticle *p)
bool isFinalstateParticle(const HepMC::GenParticle *p)
edm::EDGetTokenT< edm::SimTrackContainer > edmSimTrackContainerToken_
std::map< std::string, TDirectory * > hdir
void printSimVtxs(const edm::Handle< edm::SimVertexContainer > &simVtxs)
simPrimaryVertex(double x1, double y1, double z1)
std::vector< int > finalstateParticles
std::vector< int > simTrackIndex
void printSimTrks(const edm::Handle< edm::SimTrackContainer > &simVtrks)
edm::ESHandle< ParticleDataTable > pdt
virtual void analyze(const edm::Event &, const edm::EventSetup &)
edm::EDGetTokenT< edm::HepMCProduct > edmHepMCProductToken_
const reco::Vertex * recVtx
bool isResonance(const HepMC::GenParticle *p)
std::map< std::string, TH1 * > h
std::vector< simPrimaryVertex > getSimPVs(const edm::Handle< edm::HepMCProduct > &evtMC, const std::string &suffix="")
std::vector< edm::EDGetTokenT< reco::VertexCollection > > recoVertexCollectionTokens_
edm::EDGetTokenT< reco::TrackCollection > recoTrackCollectionToken_
PrimaryVertexAnalyzer(const edm::ParameterSet &)
std::vector< std::string > suffixSample_
bool matchVertex(const simPrimaryVertex &vsim, const reco::Vertex &vrec)
edm::EDGetTokenT< edm::SimVertexContainer > edmSimVertexContainerToken_