Skip to content
Snippets Groups Projects

WIP: fix MCLinking in TDR branch for LHCb::Tracks

Closed Renato Quagliani requested to merge TDR-rquaglia_fixhackMCLinking into TDR
Compare and
99 files
+ 3519
894
Compare changes
  • Side-by-side
  • Inline
Files
99
@@ -156,7 +156,7 @@ void CaloAlignmentNtp::operator()(const Vertices& verts, const ODIN& odin,
if( m_counterStat->isQuiet()) counter("2-selected protos")+=1;
// 3: Validate track
const auto track = proto->track();
auto track = proto->track();
if( !acceptTrack( track )) continue;
if( m_counterStat->isQuiet()) counter("3-selected tracks")+=1;
@@ -294,9 +294,9 @@ void CaloAlignmentNtp::operator()(const Vertices& verts, const ODIN& odin,
double bStCY=0;
if( hasBrem ){
auto bState = (LHCb::State*) track->stateAt(LHCb::State::Location::BegRich1);
auto bState = track->stateAt(LHCb::State::Location::BegRich1);
if( bState == nullptr ){
bState = track->states()[0];
bState = &track->firstState();
debug() << track->states();
Warning("BegRich1 state does not exists - used first state", StatusCode::SUCCESS).ignore();
}
Loading