ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/ShallowTools/plugins/ShallowSimTracksProducer.cc
(Generate patch)

Comparing UserCode/ShallowTools/plugins/ShallowSimTracksProducer.cc (file contents):
Revision 1.1 by bbetchar, Thu Jun 11 16:09:15 2009 UTC vs.
Revision 1.2 by bbetchar, Fri Jul 10 16:57:49 2009 UTC

# Line 24 | Line 24 | ShallowSimTracksProducer::ShallowSimTrac
24    produces <std::vector<double> >       ( Prefix + "theta"     + Suffix );
25    produces <std::vector<double> >       ( Prefix + "phi"       + Suffix );
26    produces <std::vector<double> >       ( Prefix + "eta"       + Suffix );
27 +  produces <std::vector<double> >       ( Prefix + "qoverp"    + Suffix );
28    produces <std::vector<double> >       ( Prefix + "vx"        + Suffix );
29    produces <std::vector<double> >       ( Prefix + "vy"        + Suffix );
30    produces <std::vector<double> >       ( Prefix + "vz"        + Suffix );
# Line 48 | Line 49 | produce(edm::Event& event, const edm::Ev
49    std::auto_ptr<std::vector<double> >   eta          ( new std::vector<double>  (size,-1000));
50    std::auto_ptr<std::vector<double> >   dxy          ( new std::vector<double>  (size,-1000));
51    std::auto_ptr<std::vector<double> >   dsz          ( new std::vector<double>  (size,-1000));
52 +  std::auto_ptr<std::vector<double> >   qoverp       ( new std::vector<double>  (size,-1000));
53    std::auto_ptr<std::vector<double> >   vx           ( new std::vector<double>  (size,-1000));
54    std::auto_ptr<std::vector<double> >   vy           ( new std::vector<double>  (size,-1000));
55    std::auto_ptr<std::vector<double> >   vz           ( new std::vector<double>  (size,-1000));
# Line 71 | Line 73 | produce(edm::Event& event, const edm::Ev
73        theta->at(i) = tparticle->theta() ;
74        phi->at(i)   = tparticle->phi()   ;
75        eta->at(i)   = tparticle->eta()   ;
76 +      qoverp->at(i)= tparticle->charge()/tparticle->p();
77  
78        const TrackingVertex* tvertex = tparticle->parentVertex().get();
79        vx->at(i) = tvertex->position().x();
# Line 87 | Line 90 | produce(edm::Event& event, const edm::Ev
90    event.put(  theta    ,Prefix + "theta"     + Suffix );
91    event.put(  phi      ,Prefix + "phi"       + Suffix );
92    event.put(  eta      ,Prefix + "eta"       + Suffix );
93 +  event.put(  qoverp   ,Prefix + "qoverp"    + Suffix );
94    event.put(  vx       ,Prefix + "vx"        + Suffix );
95    event.put(  vy       ,Prefix + "vy"        + Suffix );
96    event.put(  vz       ,Prefix + "vz"        + Suffix );

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines