template<typename TYPE>
class AmpGen::Argument< TYPE >
Structure to flexibly pass blocks of "Named" parameters to functions, to approximate the behaviour of Python's named arguments. Typical usage is for constructors with variable arguments, such as to read data from the disk. The interface for the user is typically
type,
GetGenPDF(true),
WeightBranch("eventWeight"),
Branches({"K_PX","K_PY",...}));
Internally these arguments are used to construct an ArgumentPack, and then read out using getArg<TYPE>, so for this example:
auto pdfSize = args.getArg<CacheSize>().
val;
auto filter = args.getArg<Filter>().
val;
auto getGenPdf = args.getArg<GetGenPdf>(
true).
val;
auto weightBranch = args.getArg<WeightBranch>().
val;
auto branches = args.getArg<Branches>().
val;
auto applySym = args.getArg<ApplySym>().
val;
auto entryList = args.getArg<EntryList>().
val;
- Template Parameters
-
TYPE | Type of the argument, such as a string, a number, a bool etc. |
Definition at line 55 of file ArgumentPack.h.