src
PhysicsTools
Utilities
interface
DecomposeProduct.h
Go to the documentation of this file.
1
#ifndef PhysicsTools_Utilities_DecomposeProduct_h
2
#define PhysicsTools_Utilities_DecomposeProduct_h
3
#include "
PhysicsTools/Utilities/interface/Product.h
"
4
5
namespace
funct
{
6
7
template
<
typename
A,
typename
B>
8
struct
DecomposeProduct
{};
9
10
template
<
typename
A>
11
struct
DecomposeProduct
<
A
,
A
> {
12
inline
static
const
A
&
get
(
const
A
&
a
) {
return
a
; }
13
};
14
15
template
<
typename
A,
typename
B>
16
struct
DecomposeProduct
<
ProductStruct
<
A
,
B
>,
A
> {
17
inline
static
const
A
&
get
(
const
ProductStruct<A, B>
&
_
) {
return
_
._1; }
18
};
19
20
template
<
typename
A,
typename
B>
21
struct
DecomposeProduct
<
ProductStruct
<
A
,
B
>,
B
> {
22
inline
static
const
B
&
get
(
const
ProductStruct<A, B>
&
_
) {
return
_
._2; }
23
};
24
25
}
// namespace funct
26
27
#endif
funct
Definition:
Abs.h:5
crabWrapper._
_
Definition:
crabWrapper.py:19
Product.h
funct::DecomposeProduct
Definition:
DecomposeProduct.h:8
funct::B
TEMPL(T2) struct Divides B
Definition:
Factorize.h:24
funct::ProductStruct
Definition:
Product.h:6
a
double a
Definition:
hdecay.h:121
funct::A
A
Definition:
Factorize.h:45
Generated for CMSSW Reference Manual by
1.8.14