26 using namespace isodeposit;
51 beamSpotToken_(consumes<
BeamSpot> (cfg.getParameter<
InputTag>(
"beamSpot" ) ) ),
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 auto_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);
122 evt.
put( dimuonColl);
Analysis-level particle class.
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
EDGetTokenT< VertexCollection > primaryVerticesToken_
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
void addUserFloat(const std::string &label, float data)
Set user-defined float.
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