Hammer  1.0.0
Helicity Amplitude Module for Matrix Element Reweighting
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HammerModules.hh.in File Reference

Go to the source code of this file.

Macros

#define HAMMER_HAMMERModules_HH
 
#define ADD(ELEM, CONT, TYP)
 
#define ADDV(ELEM, CONT, TYP)
 
#define ADD_AMPLITUDES(CONT)
 
#define ADD_FORMFACTORS(CONT)
 
#define ADD_RATES(CONT)
 

Macro Definition Documentation

#define ADD (   ELEM,
  CONT,
  TYP 
)
Value:
do { \
unique_ptr<TYP> pEntry(new ELEM{}); \
size_t counts = pEntry->numSignatures(); \
CONT.emplace(pEntry->id(), std::move(pEntry)); \
for(size_t i = 1; i < counts; ++i) { \
unique_ptr<TYP> pEntryNext(new ELEM{}); \
pEntryNext->setSignatureIndex(i); \
CONT.emplace(pEntryNext->id(), std::move(pEntryNext)); \
} \
} while(0)

Definition at line 19 of file HammerModules.hh.in.

#define ADD_AMPLITUDES (   CONT)
Value:
do { \
@AMPL_BODY@ } while (0)

Definition at line 41 of file HammerModules.hh.in.

#define ADD_FORMFACTORS (   CONT)
Value:
do { \
@FF_BODY@ } while (0)

Definition at line 44 of file HammerModules.hh.in.

#define ADD_RATES (   CONT)
Value:
do { \
@RATE_BODY@ } while (0)

Definition at line 47 of file HammerModules.hh.in.

#define ADDV (   ELEM,
  CONT,
  TYP 
)
Value:
do { \
unique_ptr<TYP> pEntry(new ELEM{}); \
size_t counts = pEntry->numSignatures(); \
CONT[pEntry->id()].emplace_back(std::move(pEntry)); \
for(size_t i = 1; i < counts; ++i) { \
unique_ptr<TYP> pEntryNext(new ELEM{}); \
pEntryNext->setSignatureIndex(i); \
CONT[pEntryNext->id()].emplace_back(std::move(pEntryNext)); \
} \
} while(0)

Definition at line 30 of file HammerModules.hh.in.

#define HAMMER_HAMMERModules_HH

Definition at line 13 of file HammerModules.hh.in.