CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Macros | Functions
Variables.h File Reference
#include "PhysicsTools/Utilities/interface/ParametricTrait.h"
#include <iostream>

Go to the source code of this file.

Macros

#define DEFINE_INT_VARIABLE(X, NAME)   DEFINE_VARIABLE_T(int, X, NAME)
 
#define DEFINE_VARIABLE(X, NAME)   DEFINE_VARIABLE_T(double, X, NAME)
 
#define DEFINE_VARIABLE_T(T, X, NAME)
 
#define IMPLEMENT_INT_VARIABLE(X)   IMPLEMENT_VARIABLE_T(int, X)
 
#define IMPLEMENT_VARIABLE(X)   IMPLEMENT_VARIABLE_T(double, X)
 
#define IMPLEMENT_VARIABLE_T(T, X)
 

Functions

 DEFINE_VARIABLE (DefaultVariable,"_")
 
 DEFINE_VARIABLE (X,"x")
 
 DEFINE_VARIABLE (Y,"y")
 
 DEFINE_VARIABLE (Z,"z")
 

Macro Definition Documentation

#define DEFINE_INT_VARIABLE (   X,
  NAME 
)    DEFINE_VARIABLE_T(int, X, NAME)

Definition at line 43 of file Variables.h.

#define DEFINE_VARIABLE (   X,
  NAME 
)    DEFINE_VARIABLE_T(double, X, NAME)

Definition at line 37 of file Variables.h.

#define DEFINE_VARIABLE_T (   T,
  X,
  NAME 
)
Value:
namespace funct { \
struct X { \
typedef T type; \
X() { } \
X(const T& x) { set(x); } \
inline operator T() const { return value; } \
inline T operator()() const { return value; } \
inline static const char* name() { static const char * name = NAME; return name; } \
inline X operator=(const T& x) { set(x); return *this; } \
inline static void set(const T& x) { value = x; } \
static T value; \
}; \
\
inline std::ostream& operator<<(std::ostream& cout, const funct::X &) \
{ return cout << funct::X::name(); } \
\
} \
\
struct __useless_ignoreme
static const bool value
Definition: Factorize.h:107
nocap nocap const skelname & operator=(const skelname &)
#define X(str)
Definition: MuonsGrabber.cc:49
#define NON_PARAMETRIC(FUN)
arg type
Definition: Factorize.h:37
#define private
Definition: FWFileEntry.h:18
tuple cout
Definition: gather_cfg.py:121
std::ostream & operator<<(std::ostream &cout, const Expression &e)
Definition: Expression.h:39
Definition: DDAxes.h:10
long double T
void set(const std::string &name, int value)
set the flag, with a run-time name

Definition at line 6 of file Variables.h.

#define IMPLEMENT_INT_VARIABLE (   X)    IMPLEMENT_VARIABLE_T(int, X)

Definition at line 46 of file Variables.h.

#define IMPLEMENT_VARIABLE (   X)    IMPLEMENT_VARIABLE_T(double, X)

Definition at line 40 of file Variables.h.

#define IMPLEMENT_VARIABLE_T (   T,
  X 
)
Value:
namespace funct { \
} \
\
struct __useless_ignoreme \
long double T

Definition at line 30 of file Variables.h.

Function Documentation

DEFINE_VARIABLE ( DefaultVariable  ,
"_"   
)
DEFINE_VARIABLE ( X  ,
"x"   
)
DEFINE_VARIABLE ( ,
"y"   
)
DEFINE_VARIABLE ( ,
"z"   
)