CMS 3D CMS Logo

DecomposePower.h
Go to the documentation of this file.
1 #ifndef PhysicsTools_Utilities_DecomposePower_h
2 #define PhysicsTools_Utilities_DecomposePower_h
5 
6 namespace funct {
7  template <typename A, typename B>
8  struct DecomposePower {
10  inline static const A& getBase(const type& _) { return _._1; }
11  inline static const B& getExp(const type& _) { return _._2; }
12  };
13 
14  template <typename A>
15  struct DecomposePower<A, Numerical<1> > {
16  typedef A type;
17  inline static const A& getBase(const type& _) { return _; }
18  inline static Numerical<1> getExp(const type& _) { return num<1>(); }
19  };
20 
21 } // namespace funct
22 
23 #endif
funct::DecomposePower::getExp
static const B & getExp(const type &_)
Definition: DecomposePower.h:11
funct::DecomposePower< A, Numerical< 1 > >::getExp
static Numerical< 1 > getExp(const type &_)
Definition: DecomposePower.h:18
funct::B
TEMPL(T2) struct Divides B
Definition: Factorize.h:24
crabWrapper._
_
Definition: crabWrapper.py:19
Power.h
funct::DecomposePower< A, Numerical< 1 > >::type
A type
Definition: DecomposePower.h:16
funct::DecomposePower< A, Numerical< 1 > >::getBase
static const A & getBase(const type &_)
Definition: DecomposePower.h:17
Numerical.h
funct::PowerStruct
Definition: Power.h:7
funct::DecomposePower::getBase
static const A & getBase(const type &_)
Definition: DecomposePower.h:10
A
funct::DecomposePower::type
PowerStruct< A, B > type
Definition: DecomposePower.h:9
funct::DecomposePower
Definition: DecomposePower.h:8
funct::Numerical
Definition: Numerical.h:7
funct
Definition: Abs.h:5