1 #include "FlipKinematicsCorrection.hxx" 2 #include "ToFSenseCorrector.hxx" 3 #include "CutUtils.hxx" 7 #include "AnaRecPackManager.hxx" 25 for (UInt_t i = 0; i < spill.
Bunches.size(); i++) {
27 for (UInt_t j = 0; j < bunch->
Particles.size(); j++) {
34 if (!IsRelevantTrack(*track))
continue;
38 if (!tpcTrack)
continue;
40 if (!cutUtils::TPCTrackQualityCut(*tpcTrack))
continue;
46 ParticleId::GetParticle(track->
ReconPDG), AnaRecPackManager::kBwd))
51 std::cout <<
" WARNING! FlipKinematicsCorrection is run w/o highlandRecPack usage. \n" 52 " It is highly recommended to use RecPack to restore possible fit failures of the \n" 53 " global recon re-fits with opposite track sense hypotheis assumes (end to start) " << std::endl;
Representation of a global track.
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 MomentumFlip
Momentum for the main PID hypothesis and reverse sense.
static ToFTopology GetToFTopology(const AnaTrackB &track)
SubDetEnum
Enumeration of all detector systems and subdetectors.
Representation of a global track.
Float_t MomentumEnd
The reconstructed momentum of the particle, at the end position.
void Apply(AnaSpillC &spill)
std::vector< AnaParticleB * > Particles
Representation of a TPC segment of a global track.
AnaParticleB * GetSegmentWithMostNodesInClosestTpc(const AnaTrackB &track)
Combined function to address NuMu selection needs as efficiently as possible - gets the TPC segment w...
Int_t ReconPDG
PDG of the most probable particle hypothesis used at reconstruction level.
Float_t PositionEnd[4]
The reconstructed end position of the particle.
bool IsRelevantTrack(const AnaTrackB &track) const