26 using namespace isodeposit;
51 alpha_(cfg.getParameter<double>(
"alpha")),
52 beta_(cfg.getParameter<double>(
"beta")),
53 hltPath_(cfg.getParameter<
std::
string>(
"hltPath")) {
54 produces<vector<pat::CompositeCandidate> >();
63 std::cout <<
">>> No beam spot found !!!" << std::endl;
68 std::cout <<
">>> No primary vertices found !!!" << std::endl;
71 bool isMCMatchTrue =
false;
79 unique_ptr<vector<pat::CompositeCandidate> > dimuonColl(
new vector<pat::CompositeCandidate>());
81 for (
unsigned int i = 0;
i < dimuons->size(); ++
i) {
87 float trueMass, truePt, trueEta, truePhi, trueY;
113 dimuonColl->push_back(dimuon);
Analysis-level particle class.
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
ZMuMuUserDataOneTrack(const edm::ParameterSet &)
std::vector< Vertex > VertexCollection
collection of Vertex objects
void addUserFloat(const std::string &label, float data, const bool overwrite=false)
Set user-defined float.
EDGetTokenT< VertexCollection > primaryVerticesToken_
#define DEFINE_FWK_MODULE(type)
EDGetTokenT< BeamSpot > beamSpotToken_
EDGetTokenT< std::vector< reco::CompositeCandidate > > srcToken_
virtual double eta() const =0
momentum pseudorapidity
virtual double pt() const =0
transverse momentum
XYZVectorD XYZVector
spatial vector with cartesian internal representation
virtual double mass() const =0
mass
virtual double rapidity() const =0
rapidity
void produce(edm::Event &, const edm::EventSetup &) override
virtual double phi() const =0
momentum azimuthal angle