Belle II Software
release-05-01-25
Weight.h
1
/**************************************************************************
2
* BASF2 (Belle Analysis Framework 2) *
3
* Copyright(C) 2015 - Belle II Collaboration *
4
* *
5
* Author: The Belle II Collaboration *
6
* Contributors: Oliver Frost *
7
* *
8
* This software is provided "as is" without any warranty. *
9
**************************************************************************/
10
#pragma once
11
12
#include <tracking/trackFindingCDC/utilities/FunctorTag.h>
13
14
namespace
Belle2
{
19
namespace
TrackFindingCDC {
20
22
using
Weight = double;
23
25
struct
GetWeight {
27
operator
FunctorTag();
28
30
template
<
class
T,
class
SFINAE = decltype(&T::getWeight)>
31
Weight
operator()
(
const
T& t)
const
32
{
33
return
t.getWeight();
34
}
35
};
36
}
38
}
Belle2::TrackFindingCDC::GetWeight::operator()
Weight operator()(const T &t) const
Returns the weight of an object.
Definition:
Weight.h:39
Belle2
Abstract base class for different kinds of events.
Definition:
MillepedeAlgorithm.h:19
tracking
trackFindingCDC
numerics
include
Weight.h
Generated on Fri Nov 5 2021 04:03:50 for Belle II Software by
1.8.17