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

Comparing UserCode/ShallowTools/plugins/ShallowTrackClustersProducer.cc (file contents):
Revision 1.6 by bbetchar, Tue Aug 11 14:07:09 2009 UTC vs.
Revision 1.7 by bbetchar, Wed Sep 2 12:05:33 2009 UTC

# Line 59 | Line 59 | ShallowTrackClustersProducer::ShallowTra
59    produces <std::vector<float> >       ( Prefix + "driftx"        + Suffix );
60    produces <std::vector<float> >       ( Prefix + "drifty"        + Suffix );
61    produces <std::vector<float> >       ( Prefix + "driftz"        + Suffix );
62 +  produces <std::vector<float> >       ( Prefix + "globalZofunitlocalY" + Suffix );            
63   }
64  
65   void ShallowTrackClustersProducer::
# Line 98 | Line 99 | produce(edm::Event& iEvent, const edm::E
99    std::auto_ptr<std::vector<float> >  driftx        ( new std::vector<float>(size,  -10000  ));
100    std::auto_ptr<std::vector<float> >  drifty        ( new std::vector<float>(size,  -10000  ));
101    std::auto_ptr<std::vector<float> >  driftz        ( new std::vector<float>(size,  -10000  ));
102 +  std::auto_ptr<std::vector<float> >  globalZofunitlocalY ( new std::vector<float>(size, -1000));
103  
104    edm::ESHandle<TrackerGeometry> theTrackerGeometry;         iSetup.get<TrackerDigiGeometryRecord>().get( theTrackerGeometry );  
105    edm::ESHandle<MagneticField> magfield;                     iSetup.get<IdealMagneticFieldRecord>().get(magfield);                    
# Line 158 | Line 160 | produce(edm::Event& iEvent, const edm::E
160          driftx->at(i)       = drift.x();
161          drifty->at(i)       = drift.y();
162          driftz->at(i)       = drift.z();
163 +        globalZofunitlocalY->at(i) = (theStripDet->toGlobal(LocalVector(0,1,0))).z();
164        }
165      }
166    }
# Line 191 | Line 194 | produce(edm::Event& iEvent, const edm::E
194    iEvent.put(rhmerr,      Prefix + "rhmerr"      + Suffix );  
195    iEvent.put(ubstrip,     Prefix + "ubstrip"     + Suffix );  
196    iEvent.put(ubmerr,      Prefix + "ubmerr"      + Suffix );  
197 <  iEvent.put( driftx,        Prefix + "driftx"        );
198 <  iEvent.put( drifty,        Prefix + "drifty"        );
199 <  iEvent.put( driftz,        Prefix + "driftz"        );
197 >  iEvent.put( driftx,     Prefix + "driftx"      + Suffix );
198 >  iEvent.put( drifty,     Prefix + "drifty"      + Suffix );
199 >  iEvent.put( driftz,     Prefix + "driftz"      + Suffix );
200 >  iEvent.put( globalZofunitlocalY, Prefix + "globalZofunitlocalY" + Suffix );
201   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines