ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/LJMet/Utils/src/CheckEventContent.cc
(Generate patch)

Comparing UserCode/LJMet/Utils/src/CheckEventContent.cc (file contents):
Revision 1.3 by kukartse, Thu Nov 5 17:47:29 2009 UTC vs.
Revision 1.4 by kukartse, Wed Nov 11 00:22:27 2009 UTC

# Line 139 | Line 139 | CheckEventContent::analyze(const edm::Ev
139        << "No beam spot available in the event \n";
140    }
141    cout << beamSpot.x0() << "   " << beamSpot.y0() << "   " << beamSpot.z0() << std::endl;
142 +  cout << "beamSpot.BeamWidth X,Y: " << beamSpot.BeamWidthX() << ",    " << beamSpot.BeamWidthY() << std::endl;
143    //
144    //_____ check PAT electrons _______________________________________________
145    //
# Line 149 | Line 150 | CheckEventContent::analyze(const edm::Ev
150    cout << "electron collection size: "<< electron_coll_size << endl;
151    if (electron_coll_size>0){
152      cout << "Robust tight electron selector: " << (*electrons)[0].electronID("eidRobustTight") << std::endl;
153 +    /*
154      double _pt = (*electrons)[0].pt();
155      double _eta = (*electrons)[0].eta();
156      double _d0 = (*electrons)[0].dB();
# Line 156 | Line 158 | CheckEventContent::analyze(const edm::Ev
158      cout << "PAT d0= " << _d0 << std::endl;
159      //
160      //_____ check that there is a track
159    /*
161      reco::TrackRef _track = (*electrons)[0].track();
162      if(_track.isNull()){
163        cout << "there is no pat::electron::track()" << endl;
# Line 172 | Line 173 | CheckEventContent::analyze(const edm::Ev
173        cout << "there is a pat::electron::gsfTrack()" << endl;
174      }
175      */
176 <    reco::GsfTrackRef _gsfTrack = (*electrons)[0].gsfTrack();
176 >    const pat::Electron & ele = (*electrons)[0];
177 >    //reco::GsfTrackRef _gsfTrack = ele.gsfTrack();
178      //
179      //_____ check isolation
180        cout << "Isolation info is valid..." << endl;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines