Skip to content

Commit

Permalink
?
Browse files Browse the repository at this point in the history
  • Loading branch information
VanyaBelyaev committed Aug 5, 2024
1 parent d9654b9 commit d03cd6a
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 40 deletions.
2 changes: 1 addition & 1 deletion .aux/test_with_lcg
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ CMTCONFIG=$2
source /cvmfs/sft.cern.ch/lcg/views/${LCG}/${CMTCONFIG}/setup.sh
source build/INSTALL/thisostap.sh
cd build
ctest -N && cmake .. -DCMAKE_INSTALL_PREFIX=./INSTALL/ && ctest -j8 --output-on-failure
ctest -N && cmake .. -DCMAKE_INSTALL_PREFIX=./INSTALL/ && ctest -R roc -j8 --output-on-failure

34 changes: 17 additions & 17 deletions source/include/Ostap/MatrixUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ namespace Ostap
* @date 2006-05-24
*/
template <class T, unsigned int D>
inline size_t
inline std::size_t
setToScalar
( ROOT::Math::SVector<T,D>& m , const T& value = T() )
{
Expand Down Expand Up @@ -195,7 +195,7 @@ namespace Ostap
* @date 2006-05-24
*/
template <class T, unsigned int D1, unsigned int D2, class R>
inline size_t
inline std::size_t
setToScalar
( ROOT::Math::SMatrix<T,D1,D2,R>& m , const T& value = T() )
{
Expand All @@ -222,7 +222,7 @@ namespace Ostap
* @date 2006-05-24
*/
template <class T, unsigned int D, class R>
inline size_t
inline std::size_t
setToUnit
( ROOT::Math::SMatrix<T,D,D,R>& m , const T& value = T(1) )
{
Expand Down Expand Up @@ -255,7 +255,7 @@ namespace Ostap
* @date 2006-05-24
*/
template <class T, unsigned int D1, unsigned int D2, class R>
inline size_t
inline std::size_t
scale
( ROOT::Math::SMatrix<T,D1,D2,R>& m , const T& value )
{
Expand All @@ -282,7 +282,7 @@ namespace Ostap
* @date 2006-05-24
*/
template <class T, unsigned int D>
inline size_t
inline std::size_t
scale
( ROOT::Math::SVector<T,D>& m , const T& value )
{
Expand Down Expand Up @@ -876,17 +876,17 @@ namespace Ostap
* const Ostap::Matrix4x4 matrix = ... ;
*
* // number of NULL elements:
* const size_t nulls =
* const std::size_t nulls =
* Ostap::Math::count_if ( matrix ,
* std::bind2nd( std::equal_to<double>() , 0.0 ) ) ;
*
* // number of elements in excess of 100.0
* const size_t large =
* const std::size_t large =
* Ostap::Math::count_if ( matrix ,
* std::bind2nd( std::greater<double>() , 100.0 ) ) ;
*
* // number of elements which are less then 0.01 in absolute value
* const size_t small =
* const std::size_t small =
* Ostap::Math::count_if ( matrix ,
* std::bind2nd( _AbsCompare<double>() , 0.01 ) ) ;
*
Expand All @@ -900,7 +900,7 @@ namespace Ostap
* @date 2006-04-24
*/
template <class T, unsigned int D1, unsigned int D2, class R, class P>
inline size_t
inline std::size_t
count_if
( const ROOT::Math::SMatrix<T,D1,D2,R>& m , P pred )
{ return std::count_if ( m.begin() , m.end() , pred ) ; }
Expand All @@ -912,17 +912,17 @@ namespace Ostap
* const Ostap::SymMatrix4x4 matrix = ... ;
*
* // number of NULL elements:
* const size_t nulls =
* const std::size_t nulls =
* Ostap::Math::count_if ( matrix ,
* std::bind2nd( std::equal_to<double>() , 0.0 ) ) ;
*
* // number of elements in excess of 100.0
* const size_t large =
* const std::size_t large =
* Ostap::Math::count_if ( matrix ,
* std::bind2nd( std::greater<double>() , 100.0 ) ) ;
*
* // number of elements which are less then 0.01 in absolute value
* const size_t small =
* const std::size_t small =
* Ostap::Math::count_if ( matrix ,
* std::bind2nd( Ostap::Math::_AbsCompare<double>() , 0.01 ) ) ;
*
Expand All @@ -940,11 +940,11 @@ namespace Ostap
* @date 2006-04-24
*/
template <class T, unsigned int D, class P>
inline size_t
inline std::size_t
count_if
( const ROOT::Math::SMatrix<T,D,D,ROOT::Math::MatRepSym<T,D> >& m , P pred )
{
size_t result = 0 ;
std::size_t result = 0 ;
for ( unsigned int i = 0 ; i < D ; ++i )
{
if ( pred ( m ( i , i ) ) ) { result += 1 ; }
Expand All @@ -965,7 +965,7 @@ namespace Ostap
* const Ostap::SymMatrix3x3& covariance = v->covMatrix() ;
*
* // count number of VERY small (and negative) diagonal elements:
* const size_t bad =
* const std::size_t bad =
* Ostap::Math::cound_diagonal( covariance ,
* std::bind2nd( std::less<double>() , 0.01 * Ostap::Units::micrometer ) ;
* if ( 0 != bad )
Expand All @@ -982,11 +982,11 @@ namespace Ostap
* @date 2006-04-24
*/
template <class T, unsigned int D, class R, class P>
inline size_t
inline std::size_t
count_diagonal
( const ROOT::Math::SMatrix<T,D,D,R>& m , P pred )
{
size_t result = 0 ;
std::size_t result = 0 ;
for ( unsigned int i = 0 ; i < D ; ++i )
{ if ( pred ( m ( i , i ) ) ) { result += 1 ; } }
return result ;
Expand Down
20 changes: 10 additions & 10 deletions source/include/Ostap/Tensors.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ namespace Ostap
*
* Delta delta ;
*
* const size_t i = ... ;
* const size_t j = ... ;
* const std::size_t i = ... ;
* const std::size_t j = ... ;
*
* int ij = delta( i , j ) ;
*
Expand All @@ -91,12 +91,12 @@ namespace Ostap
// ====================================================================
/// Kroneker delta
inline int delta
( const size_t i ,
const size_t j ) const { return i == j ; }
( const std::size_t i ,
const std::size_t j ) const { return i == j ; }
/// Kroneker delta (functional form)
inline int operator()
( const size_t i ,
const size_t j ) const { return i == j ; }
( const std::size_t i ,
const std::size_t j ) const { return i == j ; }
// ====================================================================
} ;
// ======================================================================
Expand Down Expand Up @@ -166,12 +166,12 @@ namespace Ostap
// ====================================================================
/// the only one important function: get the metric
inline int operator ()
( const size_t i ,
const size_t j ) const { return g( i, j ) ; }
( const std::size_t i ,
const std::size_t j ) const { return g( i, j ) ; }
/// the only one important function: get the metric
inline int g
( const size_t i ,
const size_t j ) const
( const std::size_t i ,
const std::size_t j ) const
{
return
( i != j ) ? 0 :
Expand Down
12 changes: 6 additions & 6 deletions source/include/Ostap/ValueWithError.h
Original file line number Diff line number Diff line change
Expand Up @@ -482,17 +482,17 @@ namespace Ostap
* @return the binomial efficiency
*/
ValueWithError binomEff
( const size_t n_success ,
const size_t N_total ) ;
( const std::size_t n_success ,
const std::size_t N_total ) ;
// ========================================================================
/** evaluate the binomial efficiency interval using Wilson's prescription
* @param n_success (INPUT) number of 'success'
* @param N_total (INPUT) total number
* @return the binomial efficiency
*/
ValueWithError wilsonEff
( const size_t n_success ,
const size_t N_total ) ;
( const std::size_t n_success ,
const std::size_t N_total ) ;
// ========================================================================
/** evaluate the binomial efficiency interval
* using Agresti-Coull's prescription
Expand All @@ -501,8 +501,8 @@ namespace Ostap
* @return the binomial efficiency
*/
ValueWithError agrestiCoullEff
( const size_t n_success ,
const size_t N_total ) ;
( const std::size_t n_success ,
const std::size_t N_total ) ;
// ========================================================================
/** simple evaluation of efficiency from statistically independend
* "exclusive" samples "accepted" and "rejected"
Expand Down
12 changes: 6 additions & 6 deletions source/src/ValueWithError.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -865,8 +865,8 @@ Ostap::Math::ValueWithError Ostap::Math::abs
*/
// ============================================================================
Ostap::Math::ValueWithError Ostap::Math::binomEff
( const size_t n ,
const size_t N )
( const std::size_t n ,
const std::size_t N )
{
if ( n > N ) { return binomEff ( N , n ) ; }
else if ( 0 == N ) { return ValueWithError ( 1 , 1 ) ; }
Expand All @@ -887,8 +887,8 @@ Ostap::Math::ValueWithError Ostap::Math::binomEff
*/
// ============================================================================
Ostap::Math::ValueWithError Ostap::Math::wilsonEff
( const size_t n ,
const size_t N )
( const std::size_t n ,
const std::size_t N )
{
//
if ( n > N ) { return wilsonEff ( N , n ) ; }
Expand Down Expand Up @@ -919,8 +919,8 @@ Ostap::Math::ValueWithError Ostap::Math::wilsonEff
*/
// ============================================================================
Ostap::Math::ValueWithError Ostap::Math::agrestiCoullEff
( const size_t n ,
const size_t N )
( const std::size_t n ,
const std::size_t N )
{
//
if ( n > N ) { return wilsonEff ( N , n ) ; }
Expand Down

0 comments on commit d03cd6a

Please sign in to comment.