2 #include "TPCExpecteddEdxCorrection.hxx" 3 #include "HighlandAnalysisUtils.hxx" 6 TPCExpecteddEdxCorrection::TPCExpecteddEdxCorrection() :
CorrectionBase() {
16 for (
unsigned int i = 0; i < spill.
Bunches.size(); i++) {
20 for (Int_t j = 0; j < nTPC; j++) {
21 for (
int k = 0; k < allTpcTracks[j]->
nTPCSegments; k++) {
46 tpcTrack->
Pullmu = pulls[0];
47 tpcTrack->
Pullp = pulls[2];
48 tpcTrack->
Pullpi = pulls[3];
Float_t dEdxexpMuon
Expected dE/dx for a muon, based on the reconstructed momentum.
Float_t Pullmu
Muon pull of the segment: (dEdxMeas-dEdxexpMuon)/dEdxSigmaMuon.
void Apply(AnaSpillC &spill)
Float_t dEdxexpProton
Expected dE/dx for a proton, based on the reconstructed momentum.
Float_t Pullpi
Pion pull of the segment: (dEdxMeas-dEdxexpPion)/dEdxSigmaPion.
std::vector< AnaBunchC * > Bunches
The reconstructed objects, split into timing bunches.
AnaTPCParticleB * TPCSegments[NMAXTPCS]
The TPC segments that contributed to this global track.
All corrections should be registered with the CorrectionManager.
Float_t dEdxexpPion
Expected dE/dx for a pion, based on the reconstructed momentum.
Float_t dEdxexpEle
Expected dE/dx for an electron, based on the reconstructed momentum.
int nTPCSegments
How many TPC tracks are associated with this track.
const AnaParticleB * Original
Float_t dEdxSigmaKaon
Expected error on the dE/dx measurement, for the proton hypothesis.
Float_t dEdxMeas
dE/dx as measured by the TPC.
Representation of a global track.
Float_t ComputeTPCPull(const AnaTPCParticleB &track, const std::string &particle)
Function to recompute the pull for a TPC track segment.
Representation of a TPC segment of a global track.
Float_t Pullk
Kaon pull of the segment: (dEdxMeas-dEdxexpPion)/dEdxSigmaKaon.
Float_t Pullp
Proton pull of the segment: (dEdxMeas-dEdxexpProton)/dEdxSigmaProton.
Float_t ExpectedTPCdEdx(const AnaTPCParticleB &track, const std::string &particle)
Float_t Pullele
Electron pull of the segment: (dEdxMeas-dEdxexpEle)/dEdxSigmaEle.
Representation of a TPC segment of a global track.
int GetAllTracksUsingDet(const AnaBunchB &bunch, SubDetId::SubDetEnum det, AnaTrackB *selTracks[])
Float_t dEdxexpKaon
Expected dE/dx for a proton, based on the reconstructed momentum.