Skip to content
Snippets Groups Projects
Commit 8b48dfe2 authored by Wojciech Krupa's avatar Wojciech Krupa :anger_right:
Browse files

implementation of mainteiners suggestions

parent 63818812
No related branches found
No related tags found
No related merge requests found
Pipeline #10206472 failed
...@@ -22,7 +22,6 @@ ...@@ -22,7 +22,6 @@
#include "Kernel/LHCbID.h" #include "Kernel/LHCbID.h"
#include "Kernel/UTNames.h" #include "Kernel/UTNames.h"
#include "LHCbAlgs/Consumer.h" #include "LHCbAlgs/Consumer.h"
#include "TMath.h"
#include "TrackKernel/TrackFunctors.h" #include "TrackKernel/TrackFunctors.h"
#include "TrackMonitorTupleBase.h" #include "TrackMonitorTupleBase.h"
#include "UTDAQ/UTDAQHelper.h" #include "UTDAQ/UTDAQHelper.h"
...@@ -47,8 +46,8 @@ class Mutable { ...@@ -47,8 +46,8 @@ class Mutable {
mutable T m_t; mutable T m_t;
public: public:
template <typename... Args, typename = std::enable_if_t<std::is_constructible_v<T, Args...>>> template <typename... Args> requires std::is_constructible_v<T,Args...>
Mutable( Args&&... args ) : m_t{ std::forward<Args>( args )... } {} Mutable( Args&&... args ) : m_t{ std::forward<Args>(args)... } {}
template <typename Arg> template <typename Arg>
decltype( auto ) operator[]( Arg&& arg ) const { decltype( auto ) operator[]( Arg&& arg ) const {
...@@ -72,8 +71,8 @@ namespace { ...@@ -72,8 +71,8 @@ namespace {
return [=]( const LHCb::Track* track ) { return track->type() == atype; }; return [=]( const LHCb::Track* track ) { return track->type() == atype; };
}; };
auto TrackBackwardPredicate = []() { return [=]( const LHCb::Track* track ) { return track->isVeloBackward(); }; }; auto TrackBackwardPredicate = []( const LHCb::Track* track ) { return track->isVeloBackward(); };
auto TrackForwardPredicate = []() { return [=]( const LHCb::Track* track ) { return !track->isVeloBackward(); }; }; auto TrackForwardPredicate = []() { return [=]( const LHCb::Track* track ) { return !track->isVeloBackward(); }; };
auto TrackVeloSidePredicate = []( int asign ) { auto TrackVeloSidePredicate = []( int asign ) {
...@@ -284,12 +283,9 @@ void UTGlobalEffMon<TFitResult, TNode>::operator()( LHCb::Track::Range const& tr ...@@ -284,12 +283,9 @@ void UTGlobalEffMon<TFitResult, TNode>::operator()( LHCb::Track::Range const& tr
unsigned int nlay = 0; unsigned int nlay = 0;
if ( _tr2ut0 != -1 ) { if ( _tr2ut0 != -1 ) {
++nlay; ++nlay;
bool inner = false;
UInt_t _mo = ( _tr2ut0 >> 10 ) & 7; UInt_t _mo = ( _tr2ut0 >> 10 ) & 7;
UInt_t _st = ( _tr2ut0 >> 14 ) & 15; UInt_t _st = ( _tr2ut0 >> 14 ) & 15;
if ( _st == 0 ) { bool inner = ( _st == 0 ) && ( _mo == 3 || _mo == 4 );
if ( _mo == 3 || _mo == 4 ) { inner = true; }
}
if ( inner ) { if ( inner ) {
++m_h_residual_inner[_tr2utr0]; ++m_h_residual_inner[_tr2utr0];
++m_h_residualpull_inner[_tr2utchi0]; ++m_h_residualpull_inner[_tr2utchi0];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment