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.38 by bendavid, Mon Nov 2 22:54:03 2009 UTC vs.
Revision 1.51 by sixie, Wed Apr 4 21:00:15 2012 UTC

# Line 33 | Line 33 | namespace mithep
33          fHcalDepth1TowerSumEtDr03(0), fHcalDepth2TowerSumEtDr03(0),
34          fEcalRecHitSumEtDr03(0), fTrackIsolation(0), fPassLooseID(0),
35          fPassTightID(0), fIDLikelihood(0), fPIn(0), fPOut(0), fFracSharedHits(0),
36 <        fMva(0), fIsEnergyScaleCorrected(0), fIsMomentumCorrected(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 >        fD0PVUB(0), fD0PVUBErr(0), fIp3dPVUB(0), fIp3dPVUBErr(0),
41 >        fD0PVUBBS(0), fD0PVUBBSErr(0), fIp3dPVUBBS(0), fIp3dPVUBBSErr(0),
42 >        fD0PVUBCkf(0), fD0PVUBCkfErr(0), fIp3dPVUBCkf(0), fIp3dPVUBCkfErr(0),
43 >        fD0PVUBBSCkf(0), fD0PVUBBSCkfErr(0), fIp3dPVUBBSCkf(0), fIp3dPVUBBSCkfErr(0),
44 >        fGsfPVCompatibility(0), fGsfPVBSCompatibility(0),
45 >        fGsfPVCompatibilityMatched(0), fGsfPVBSCompatibilityMatched(0),
46 >        fConvPartnerDCotTheta(0), fConvPartnerDist(0), fConvPartnerRadius(0),
47 >        fPFChargedHadronIso(0), fPFNeutralHadronIso(0), fPFPhotonIso(0),
48 >        fConvFlag(0), fIsEnergyScaleCorrected(0), fIsMomentumCorrected(0),
49          fClassification(0), fIsEB(), fIsEE(0), fIsEBEEGap(0), fIsEBEtaGap(0),
50          fIsEBPhiGap(0), fIsEEDeeGap(0), fIsEERingGap(0),
51 <        fIsEcalDriven(0), fIsTrackerDriven(0) {}
51 >        fIsEcalDriven(0), fIsTrackerDriven(0), fMatchesVertexConversion(0) {}
52  
53 <      const Track         *BestTrk()                const;
54 <      Double_t             CaloIsolation()          const { return fCaloIsolation;       } // *DEPRECATED*
55 <      Int_t                Classification()         const { return fClassification;      }
56 <      Double_t             CovEtaEta()              const { return fCovEtaEta;           }
57 <      Double_t             CoviEtaiEta()            const { return fCoviEtaiEta;         }
58 <      Double_t             DeltaEtaSuperClusterTrackAtVtx() const
59 <                             { return fDeltaEtaSuperClTrkAtVtx; }
60 <      Double_t             DeltaEtaSeedClusterTrackAtCalo() const
61 <                             { return fDeltaEtaSeedClTrkAtCalo; }
62 <      Double_t             DeltaPhiSuperClusterTrackAtVtx() const
63 <                             { return fDeltaPhiSuperClTrkAtVtx; }
64 <      Double_t             DeltaPhiSeedClusterTrackAtCalo() const
65 <                             { return fDeltaPhiSeedClTrkAtCalo; }
66 <      Double_t             E15()                    const { return fE15;                }
67 <      Double_t             E25Max()                 const { return fE25Max;             }
68 <      Double_t             E55()                    const { return fE55;                }
69 <      Double_t             ESuperClusterOverP()     const { return fESuperClusterOverP;            }
70 <      Double_t             ESeedClusterOverPout()   const { return fESeedClusterOverPout;          }
71 <      Double_t             ESeedClusterOverPIn()    const;
72 <      Double_t             FBrem()                  const { return fFBrem;                         }
73 <      Double_t             FBremOld()               const { return (PIn() - POut())/PIn();         }
74 <      Double_t             FracSharedHits()         const { return fFracSharedHits;                }
75 <      const Track         *GsfTrk()                 const { return fGsfTrackRef.Obj();             }
76 <      Double_t             HadronicOverEm()         const { return fHadronicOverEm;                }
77 <      Double_t             HcalDepth1OverEcal()     const { return fHcalDepth1OverEcal;            }
78 <      Double_t             HcalDepth2OverEcal()     const { return fHcalDepth2OverEcal;            }
79 <      Bool_t               HasGsfTrk()              const { return fGsfTrackRef.IsValid();         }
80 <      Bool_t               HasTrackerTrk()          const { return fTrackerTrackRef.IsValid();     }
81 <      Bool_t               HasSuperCluster()        const { return fSuperClusterRef.IsValid();     }
82 <      Double_t             HcalIsolation()          const { return fHcalJurassicIsolation;         } // *DEPRECATED*
83 <      Double_t             IDLikelihood()           const { return fIDLikelihood;                  }
84 <      Bool_t               IsEnergyScaleCorrected() const { return fIsEnergyScaleCorrected;        }
85 <      Bool_t               IsMomentumCorrected()    const { return fIsMomentumCorrected;           }
86 <      Bool_t               IsEB()                   const { return fIsEB;                          }
87 <      Bool_t               IsEE()                   const { return fIsEE;                          }
88 <      Bool_t               IsEBEEGap()              const { return fIsEBEEGap;                     }
89 <      Bool_t               IsEBEtaGap()             const { return fIsEBEtaGap;                    }
90 <      Bool_t               IsEBPhiGap()             const { return fIsEBPhiGap;                    }
91 <      Bool_t               IsEEDeeGap()             const { return fIsEEDeeGap;                    }
92 <      Bool_t               IsEERingGap()            const { return fIsEERingGap;                   }
93 <      Bool_t               IsEcalDriven()           const { return fIsEcalDriven;                  }
94 <      Bool_t               IsTrackerDriven()        const { return fIsTrackerDriven;               }
95 <      Double_t             Mva()                    const { return fMva;                           }
96 <      Double_t             NumberOfClusters()       const { return fNumberOfClusters;              }
97 <      EObjType             ObjType()                const { return kElectron;                      }
98 <      Double_t             PassLooseID()            const { return fPassLooseID;                   }
99 <      Double_t             PassTightID()            const { return fPassTightID;                   }
100 <      Double_t             PIn()                    const { return fPIn;                           }
101 <      Double_t             POut()                   const { return fPOut;                          }
102 <      const SuperCluster  *SCluster()               const { return fSuperClusterRef.Obj();         }
103 <      Double_t             ScPixCharge()            const { return fScPixCharge;                   }
104 <      
105 <      Double_t             EcalRecHitIsoDr04()      const { return fEcalJurassicIsolation;         }
106 <      Double_t             HcalTowerSumEtDr04()     const { return HcalDepth1TowerSumEtDr04() +
107 <                                                                   HcalDepth2TowerSumEtDr04();     }
108 <      Double_t             HcalDepth1TowerSumEtDr04() const { return fHcalDepth1TowerSumEtDr04;    }
109 <      Double_t             HcalDepth2TowerSumEtDr04() const { return fHcalDepth2TowerSumEtDr04;    }
110 <      Double_t             TrackIsolationDr04()     const { return fTrackIsolationDr04;            }
111 <      Double_t             EcalRecHitIsoDr03()      const { return fEcalRecHitSumEtDr03;           }
112 <      Double_t             HcalTowerSumEtDr03()     const { return fCaloTowerIsolation;            }
113 <      Double_t             HcalDepth1TowerSumEtDr03() const { return fHcalDepth1TowerSumEtDr03;    }
114 <      Double_t             HcalDepth2TowerSumEtDr03() const { return fHcalDepth2TowerSumEtDr03;    }
115 <      Double_t             TrackIsolationDr03()     const { return fTrackIsolation;                }
116 <      
117 <      
118 <      void                 SetCharge(Char_t x)                    { fCharge = x;                   }
119 <      void                 SetScPixCharge(Char_t x)               { fScPixCharge = x;              }
120 <      void                 SetClassification(Int_t x)             { fClassification = x;           }
121 <      void                 SetCovEtaEta(Double_t CovEtaEta)       { fCovEtaEta = CovEtaEta;        }
122 <      void                 SetCoviEtaiEta(Double_t CoviEtaiEta)   { fCoviEtaiEta = CoviEtaiEta;    }
53 >      const Track         *BestTrk()                     const;
54 >      Double_t             D0PV()                        const { return fD0PV; }
55 >      Double_t             D0PVErr()                     const { return fD0PVErr; }
56 >      Double_t             D0PVSignificance()            const { return fD0PV/fD0PVErr; }
57 >      Double_t             Ip3dPV()                      const { return fIp3dPV; }
58 >      Double_t             Ip3dPVErr()                   const { return fIp3dPVErr; }
59 >      Double_t             Ip3dPVSignificance()          const { return fIp3dPV/fIp3dPVErr; }
60 >      Double_t             D0PVBS()                      const { return fD0PVBS; }
61 >      Double_t             D0PVBSErr()                   const { return fD0PVBSErr; }
62 >      Double_t             D0PVBSSignificance()          const { return fD0PVBS/fD0PVBSErr; }
63 >      Double_t             Ip3dPVBS()                    const { return fIp3dPVBS; }
64 >      Double_t             Ip3dPVBSErr()                 const { return fIp3dPVBSErr; }
65 >      Double_t             Ip3dPVBSSignificance()        const { return fIp3dPVBS/fIp3dPVBSErr; }
66 >      Double_t             D0PVCkf()                     const { return fD0PVCkf; }
67 >      Double_t             D0PVCkfErr()                  const { return fD0PVCkfErr; }
68 >      Double_t             D0PVCkfSignificance()         const { return fD0PVCkf/fD0PVCkfErr; }
69 >      Double_t             Ip3dPVCkf()                   const { return fIp3dPVCkf; }
70 >      Double_t             Ip3dPVCkfErr()                const { return fIp3dPVCkfErr; }
71 >      Double_t             Ip3dPVCkfSignificance()       const { return fIp3dPVCkf/fIp3dPVCkfErr; }
72 >      Double_t             D0PVBSCkf()                   const { return fD0PVBSCkf; }
73 >      Double_t             D0PVBSCkfErr()                const { return fD0PVBSCkfErr; }
74 >      Double_t             D0PVBSCkfSignificance()       const { return fD0PVBSCkf/fD0PVBSCkfErr; }
75 >      Double_t             Ip3dPVBSCkf()                 const { return fIp3dPVBSCkf; }
76 >      Double_t             Ip3dPVBSCkfErr()              const { return fIp3dPVBSCkfErr; }
77 >      Double_t             Ip3dPVBSCkfSignificance()     const { return fIp3dPVBSCkf/fIp3dPVBSCkfErr; }
78 >      Double_t             D0PVUB()                      const { return fD0PVUB; }
79 >      Double_t             D0PVUBErr()                   const { return fD0PVUBErr; }
80 >      Double_t             D0PVUBSignificance()          const { return fD0PVUB/fD0PVUBErr; }
81 >      Double_t             Ip3dPVUB()                    const { return fIp3dPVUB; }
82 >      Double_t             Ip3dPVUBErr()                 const { return fIp3dPVUBErr; }
83 >      Double_t             Ip3dPVUBSignificance()        const { return fIp3dPVUB/fIp3dPVUBErr; }
84 >      Double_t             D0PVUBBS()                    const { return fD0PVUBBS; }
85 >      Double_t             D0PVUBBSErr()                 const { return fD0PVUBBSErr; }
86 >      Double_t             D0PVUBBSSignificance()        const { return fD0PVUBBS/fD0PVUBBSErr; }
87 >      Double_t             Ip3dPVUBBS()                  const { return fIp3dPVUBBS; }
88 >      Double_t             Ip3dPVUBBSErr()               const { return fIp3dPVUBBSErr; }
89 >      Double_t             Ip3dPVUBBSSignificance()      const { return fIp3dPVUBBS/fIp3dPVUBBSErr; }
90 >      Double_t             D0PVUBCkf()                   const { return fD0PVUBCkf; }
91 >      Double_t             D0PVUBCkfErr()                const { return fD0PVUBCkfErr; }
92 >      Double_t             D0PVUBCkfSignificance()       const { return fD0PVUBCkf/fD0PVUBCkfErr; }
93 >      Double_t             Ip3dPVUBCkf()                 const { return fIp3dPVUBCkf; }
94 >      Double_t             Ip3dPVUBCkfErr()              const { return fIp3dPVUBCkfErr; }
95 >      Double_t             Ip3dPVUBCkfSignificance()     const { return fIp3dPVUBCkf/fIp3dPVUBCkfErr; }
96 >      Double_t             D0PVUBBSCkf()                 const { return fD0PVUBBSCkf; }
97 >      Double_t             D0PVUBBSCkfErr()              const { return fD0PVUBBSCkfErr; }
98 >      Double_t             D0PVUBBSCkfSignificance()     const { return fD0PVUBBSCkf/fD0PVUBBSCkfErr; }
99 >      Double_t             Ip3dPVUBBSCkf()               const { return fIp3dPVUBBSCkf; }
100 >      Double_t             Ip3dPVUBBSCkfErr()            const { return fIp3dPVUBBSCkfErr; }
101 >      Double_t             Ip3dPVUBBSCkfSignificance()   const { return fIp3dPVUBBSCkf/fIp3dPVUBBSCkfErr; }
102 >      Double_t             GsfPVCompatibility()          const { return fGsfPVCompatibility; }
103 >      Double_t             GsfPVBSCompatibility()        const { return fGsfPVBSCompatibility; }
104 >      Double_t             GsfPVCompatibilityMatched()   const { return fGsfPVCompatibilityMatched; }
105 >      Double_t             GsfPVBSCompatibilityMatched() const { return fGsfPVBSCompatibilityMatched; }
106 >      Double_t             ConvPartnerDCotTheta()        const { return fConvPartnerDCotTheta; }
107 >      Double_t             ConvPartnerDist()             const { return fConvPartnerDist; }
108 >      Double_t             ConvPartnerRadius()           const { return fConvPartnerRadius; }
109 >      Int_t                ConvFlag()                    const { return fConvFlag; }
110 >      Double_t             CaloIsolation()               const { return fCaloIsolation; } // *DEPRECATED*
111 >      Int_t                Classification()              const { return fClassification; }
112 >      Double_t             CovEtaEta()                   const { return fCovEtaEta; }
113 >      Double_t             CoviEtaiEta()                 const { return fCoviEtaiEta; }
114 >      Double_t             DeltaEtaSuperClusterTrackAtVtx() const { return fDeltaEtaSuperClTrkAtVtx; }
115 >      Double_t             DeltaEtaSeedClusterTrackAtCalo() const { return fDeltaEtaSeedClTrkAtCalo; }
116 >      Double_t             DeltaPhiSuperClusterTrackAtVtx() const { return fDeltaPhiSuperClTrkAtVtx; }
117 >      Double_t             DeltaPhiSeedClusterTrackAtCalo() const { return fDeltaPhiSeedClTrkAtCalo; }
118 >      Double_t             E15()                            const { return fE15; }
119 >      Double_t             E25Max()                         const { return fE25Max; }
120 >      Double_t             E55()                            const { return fE55; }
121 >      Double_t             ESuperClusterOverP()             const { return fESuperClusterOverP; }
122 >      Double_t             ESeedClusterOverPout()           const { return fESeedClusterOverPout; }
123 >      Double_t             EEleClusterOverPout()            const { return fEEleClusterOverPout; }
124 >      Double_t             ESeedClusterOverPIn()            const;
125 >      Double_t             FBrem()                          const { return fFBrem; }
126 >      Double_t             FBremOld()                       const { return (PIn() - POut())/PIn(); }
127 >      Double_t             FracSharedHits()                 const { return fFracSharedHits; }
128 >      const Track         *GsfTrk()                         const { return fGsfTrackRef.Obj(); }
129 >      Double_t             HadronicOverEm()                 const { return fHadronicOverEm; }
130 >      Double_t             HcalDepth1OverEcal()             const { return fHcalDepth1OverEcal; }
131 >      Double_t             HcalDepth2OverEcal()             const { return fHcalDepth2OverEcal; }
132 >      Bool_t               HasGsfTrk()                      const { return fGsfTrackRef.IsValid(); }
133 >      Bool_t               HasTrackerTrk()                  const { return fTrackerTrackRef.IsValid(); }
134 >      Bool_t               HasSuperCluster()                const { return fSuperClusterRef.IsValid(); }
135 >      Double_t             HcalIsolation()                  const { return fHcalJurassicIsolation; } // *DEPRECATED*
136 >      Double_t             IDLikelihood()                   const { return fIDLikelihood; }
137 >      Bool_t               IsEnergyScaleCorrected()         const { return fIsEnergyScaleCorrected; }
138 >      Bool_t               IsMomentumCorrected()            const { return fIsMomentumCorrected; }
139 >      Bool_t               IsEB()                           const { return fIsEB; }
140 >      Bool_t               IsEE()                           const { return fIsEE; }
141 >      Bool_t               IsEBEEGap()                      const { return fIsEBEEGap; }
142 >      Bool_t               IsEBEtaGap()                     const { return fIsEBEtaGap; }
143 >      Bool_t               IsEBPhiGap()                     const { return fIsEBPhiGap; }
144 >      Bool_t               IsEEDeeGap()                     const { return fIsEEDeeGap; }
145 >      Bool_t               IsEERingGap()                    const { return fIsEERingGap; }
146 >      Bool_t               IsEcalDriven()                   const { return fIsEcalDriven; }
147 >      Bool_t               IsTrackerDriven()                const { return fIsTrackerDriven; }
148 >      Double_t             Mva()                            const { return fMva; }
149 >      Double_t             NumberOfClusters()               const { return fNumberOfClusters; }
150 >      EObjType             ObjType()                        const { return kElectron; }
151 >      Double_t             PassLooseID()                    const { return fPassLooseID; }
152 >      Double_t             PassTightID()                    const { return fPassTightID; }
153 >      Double_t             PIn()                            const { return fPIn; }
154 >      Double_t             POut()                           const { return fPOut; }
155 >      const SuperCluster  *SCluster()                       const { return fSuperClusterRef.Obj(); }
156 >      Double_t             ScPixCharge()                    const { return fScPixCharge; }
157 >                                                            
158 >      Double_t             EcalRecHitIsoDr04()              const { return fEcalJurassicIsolation; }
159 >      Double_t             HcalTowerSumEtDr04()             const { return HcalDepth1TowerSumEtDr04() +
160 >                                                                   HcalDepth2TowerSumEtDr04(); }
161 >      Double_t             HcalDepth1TowerSumEtDr04()       const { return fHcalDepth1TowerSumEtDr04; }
162 >      Double_t             HcalDepth2TowerSumEtDr04()       const { return fHcalDepth2TowerSumEtDr04; }
163 >      Double_t             TrackIsolationDr04()             const { return fTrackIsolationDr04; }
164 >      Double_t             EcalRecHitIsoDr03()              const { return fEcalRecHitSumEtDr03; }
165 >      Double_t             HcalTowerSumEtDr03()             const { return fCaloTowerIsolation; }
166 >      Double_t             HcalDepth1TowerSumEtDr03()       const { return fHcalDepth1TowerSumEtDr03; }
167 >      Double_t             HcalDepth2TowerSumEtDr03()       const { return fHcalDepth2TowerSumEtDr03; }
168 >      Double_t             TrackIsolationDr03()             const { return fTrackIsolation; }
169 >      Double_t             PFChargedHadronIso()             const { return fPFChargedHadronIso; }
170 >      Double_t             PFNeutralHadronIso()             const { return fPFNeutralHadronIso; }
171 >      Double_t             PFPhotonIso()                    const { return fPFPhotonIso; }
172 >      Bool_t               MatchesVertexConversion()        const { return fMatchesVertexConversion; }
173 >      UInt_t               NAmbiguousGsfTracks()            const { return fAmbiguousGsfTracks.Entries(); }
174 >      Bool_t               HasAmbiguousGsfTrack(const Track *t) const { return fAmbiguousGsfTracks.HasObject(t); }
175 >      const Track         *AmbiguousGsfTrack(UInt_t i)      const { return fAmbiguousGsfTracks.At(i); }
176 >      Int_t                CTFTrkNLayersWithMeasurement()   const { return fCTFTrkNLayersWithMeasurement; }
177 >
178 >      void                 AddAmbiguousGsfTrack(const Track *t)          { fAmbiguousGsfTracks.Add(t); }
179 >      void                 SetCharge(Char_t x)                           { fCharge = x; ClearCharge(); }
180 >      void                 SetScPixCharge(Char_t x)                      { fScPixCharge = x; }
181 >      void                 SetD0PV(Double_t x)                           { fD0PV = x; }
182 >      void                 SetD0PVErr(Double_t x)                        { fD0PVErr = x; }
183 >      void                 SetIp3dPV(Double_t x)                         { fIp3dPV = x; }
184 >      void                 SetIp3dPVErr(Double_t x)                      { fIp3dPVErr = x; }
185 >      void                 SetD0PVBS(Double_t x)                         { fD0PVBS = x; }
186 >      void                 SetD0PVBSErr(Double_t x)                      { fD0PVBSErr = x; }
187 >      void                 SetIp3dPVBS(Double_t x)                       { fIp3dPVBS = x; }
188 >      void                 SetIp3dPVBSErr(Double_t x)                    { fIp3dPVBSErr = x; }
189 >      void                 SetD0PVCkf(Double_t x)                        { fD0PVCkf = x; }
190 >      void                 SetD0PVCkfErr(Double_t x)                     { fD0PVCkfErr = x; }
191 >      void                 SetIp3dPVCkf(Double_t x)                      { fIp3dPVCkf = x; }
192 >      void                 SetIp3dPVCkfErr(Double_t x)                   { fIp3dPVCkfErr = x; }
193 >      void                 SetD0PVBSCkf(Double_t x)                      { fD0PVBSCkf = x; }
194 >      void                 SetD0PVBSCkfErr(Double_t x)                   { fD0PVBSCkfErr = x; }
195 >      void                 SetIp3dPVBSCkf(Double_t x)                    { fIp3dPVBSCkf = x; }
196 >      void                 SetIp3dPVBSCkfErr(Double_t x)                 { fIp3dPVBSCkfErr = x; }
197 >      void                 SetD0PVUB(Double_t x)                         { fD0PVUB = x; }
198 >      void                 SetD0PVUBErr(Double_t x)                      { fD0PVUBErr = x; }
199 >      void                 SetIp3dPVUB(Double_t x)                       { fIp3dPVUB = x; }
200 >      void                 SetIp3dPVUBErr(Double_t x)                    { fIp3dPVUBErr = x; }
201 >      void                 SetD0PVUBBS(Double_t x)                       { fD0PVUBBS = x; }
202 >      void                 SetD0PVUBBSErr(Double_t x)                    { fD0PVUBBSErr = x; }
203 >      void                 SetIp3dPVUBBS(Double_t x)                     { fIp3dPVUBBS = x; }
204 >      void                 SetIp3dPVUBBSErr(Double_t x)                  { fIp3dPVUBBSErr = x; }
205 >      void                 SetD0PVUBCkf(Double_t x)                      { fD0PVUBCkf = x; }
206 >      void                 SetD0PVUBCkfErr(Double_t x)                   { fD0PVUBCkfErr = x; }
207 >      void                 SetIp3dPVUBCkf(Double_t x)                    { fIp3dPVUBCkf = x; }
208 >      void                 SetIp3dPVUBCkfErr(Double_t x)                 { fIp3dPVUBCkfErr = x; }
209 >      void                 SetD0PVUBBSCkf(Double_t x)                    { fD0PVUBBSCkf = x; }
210 >      void                 SetD0PVUBBSCkfErr(Double_t x)                 { fD0PVUBBSCkfErr = x; }
211 >      void                 SetIp3dPVUBBSCkf(Double_t x)                  { fIp3dPVUBBSCkf = x; }
212 >      void                 SetIp3dPVUBBSCkfErr(Double_t x)               { fIp3dPVUBBSCkfErr = x; }
213 >      void                 SetGsfPVCompatibility(Double_t x)             { fGsfPVCompatibility = x; }
214 >      void                 SetGsfPVBSCompatibility(Double_t x)           { fGsfPVBSCompatibility = x; }
215 >      void                 SetGsfPVCompatibilityMatched(Double_t x)      { fGsfPVCompatibilityMatched = x; }
216 >      void                 SetGsfPVBSCompatibilityMatched(Double_t x)    { fGsfPVBSCompatibilityMatched = x; }
217 >      void                 SetConvPartnerDCotTheta(Double_t x)           { fConvPartnerDCotTheta = x; }
218 >      void                 SetConvPartnerDist(Double_t x)                { fConvPartnerDist = x; }
219 >      void                 SetConvPartnerRadius(Double_t x)              { fConvPartnerRadius = x; }
220 >      void                 SetConvFlag(Int_t n)                          { fConvFlag = n; }
221 >      void                 SetClassification(Int_t x)                    { fClassification = x; }
222 >      void                 SetCovEtaEta(Double_t x)                      { fCovEtaEta = x; }
223 >      void                 SetCoviEtaiEta(Double_t x)                    { fCoviEtaiEta = x; }
224        void                 SetDeltaEtaSuperClusterTrackAtVtx(Double_t x)  
225 <                             { fDeltaEtaSuperClTrkAtVtx = x;   }
225 >                             { fDeltaEtaSuperClTrkAtVtx = x; }
226        void                 SetDeltaEtaSeedClusterTrackAtCalo(Double_t x)  
227 <                             { fDeltaEtaSeedClTrkAtCalo = x;   }
227 >                             { fDeltaEtaSeedClTrkAtCalo = x; }
228        void                 SetDeltaPhiSuperClusterTrackAtVtx(Double_t x)  
229 <                             { fDeltaPhiSuperClTrkAtVtx = x;   }
229 >                             { fDeltaPhiSuperClTrkAtVtx = x; }
230        void                 SetDeltaPhiSeedClusterTrackAtCalo(Double_t x)  
231 <                             { fDeltaPhiSeedClTrkAtCalo = x;   }
232 <      void                 SetE15(Double_t x)                     { fE15 = x;                      }
233 <      void                 SetE25Max(Double_t x)                  { fE25Max = x;                   }
234 <      void                 SetE55(Double_t x)                     { fE55 = x;                      }
235 <      void                 SetESeedClusterOverPout(Double_t x)    { fESeedClusterOverPout = x;     }
236 <      void                 SetESuperClusterOverP(Double_t x)      { fESuperClusterOverP = x;       }
237 <      void                 SetFBrem(Double_t x)                   { fFBrem = x;                    }
238 <      void                 SetFracSharedHits(Double_t x)          { fFracSharedHits = x;           }
231 >                             { fDeltaPhiSeedClTrkAtCalo = x; }
232 >      void                 SetE15(Double_t x)                     { fE15 = x; }
233 >      void                 SetE25Max(Double_t x)                  { fE25Max = x; }
234 >      void                 SetE55(Double_t x)                     { fE55 = x; }
235 >      void                 SetESeedClusterOverPout(Double_t x)    { fESeedClusterOverPout = x; }
236 >      void                 SetEEleClusterOverPout(Double_t x)     { fEEleClusterOverPout = x; }
237 >      void                 SetESuperClusterOverP(Double_t x)      { fESuperClusterOverP = x; }
238 >      void                 SetFBrem(Double_t x)                   { fFBrem = x; }
239 >      void                 SetFracSharedHits(Double_t x)          { fFracSharedHits = x; }
240        void                 SetGsfTrk(const Track* t)                    
241                               { fGsfTrackRef = t; ClearCharge(); }
242 <      void                 SetHadronicOverEm(Double_t x)          { fHadronicOverEm = x;           }
243 <      void                 SetHcalDepth1OverEcal(Double_t x)      { fHcalDepth1OverEcal = x;       }
244 <      void                 SetHcalDepth2OverEcal(Double_t x)      { fHcalDepth2OverEcal = x;       }
245 <      void                 SetIDLikelihood(Double_t likelihood)   { fIDLikelihood = likelihood;    }
246 <      void                 SetIsEnergyScaleCorrected(Bool_t x)    { fIsEnergyScaleCorrected = x;   }
247 <      void                 SetIsMomentumCorrected(Bool_t x)       { fIsMomentumCorrected = x;      }
248 <      void                 SetNumberOfClusters(Double_t x)        { fNumberOfClusters = x;         }
249 <      void                 SetPIn(Double_t PIn)                   { fPIn = PIn;                    }
250 <      void                 SetPOut(Double_t POut)                 { fPOut = POut;                  }
251 <      void                 SetPassLooseID(Double_t passLooseID)   { fPassLooseID = passLooseID;    }
252 <      void                 SetPassTightID(Double_t passTightID)   { fPassTightID = passTightID;    }
242 >      void                 SetHadronicOverEm(Double_t x)          { fHadronicOverEm = x; }
243 >      void                 SetHcalDepth1OverEcal(Double_t x)      { fHcalDepth1OverEcal = x; }
244 >      void                 SetHcalDepth2OverEcal(Double_t x)      { fHcalDepth2OverEcal = x; }
245 >      void                 SetIDLikelihood(Double_t x)            { fIDLikelihood = x; }
246 >      void                 SetIsEnergyScaleCorrected(Bool_t x)    { fIsEnergyScaleCorrected = x; }
247 >      void                 SetIsMomentumCorrected(Bool_t x)       { fIsMomentumCorrected = x; }
248 >      void                 SetNumberOfClusters(Double_t x)        { fNumberOfClusters = x; }
249 >      void                 SetPIn(Double_t pIn)                   { fPIn = pIn; }
250 >      void                 SetPOut(Double_t pOut)                 { fPOut = pOut; }
251 >      void                 SetPassLooseID(Double_t passLooseID)   { fPassLooseID = passLooseID; }
252 >      void                 SetPassTightID(Double_t passTightID)   { fPassTightID = passTightID; }
253        void                 SetPtEtaPhi(Double_t pt, Double_t eta, Double_t phi);
254        void                 SetSuperCluster(const SuperCluster* sc)
255                               { fSuperClusterRef = sc; }
256        void                 SetTrackerTrk(const Track* t)                
257                               { fTrackerTrackRef = t; ClearCharge(); }
258 <      void                 SetEcalRecHitIsoDr04(Double_t x)        { fEcalJurassicIsolation = x;    }
258 >      void                 SetConvPartnerTrk(const Track *t)
259 >                             { fConvPartnerTrackRef = t; }
260 >      void                 SetEcalRecHitIsoDr04(Double_t x)        { fEcalJurassicIsolation = x; }
261        void                 SetHcalDepth1TowerSumEtDr04(Double_t x) { fHcalDepth1TowerSumEtDr04 = x; }
262        void                 SetHcalDepth2TowerSumEtDr04(Double_t x) { fHcalDepth2TowerSumEtDr04 = x; }
263 <      void                 SetTrackIsolationDr04(Double_t x)       { fTrackIsolationDr04 = x;       }
264 <      void                 SetEcalRecHitIsoDr03(Double_t x)        { fEcalRecHitSumEtDr03 = x;      }
265 <      void                 SetHcalTowerSumEtDr03(Double_t x)       { fCaloTowerIsolation = x;       }
263 >      void                 SetTrackIsolationDr04(Double_t x)       { fTrackIsolationDr04 = x; }
264 >      void                 SetEcalRecHitIsoDr03(Double_t x)        { fEcalRecHitSumEtDr03 = x; }
265 >      void                 SetHcalTowerSumEtDr03(Double_t x)       { fCaloTowerIsolation = x; }
266        void                 SetHcalDepth1TowerSumEtDr03(Double_t x) { fHcalDepth1TowerSumEtDr03 = x; }
267        void                 SetHcalDepth2TowerSumEtDr03(Double_t x) { fHcalDepth2TowerSumEtDr03 = x; }
268 <      void                 SetTrackIsolationDr03(Double_t x)       { fTrackIsolation = x;   }
269 <      void                 SetMva(Double_t x)                      { fMva = x;              }
270 <      void                 SetIsEB(Bool_t b)                       { fIsEB = b;             }
271 <      void                 SetIsEE(Bool_t b)                       { fIsEE = b;             }
272 <      void                 SetIsEBEEGap(Bool_t b)                  { fIsEBEEGap = b;        }
273 <      void                 SetIsEBEtaGap(Bool_t b)                 { fIsEBEtaGap = b;       }
274 <      void                 SetIsEBPhiGap(Bool_t b)                 { fIsEBPhiGap = b;       }
275 <      void                 SetIsEEDeeGap(Bool_t b)                 { fIsEEDeeGap = b;       }
276 <      void                 SetIsEERingGap(Bool_t b)                { fIsEERingGap = b;      }
277 <      void                 SetIsEcalDriven(Bool_t b)               { fIsEcalDriven = b;     }
278 <      void                 SetIsTrackerDriven(Bool_t b)            { fIsTrackerDriven = b;  }
279 <      
268 >      void                 SetTrackIsolationDr03(Double_t x)       { fTrackIsolation = x; }
269 >      void                 SetPFChargedHadronIso(Double_t x)       { fPFChargedHadronIso = x; }
270 >      void                 SetPFNeutralHadronIso(Double_t x)       { fPFNeutralHadronIso = x; }
271 >      void                 SetPFPhotonIso(Double_t x)              { fPFPhotonIso = x; }
272 >      void                 SetMva(Double_t x)                      { fMva = x; }
273 >      void                 SetIsEB(Bool_t b)                       { fIsEB = b; }
274 >      void                 SetIsEE(Bool_t b)                       { fIsEE = b; }
275 >      void                 SetIsEBEEGap(Bool_t b)                  { fIsEBEEGap = b; }
276 >      void                 SetIsEBEtaGap(Bool_t b)                 { fIsEBEtaGap = b; }
277 >      void                 SetIsEBPhiGap(Bool_t b)                 { fIsEBPhiGap = b; }
278 >      void                 SetIsEEDeeGap(Bool_t b)                 { fIsEEDeeGap = b; }
279 >      void                 SetIsEERingGap(Bool_t b)                { fIsEERingGap = b; }
280 >      void                 SetIsEcalDriven(Bool_t b)               { fIsEcalDriven = b; }
281 >      void                 SetIsTrackerDriven(Bool_t b)            { fIsTrackerDriven = b; }
282 >      void                 SetMatchesVertexConversion(Bool_t b)    { fMatchesVertexConversion = b; }
283 >      void                 SetConversionXYZ(Double_t x, Double_t y, Double_t z)
284 >                                  { fConvPosition.SetXYZ(x,y,z); }
285 >      void                 SetCTFTrkNLayersWithMeasurement(Int_t x){ fCTFTrkNLayersWithMeasurement = x; }
286 >
287      
288 <      const Track         *TrackerTrk()            const { return fTrackerTrackRef.Obj();   }
289 <      const Track         *Trk()                   const { return BestTrk();                }
288 >      const Track         *TrackerTrk()            const { return fTrackerTrackRef.Obj(); }
289 >      const Track         *Trk()                   const { return BestTrk(); }
290 >      const Track         *ConvPartnerTrk()        const { return fConvPartnerTrackRef.Obj(); }
291 >
292 >      // Some structural tools
293 >      void                 Mark(UInt_t i=1)        const;
294  
295      protected:
296        Double_t             GetCharge()             const;
297 <      Double_t             GetMass()               const { return 0.51099892e-3;            }
297 >      Double_t             GetMass()               const { return 0.51099892e-3; }
298        void                 GetMom()                const;
299  
300        Vect3C               fMom;                       //stored three-momentum
# Line 175 | Line 302 | namespace mithep
302        Char_t               fScPixCharge;               //charge from supercluster-pixel matching
303        Ref<Track>           fGsfTrackRef;               //gsf track reference
304        Ref<Track>           fTrackerTrackRef;           //tracker track reference
305 +      Ref<Track>           fConvPartnerTrackRef;       //conversion partner track reference
306        Ref<SuperCluster>    fSuperClusterRef;           //reference to SuperCluster
307        Double32_t           fESuperClusterOverP;        //[0,0,14]super cluster e over p ratio
308        Double32_t           fESeedClusterOverPout;      //[0,0,14]seed cluster e over p mom
# Line 210 | Line 338 | namespace mithep
338        Double32_t           fPOut;                      //[0,0,14]momentum at ecal surface
339        Double32_t           fFracSharedHits;            //[0,0,14]fraction of shared hits btw gsf and std. track
340        Double32_t           fMva;                       //[0,0,14] pflow mva output
341 +      Double32_t           fD0PV;                      //[0,0,14]transverse impact parameter to signal PV (gsf track)
342 +      Double32_t           fD0PVErr;                   //[0,0,14]transverse impact parameter uncertainty to signal PV (gsf track)
343 +      Double32_t           fIp3dPV;                    //[0,0,14]3d impact parameter to signal PV (gsf track)
344 +      Double32_t           fIp3dPVErr;                 //[0,0,14]3d impact parameter uncertainty to signal PV (gsf track)
345 +      Double32_t           fD0PVBS;                    //[0,0,14]transverse impact parameter to signal PV w/ bs constraint (gsf track)
346 +      Double32_t           fD0PVBSErr;                 //[0,0,14]transverse impact parameter uncertainty to signal PV w/ bs constraint (gsf track)
347 +      Double32_t           fIp3dPVBS;                  //[0,0,14]3d impact parameter to signal PV w/ bs constraint (gsf track)
348 +      Double32_t           fIp3dPVBSErr;               //[0,0,14]3d impact parameter uncertainty to signal PV w/ bs constraint (gsf track)
349 +      Double32_t           fD0PVCkf;                      //[0,0,14]transverse impact parameter to signal PV (ckf track)
350 +      Double32_t           fD0PVCkfErr;                   //[0,0,14]transverse impact parameter uncertainty to signal PV (ckf track)
351 +      Double32_t           fIp3dPVCkf;                    //[0,0,14]3d impact parameter to signal PV (ckf track)
352 +      Double32_t           fIp3dPVCkfErr;                 //[0,0,14]3d impact parameter uncertainty to signal PV (ckf track)
353 +      Double32_t           fD0PVBSCkf;                    //[0,0,14]transverse impact parameter to signal PV w/ bs constraint (ckf track)
354 +      Double32_t           fD0PVBSCkfErr;                 //[0,0,14]transverse impact parameter uncertainty to signal PV w/ bs constraint (ckf track)
355 +      Double32_t           fIp3dPVBSCkf;                  //[0,0,14]3d impact parameter to signal PV w/ bs constraint (ckf track)
356 +      Double32_t           fIp3dPVBSCkfErr;               //[0,0,14]3d impact parameter uncertainty to signal PV w/ bs constraint (ckf track)
357 +      Double32_t           fD0PVUB;                      //[0,0,14]transverse impact parameter to signal PVUB (gsf track)
358 +      Double32_t           fD0PVUBErr;                   //[0,0,14]transverse impact parameter uncertainty to signal PVUB (gsf track)
359 +      Double32_t           fIp3dPVUB;                    //[0,0,14]3d impact parameter to signal PVUB (gsf track)
360 +      Double32_t           fIp3dPVUBErr;                 //[0,0,14]3d impact parameter uncertainty to signal PVUB (gsf track)
361 +      Double32_t           fD0PVUBBS;                    //[0,0,14]transverse impact parameter to signal PVUB w/ bs constraint (gsf track)
362 +      Double32_t           fD0PVUBBSErr;                 //[0,0,14]transverse impact parameter uncertainty to signal PVUB w/ bs constraint (gsf track)
363 +      Double32_t           fIp3dPVUBBS;                  //[0,0,14]3d impact parameter to signal PVUB w/ bs constraint (gsf track)
364 +      Double32_t           fIp3dPVUBBSErr;               //[0,0,14]3d impact parameter uncertainty to signal PVUB w/ bs constraint (gsf track)
365 +      Double32_t           fD0PVUBCkf;                      //[0,0,14]transverse impact parameter to signal PVUB (ckf track)
366 +      Double32_t           fD0PVUBCkfErr;                   //[0,0,14]transverse impact parameter uncertainty to signal PVUB (ckf track)
367 +      Double32_t           fIp3dPVUBCkf;                    //[0,0,14]3d impact parameter to signal PVUB (ckf track)
368 +      Double32_t           fIp3dPVUBCkfErr;                 //[0,0,14]3d impact parameter uncertainty to signal PVUB (ckf track)
369 +      Double32_t           fD0PVUBBSCkf;                    //[0,0,14]transverse impact parameter to signal PVUB w/ bs constraint (ckf track)
370 +      Double32_t           fD0PVUBBSCkfErr;                 //[0,0,14]transverse impact parameter uncertainty to signal PVUB w/ bs constraint (ckf track)
371 +      Double32_t           fIp3dPVUBBSCkf;                  //[0,0,14]3d impact parameter to signal PVUB w/ bs constraint (ckf track)
372 +      Double32_t           fIp3dPVUBBSCkfErr;               //[0,0,14]3d impact parameter uncertainty to signal PVUB w/ bs constraint (ckf track)
373 +      Double32_t           fGsfPVCompatibility;        //[0,0,14]gsf compatibility with signal PV
374 +      Double32_t           fGsfPVBSCompatibility;      //[0,0,14]gsf compatibility with signal PV w/ bs constraint
375 +      Double32_t           fGsfPVCompatibilityMatched; //[0,0,14]gsf compatibility with signal PV (matching ckf track excluded from vertex)
376 +      Double32_t           fGsfPVBSCompatibilityMatched; //[0,0,14]gsf compatibility with signal PV w/ bs constraint (matching ckf track excluded from vertex)
377 +      Double32_t           fConvPartnerDCotTheta;      //[0,0,14]delta cot theta to nearest conversion partner track
378 +      Double32_t           fConvPartnerDist;           //[0,0,14]distance in x-y plane to nearest conversion partner track
379 +      Double32_t           fConvPartnerRadius;         //[0,0,14]radius of helix intersection with conversion partner track
380 +      Double32_t           fPFChargedHadronIso;        //[0,0,14]pf isolation, charged hadrons
381 +      Double32_t           fPFNeutralHadronIso;        //[0,0,14]pf isolation, neutral hadrons
382 +      Double32_t           fPFPhotonIso;               //[0,0,14]pf isolation, photons
383 +      Int_t                fConvFlag;                  //conversion flag indicating which track combination was used
384 +      Vect3C               fConvPosition;
385        Bool_t               fIsEnergyScaleCorrected;    //class dependent escale correction
386        Bool_t               fIsMomentumCorrected;       //class dependent E-p combination
387        Int_t                fClassification;            //classification (see GsfElectron.h)
# Line 222 | Line 394 | namespace mithep
394        Bool_t               fIsEERingGap;               //is in EE ring gap
395        Bool_t               fIsEcalDriven;              //is std. egamma electron
396        Bool_t               fIsTrackerDriven;           //is pflow track-seeded electron
397 +      Bool_t               fMatchesVertexConversion;
398 +      RefArray<Track>      fAmbiguousGsfTracks;        //ambiguous gsf tracks for this electron
399 +      Double_t             fEEleClusterOverPout;       //energy of the electron cluster
400 +      Int_t                fCTFTrkNLayersWithMeasurement; //number of tracker layers from associated ctf trk
401  
402 <    ClassDef(Electron, 3) // Electron class
402 >    ClassDef(Electron, 13) // Electron class
403    };
404   }
405  
406   //--------------------------------------------------------------------------------------------------
407 + inline void mithep::Electron::Mark(UInt_t ib) const
408 + {
409 +  // mark myself
410 +  mithep::DataObject::Mark(ib);
411 +  // mark my dependencies if they are there
412 +  if (fSuperClusterRef.IsValid())
413 +    fSuperClusterRef.Obj()->Mark(ib);
414 +  if (fGsfTrackRef.IsValid())
415 +    fGsfTrackRef.Obj()->Mark(ib);
416 +  if (fTrackerTrackRef.IsValid())
417 +    fTrackerTrackRef.Obj()->Mark(ib);
418 +  if (fConvPartnerTrackRef.IsValid())
419 +    fConvPartnerTrackRef.Obj()->Mark(ib);
420 +  fAmbiguousGsfTracks.Mark(ib);
421 + }
422 +  
423 + //--------------------------------------------------------------------------------------------------
424   inline const mithep::Track *mithep::Electron::BestTrk() const
425   {
426    // Return "best" track.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines