97 float dphirescaled2(0);
107 deta->Fill(deta1, weight);
110 dphi->Fill(dphi2*electron.trackParticle()->charge(), weight);
115 if(!electron.trackParticle())
return;
116 trackqoverp = electron.trackParticle()->qOverP();
118 if(electron.caloCluster()){
119 const double energy = electron.caloCluster()->e();
120 eoverp=std::abs(trackqoverp)*energy;
121 EoverP->Fill(eoverp, weight);
126 double refittedTrack_LMqoverp =
127 electron.trackParticle()->charge() / std::sqrt(std::pow(electron.trackParticle()->parameterPX(
index), 2) +
128 std::pow(electron.trackParticle()->parameterPY(
index), 2) +
129 std::pow(electron.trackParticle()->parameterPZ(
index), 2));
131 dpOverp = 1 - trackqoverp/(refittedTrack_LMqoverp);
141 eProbHT->Fill(eprobht, weight);
146 float totalTRTratio= (numTotalTRTHits != 0) ?
float(numTotalTRTHighThresholdHits)/float(numTotalTRTHits) : 0;
150 trt_total->Fill(numTotalTRTHits, weight);
151 trt_ht_total->Fill(numTotalTRTHighThresholdHits, weight);
152 trtratio->Fill(electron.trackParticle()->eta(),totalTRTratio, weight);
156 d0->Fill(electron.trackParticle()->d0(), weight);
157 z0->Fill(electron.trackParticle()->z0(), weight);
std::vector< double > m_d0sigRange
void Set_d0sig_nBins(unsigned d0sig_nBins)
std::string m_sParticleType
void Set_d0sig_Bins(const std::vector< double > &d0sigRange)
std::vector< double > m_d0Range
std::vector< double > m_z0Range
TrackPlots(PlotBase *pParent, const std::string &sDir, std::string sParticleType)
void Set_z0_Bins(const std::vector< double > &z0Range)
void Set_d0_Bins(const std::vector< double > &d0Range)
void Set_d0_nBins(unsigned d0_nBins)
void fill(const xAOD::Electron &electron, const xAOD::EventInfo &eventInfo)
virtual void initializePlots()
void Set_z0_nBins(unsigned z0_nBins)
TH1D * Book1D(const std::string &name, const std::string &labels, int nBins, float start, float end, bool prependDir=true)
Book a TH1D histogram.
PlotBase(PlotBase *parent, const std::string &sDir)
TH2F * Book2D(const std::string &name, const std::string &labels, int nBinsX, float startX, float endX, int nBinsY, float startY, float endY, bool prependDir=true)
Book a TH2F histogram.
float beamPosSigmaY() const
The width of the beam spot in the Y direction.
float beamPosSigmaXY() const
The beam spot shape's X-Y correlation.
float beamSpotWeight() const
Weight for beam spot size reweighting.
float beamPosSigmaX() const
The width of the beam spot in the X direction.
uint8_t RetrieveHitInfo(const xAOD::Electron &el, xAOD::SummaryType info, uint8_t defaultval)
@ deltaPhiRescaled2
difference between the cluster phi (second sampling) and the phi of the track extrapolated to the sec...
@ deltaPhi2
difference between the cluster phi (second sampling) and the phi of the track extrapolated to the sec...
@ deltaEta1
difference between the cluster eta (first sampling) and the eta of the track extrapolated to the firs...
double d0significance(const xAOD::TrackParticle *tp, double d0_uncert_beam_spot_2)
EventInfo_v1 EventInfo
Definition of the latest event info version.
@ numberOfTRTHighThresholdOutliers
number of TRT high threshold outliers (only xenon counted) [unit8_t].
@ numberOfTRTXenonHits
number of TRT hits on track in straws with xenon [unit8_t].
@ numberOfTRTHits
number of TRT hits [unit8_t].
@ eProbabilityHT
Electron probability from High Threshold (HT) information [float].
@ numberOfSCTHits
number of hits in SCT [unit8_t].
@ numberOfInnermostPixelLayerHits
these are the hits in the 0th pixel barrel layer
@ numberOfPixelHits
these are the pixel hits, including the b-layer [unit8_t].
@ numberOfTRTHighThresholdHits
number of TRT hits which pass the high threshold (only xenon counted) [unit8_t].
@ numberOfTRTOutliers
number of TRT outliers [unit8_t].
Electron_v1 Electron
Definition of the current "egamma version".
@ LastMeasurement
Parameter defined at the position of the last measurement.