ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/DataTree/interface/Electron.h
(Generate patch)

Comparing UserCode/MitAna/DataTree/interface/Electron.h (file contents):
Revision 1.41 by bendavid, Sun May 23 21:09:38 2010 UTC vs.
Revision 1.46 by bendavid, Sun May 15 14:11:00 2011 UTC

# Line 35 | Line 35 | namespace mithep
35          fPassTightID(0), fIDLikelihood(0), fPIn(0), fPOut(0), fFracSharedHits(0),
36          fMva(0), fD0PV(0), fD0PVErr(0), fIp3dPV(0), fIp3dPVErr(0),
37          fD0PVBS(0), fD0PVBSErr(0), fIp3dPVBS(0), fIp3dPVBSErr(0),
38 +        fD0PVCkf(0), fD0PVCkfErr(0), fIp3dPVCkf(0), fIp3dPVCkfErr(0),
39 +        fD0PVBSCkf(0), fD0PVBSCkfErr(0), fIp3dPVBSCkf(0), fIp3dPVBSCkfErr(0),
40          fGsfPVCompatibility(0), fGsfPVBSCompatibility(0),
41          fGsfPVCompatibilityMatched(0), fGsfPVBSCompatibilityMatched(0),
42          fConvPartnerDCotTheta(0), fConvPartnerDist(0), fConvPartnerRadius(0),
43 <        fIsEnergyScaleCorrected(0), fIsMomentumCorrected(0),
43 >        fPFChargedHadronIso(0), fPFNeutralHadronIso(0), fPFPhotonIso(0),
44 >        fConvFlag(0), fIsEnergyScaleCorrected(0), fIsMomentumCorrected(0),
45          fClassification(0), fIsEB(), fIsEE(0), fIsEBEEGap(0), fIsEBEtaGap(0),
46          fIsEBPhiGap(0), fIsEEDeeGap(0), fIsEERingGap(0),
47 <        fIsEcalDriven(0), fIsTrackerDriven(0) {}
47 >        fIsEcalDriven(0), fIsTrackerDriven(0), fMatchesVertexConversion(0) {}
48  
49        const Track         *BestTrk()                const;
50        Double_t             D0PV()                   const { return fD0PV;                     }
# Line 56 | Line 59 | namespace mithep
59        Double_t             Ip3dPVBS()               const { return fIp3dPVBS;                 }
60        Double_t             Ip3dPVBSErr()            const { return fIp3dPVBSErr;              }
61        Double_t             Ip3dPVBSSignificance()   const { return fIp3dPVBS/fIp3dPVBSErr;    }
62 +      Double_t             D0PVCkf()                   const { return fD0PVCkf;                     }
63 +      Double_t             D0PVCkfErr()                const { return fD0PVCkfErr;                  }
64 +      Double_t             D0PVCkfSignificance()       const { return fD0PVCkf/fD0PVCkfErr;         }
65 +      Double_t             Ip3dPVCkf()                 const { return fIp3dPVCkf;                   }
66 +      Double_t             Ip3dPVCkfErr()              const { return fIp3dPVCkfErr;                }
67 +      Double_t             Ip3dPVCkfSignificance()     const { return fIp3dPVCkf/fIp3dPVCkfErr;     }
68 +      Double_t             D0PVBSCkf()                 const { return fD0PVBSCkf;                   }
69 +      Double_t             D0PVBSCkfErr()              const { return fD0PVBSCkfErr;                }
70 +      Double_t             D0PVBSCkfSignificance()     const { return fD0PVBSCkf/fD0PVBSCkfErr;     }
71 +      Double_t             Ip3dPVBSCkf()               const { return fIp3dPVBSCkf;                 }
72 +      Double_t             Ip3dPVBSCkfErr()            const { return fIp3dPVBSCkfErr;              }
73 +      Double_t             Ip3dPVBSCkfSignificance()   const { return fIp3dPVBSCkf/fIp3dPVBSCkfErr; }
74        Double_t             GsfPVCompatibility()     const { return fGsfPVCompatibility;       }
75        Double_t             GsfPVBSCompatibility()   const { return fGsfPVBSCompatibility;     }
76        Double_t             GsfPVCompatibilityMatched()     const { return fGsfPVCompatibilityMatched;       }
# Line 63 | Line 78 | namespace mithep
78        Double_t             ConvPartnerDCotTheta()   const { return fConvPartnerDCotTheta;     }
79        Double_t             ConvPartnerDist()        const { return fConvPartnerDist;          }
80        Double_t             ConvPartnerRadius()      const { return fConvPartnerRadius;        }
81 +      Int_t                ConvFlag()               const { return fConvFlag;            }
82        Double_t             CaloIsolation()          const { return fCaloIsolation;       } // *DEPRECATED*
83        Int_t                Classification()         const { return fClassification;      }
84        Double_t             CovEtaEta()              const { return fCovEtaEta;           }
# Line 125 | Line 141 | namespace mithep
141        Double_t             HcalDepth1TowerSumEtDr03() const { return fHcalDepth1TowerSumEtDr03;    }
142        Double_t             HcalDepth2TowerSumEtDr03() const { return fHcalDepth2TowerSumEtDr03;    }
143        Double_t             TrackIsolationDr03()     const { return fTrackIsolation;                }
144 +      Double_t             PFChargedHadronIso()      const { return fPFChargedHadronIso;           }
145 +      Double_t             PFNeutralHadronIso()      const { return fPFNeutralHadronIso;           }
146 +      Double_t             PFPhotonIso()             const { return fPFPhotonIso;                  }
147 +      Bool_t               MatchesVertexConversion() const { return fMatchesVertexConversion;      }
148 +      UInt_t               NAmbiguousGsfTracks()     const { return fAmbiguousGsfTracks.Entries();  }
149 +      Bool_t               HasAmbiguousGsfTrack(const Track *t) const { return fAmbiguousGsfTracks.HasObject(t); }
150 +      const Track         *AmbiguousGsfTrack(UInt_t i) const { return fAmbiguousGsfTracks.At(i);   }
151        
152 <      
152 >      void                 AddAmbiguousGsfTrack(const Track *t)   { fAmbiguousGsfTracks.Add(t);    }
153        void                 SetCharge(Char_t x)                    { fCharge = x; ClearCharge();    }
154        void                 SetScPixCharge(Char_t x)               { fScPixCharge = x;              }
155        void                 SetD0PV(Double_t x)                    { fD0PV = x;                     }
# Line 137 | Line 160 | namespace mithep
160        void                 SetD0PVBSErr(Double_t x)               { fD0PVBSErr = x;                }
161        void                 SetIp3dPVBS(Double_t x)                { fIp3dPVBS = x;                 }
162        void                 SetIp3dPVBSErr(Double_t x)             { fIp3dPVBSErr = x;              }
163 +      void                 SetD0PVCkf(Double_t x)                 { fD0PVCkf = x;                     }
164 +      void                 SetD0PVCkfErr(Double_t x)              { fD0PVCkfErr = x;                  }
165 +      void                 SetIp3dPVCkf(Double_t x)               { fIp3dPVCkf = x;                   }
166 +      void                 SetIp3dPVCkfErr(Double_t x)            { fIp3dPVCkfErr = x;                }
167 +      void                 SetD0PVBSCkf(Double_t x)               { fD0PVBSCkf = x;                   }
168 +      void                 SetD0PVBSCkfErr(Double_t x)            { fD0PVBSCkfErr = x;                }
169 +      void                 SetIp3dPVBSCkf(Double_t x)             { fIp3dPVBSCkf = x;                 }
170 +      void                 SetIp3dPVBSCkfErr(Double_t x)          { fIp3dPVBSCkfErr = x;              }
171        void                 SetGsfPVCompatibility(Double_t x)      { fGsfPVCompatibility = x;       }
172        void                 SetGsfPVBSCompatibility(Double_t x)    { fGsfPVBSCompatibility = x;     }
173        void                 SetGsfPVCompatibilityMatched(Double_t x)      { fGsfPVCompatibilityMatched = x;   }
# Line 144 | Line 175 | namespace mithep
175        void                 SetConvPartnerDCotTheta(Double_t x)    { fConvPartnerDCotTheta = x;     }
176        void                 SetConvPartnerDist(Double_t x)         { fConvPartnerDist = x;          }
177        void                 SetConvPartnerRadius(Double_t x)       { fConvPartnerRadius = x;        }
178 +      void                 SetConvFlag(Int_t n)                   { fConvFlag = n;                 }
179        void                 SetClassification(Int_t x)             { fClassification = x;           }
180        void                 SetCovEtaEta(Double_t CovEtaEta)       { fCovEtaEta = CovEtaEta;        }
181        void                 SetCoviEtaiEta(Double_t CoviEtaiEta)   { fCoviEtaiEta = CoviEtaiEta;    }
# Line 180 | Line 212 | namespace mithep
212                               { fSuperClusterRef = sc; }
213        void                 SetTrackerTrk(const Track* t)                
214                               { fTrackerTrackRef = t; ClearCharge(); }
215 +      void                 SetConvPartnerTrk(const Track *t)
216 +                             { fConvPartnerTrackRef = t; }
217        void                 SetEcalRecHitIsoDr04(Double_t x)        { fEcalJurassicIsolation = x;    }
218        void                 SetHcalDepth1TowerSumEtDr04(Double_t x) { fHcalDepth1TowerSumEtDr04 = x; }
219        void                 SetHcalDepth2TowerSumEtDr04(Double_t x) { fHcalDepth2TowerSumEtDr04 = x; }
# Line 189 | Line 223 | namespace mithep
223        void                 SetHcalDepth1TowerSumEtDr03(Double_t x) { fHcalDepth1TowerSumEtDr03 = x; }
224        void                 SetHcalDepth2TowerSumEtDr03(Double_t x) { fHcalDepth2TowerSumEtDr03 = x; }
225        void                 SetTrackIsolationDr03(Double_t x)       { fTrackIsolation = x;   }
226 +      void                 SetPFChargedHadronIso(Double_t x)       { fPFChargedHadronIso = x;       }
227 +      void                 SetPFNeutralHadronIso(Double_t x)       { fPFNeutralHadronIso = x;       }
228 +      void                 SetPFPhotonIso(Double_t x)              { fPFPhotonIso = x;              }
229        void                 SetMva(Double_t x)                      { fMva = x;              }
230        void                 SetIsEB(Bool_t b)                       { fIsEB = b;             }
231        void                 SetIsEE(Bool_t b)                       { fIsEE = b;             }
# Line 199 | Line 236 | namespace mithep
236        void                 SetIsEERingGap(Bool_t b)                { fIsEERingGap = b;      }
237        void                 SetIsEcalDriven(Bool_t b)               { fIsEcalDriven = b;     }
238        void                 SetIsTrackerDriven(Bool_t b)            { fIsTrackerDriven = b;  }
239 +      void                 SetMatchesVertexConversion(Bool_t b)    { fMatchesVertexConversion = b; }
240 +      void                 SetConversionXYZ(Double_t x, Double_t y, Double_t z)
241 +                                  { fConvPosition.SetXYZ(x,y,z); }
242        
243      
244        const Track         *TrackerTrk()            const { return fTrackerTrackRef.Obj();   }
245        const Track         *Trk()                   const { return BestTrk();                }
246 +      const Track         *ConvPartnerTrk()        const { return fConvPartnerTrackRef.Obj(); }
247  
248      protected:
249        Double_t             GetCharge()             const;
# Line 214 | Line 255 | namespace mithep
255        Char_t               fScPixCharge;               //charge from supercluster-pixel matching
256        Ref<Track>           fGsfTrackRef;               //gsf track reference
257        Ref<Track>           fTrackerTrackRef;           //tracker track reference
258 +      Ref<Track>           fConvPartnerTrackRef;       //conversion partner track reference
259        Ref<SuperCluster>    fSuperClusterRef;           //reference to SuperCluster
260        Double32_t           fESuperClusterOverP;        //[0,0,14]super cluster e over p ratio
261        Double32_t           fESeedClusterOverPout;      //[0,0,14]seed cluster e over p mom
# Line 249 | Line 291 | namespace mithep
291        Double32_t           fPOut;                      //[0,0,14]momentum at ecal surface
292        Double32_t           fFracSharedHits;            //[0,0,14]fraction of shared hits btw gsf and std. track
293        Double32_t           fMva;                       //[0,0,14] pflow mva output
294 <      Double32_t           fD0PV;                      //[0,0,14]transverse impact parameter to signal PV
295 <      Double32_t           fD0PVErr;                   //[0,0,14]transverse impact parameter uncertainty to signal PV
296 <      Double32_t           fIp3dPV;                    //[0,0,14]3d impact parameter to signal PV
297 <      Double32_t           fIp3dPVErr;                 //[0,0,14]3d impact parameter uncertainty to signal PV
298 <      Double32_t           fD0PVBS;                    //[0,0,14]transverse impact parameter to signal PV w/ bs constraint
299 <      Double32_t           fD0PVBSErr;                 //[0,0,14]transverse impact parameter uncertainty to signal PV w/ bs constraint
300 <      Double32_t           fIp3dPVBS;                  //[0,0,14]3d impact parameter to signal PV w/ bs constraint
301 <      Double32_t           fIp3dPVBSErr;               //[0,0,14]3d impact parameter uncertainty to signal PV w/ bs constraint
294 >      Double32_t           fD0PV;                      //[0,0,14]transverse impact parameter to signal PV (gsf track)
295 >      Double32_t           fD0PVErr;                   //[0,0,14]transverse impact parameter uncertainty to signal PV (gsf track)
296 >      Double32_t           fIp3dPV;                    //[0,0,14]3d impact parameter to signal PV (gsf track)
297 >      Double32_t           fIp3dPVErr;                 //[0,0,14]3d impact parameter uncertainty to signal PV (gsf track)
298 >      Double32_t           fD0PVBS;                    //[0,0,14]transverse impact parameter to signal PV w/ bs constraint (gsf track)
299 >      Double32_t           fD0PVBSErr;                 //[0,0,14]transverse impact parameter uncertainty to signal PV w/ bs constraint (gsf track)
300 >      Double32_t           fIp3dPVBS;                  //[0,0,14]3d impact parameter to signal PV w/ bs constraint (gsf track)
301 >      Double32_t           fIp3dPVBSErr;               //[0,0,14]3d impact parameter uncertainty to signal PV w/ bs constraint (gsf track)
302 >      Double32_t           fD0PVCkf;                      //[0,0,14]transverse impact parameter to signal PV (ckf track)
303 >      Double32_t           fD0PVCkfErr;                   //[0,0,14]transverse impact parameter uncertainty to signal PV (ckf track)
304 >      Double32_t           fIp3dPVCkf;                    //[0,0,14]3d impact parameter to signal PV (ckf track)
305 >      Double32_t           fIp3dPVCkfErr;                 //[0,0,14]3d impact parameter uncertainty to signal PV (ckf track)
306 >      Double32_t           fD0PVBSCkf;                    //[0,0,14]transverse impact parameter to signal PV w/ bs constraint (ckf track)
307 >      Double32_t           fD0PVBSCkfErr;                 //[0,0,14]transverse impact parameter uncertainty to signal PV w/ bs constraint (ckf track)
308 >      Double32_t           fIp3dPVBSCkf;                  //[0,0,14]3d impact parameter to signal PV w/ bs constraint (ckf track)
309 >      Double32_t           fIp3dPVBSCkfErr;               //[0,0,14]3d impact parameter uncertainty to signal PV w/ bs constraint (ckf track)
310        Double32_t           fGsfPVCompatibility;        //[0,0,14]gsf compatibility with signal PV
311        Double32_t           fGsfPVBSCompatibility;      //[0,0,14]gsf compatibility with signal PV w/ bs constraint
312        Double32_t           fGsfPVCompatibilityMatched; //[0,0,14]gsf compatibility with signal PV (matching ckf track excluded from vertex)
# Line 264 | Line 314 | namespace mithep
314        Double32_t           fConvPartnerDCotTheta;      //[0,0,14]delta cot theta to nearest conversion partner track
315        Double32_t           fConvPartnerDist;           //[0,0,14]distance in x-y plane to nearest conversion partner track
316        Double32_t           fConvPartnerRadius;         //[0,0,14]radius of helix intersection with conversion partner track
317 +      Double32_t           fPFChargedHadronIso;        //[0,0,14]pf isolation, charged hadrons
318 +      Double32_t           fPFNeutralHadronIso;        //[0,0,14]pf isolation, neutral hadrons
319 +      Double32_t           fPFPhotonIso;               //[0,0,14]pf isolation, photons
320 +      Int_t                fConvFlag;                  //conversion flag indicating which track combination was used
321 +      Vect3C               fConvPosition;
322        Bool_t               fIsEnergyScaleCorrected;    //class dependent escale correction
323        Bool_t               fIsMomentumCorrected;       //class dependent E-p combination
324        Int_t                fClassification;            //classification (see GsfElectron.h)
# Line 276 | Line 331 | namespace mithep
331        Bool_t               fIsEERingGap;               //is in EE ring gap
332        Bool_t               fIsEcalDriven;              //is std. egamma electron
333        Bool_t               fIsTrackerDriven;           //is pflow track-seeded electron
334 +      Bool_t               fMatchesVertexConversion;
335 +      RefArray<Track>      fAmbiguousGsfTracks;        //ambiguous gsf tracks for this electron
336  
337 <    ClassDef(Electron, 5) // Electron class
337 >    ClassDef(Electron, 11) // Electron class
338    };
339   }
340  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines