1 #include "MomRangeCorrection.hxx" 2 #include "CutUtils.hxx" 7 #include "AnaRecPackManager.hxx" 23 for (UInt_t i = 0; i < spill.
Bunches.size(); i++) {
25 for (UInt_t j = 0; j < bunch->
Particles.size(); j++) {
31 if (!IsRelevantTrack(*track))
continue;
36 if (ND::tman().GetMomentumFromRangeLinear(*track, mom_range, ParticleId::kMuon))
45 bool MomRangeCorrection::IsRelevantTrack(
const AnaTrackB& track)
const{
51 if (cutUtils::TrackQualityCut(track))
return false;
Float_t PositionStart[4]
The reconstructed start position of the particle.
std::vector< AnaBunchC * > Bunches
The reconstructed objects, split into timing bunches.
static bool GetDetectorUsed(unsigned long BitField, SubDetId::SubDetEnum det)
Method to see if a certain subdetector or subdetector system is used.
All corrections should be registered with the CorrectionManager.
Float_t RangeMomentumMuon
Momentum by range calculated with muon hypothesis.
void Apply(AnaSpillC &spill)
SubDetEnum
Enumeration of all detector systems and subdetectors.
Representation of a global track.
bool InDetVolume(SubDetId::SubDetEnum det, const Float_t *pos)
std::vector< AnaParticleB * > Particles
Float_t PositionEnd[4]
The reconstructed end position of the particle.