26 using namespace isodeposit;
54 alpha_(cfg.getParameter<double>(
"alpha") ),
55 beta_(cfg.getParameter<double>(
"beta") ),
56 hltPath_(cfg.getParameter<std::
string >(
"hltPath") ){
57 produces<vector<pat::CompositeCandidate> >();
66 std::cout <<
">>> No beam spot found !!!"<<std::endl;
71 std::cout <<
">>> No primary vertices found !!!"<<std::endl;
74 bool isMCMatchTrue=
false;
82 unique_ptr<vector<pat::CompositeCandidate> > dimuonColl(
new vector<pat::CompositeCandidate> () );
85 for (
unsigned int i = 0;
i< dimuons->size();++
i){
91 float trueMass,truePt,trueEta,truePhi,trueY;
118 dimuonColl->push_back(dimuon);
Analysis-level particle class.
beamSpotToken_(consumes< reco::BeamSpot >(iConfig.getUntrackedParameter< edm::InputTag >("beamSpot")))
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool isNonnull() const
Checks for non-null.
EDGetTokenT< GenParticleMatch > zGenParticlesMatchToken_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
virtual double pt() const =0
transverse momentum
#define DEFINE_FWK_MODULE(type)
virtual double mass() const =0
mass
ZMuMuUserDataOneTrack(const edm::ParameterSet &)
std::vector< Vertex > VertexCollection
collection of Vertex objects
virtual double rapidity() const =0
rapidity
void addUserFloat(const std::string &label, float data, const bool overwrite=false)
Set user-defined float.
EDGetTokenT< VertexCollection > primaryVerticesToken_
EDGetTokenT< BeamSpot > beamSpotToken_
EDGetTokenT< std::vector< reco::CompositeCandidate > > srcToken_
XYZVectorD XYZVector
spatial vector with cartesian internal representation
void produce(edm::Event &, const edm::EventSetup &) override
virtual double phi() const =0
momentum azimuthal angle
virtual double eta() const =0
momentum pseudorapidity