26 using namespace isodeposit;
47 src_( cfg.getParameter<
InputTag>(
"src" ) ),
48 beamSpot_(cfg.getParameter<
InputTag>(
"beamSpot" ) ),
49 primaryVertices_(cfg.getParameter<
InputTag>(
"primaryVertices" ) ),
50 zGenParticlesMatch_(cfg.getParameter<
InputTag>(
"zGenParticlesMatch" ) ),
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 auto_ptr<vector<pat::CompositeCandidate> > dimuonColl(
new vector<pat::CompositeCandidate> () );
82 for (
unsigned int i = 0;
i< dimuons->size();++
i){
88 float trueMass,truePt,trueEta,truePhi,trueY;
115 dimuonColl->push_back(dimuon);
119 evt.
put( dimuonColl);
InputTag zGenParticlesMatch_
Analysis-level particle class.
virtual float mass() const =0
mass
virtual float eta() const =0
momentum pseudorapidity
#define DEFINE_FWK_MODULE(type)
virtual float phi() const =0
momentum azimuthal angle
ZMuMuUserDataOneTrack(const edm::ParameterSet &)
virtual double rapidity() const =0
rapidity
bool isNonnull() const
Checks for non-null.
virtual float pt() const =0
transverse momentum
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
void addUserFloat(const std::string &label, float data)
Set user-defined float.
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
XYZVectorD XYZVector
spatial vector with cartesian internal representation
InputTag primaryVertices_
void produce(edm::Event &, const edm::EventSetup &) override