group Analysis object manipulation functions
Analysis object manipulation functions
Functions
Name | |
---|---|
map< string, YODA::AnalysisObjectPtr > | getRefData(const string & papername) |
string | getDatafilePath(const string & papername) Get the file system path to the reference file for this paper. |
template <typename T > bool | aocopy(YODA::AnalysisObjectPtr src, YODA::AnalysisObjectPtr dst) |
template <typename T > bool | aocopy(YODA::AnalysisObjectPtr src, YODA::AnalysisObjectPtr dst, double scale) |
template <typename T > bool | aoadd(YODA::AnalysisObjectPtr dst, YODA::AnalysisObjectPtr src, double scale) |
bool | copyao(YODA::AnalysisObjectPtr src, YODA::AnalysisObjectPtr dst, double scale =1.0) |
bool | addaos(YODA::AnalysisObjectPtr dst, YODA::AnalysisObjectPtr src, double scale) |
template <typename TPtr > bool | bookingCompatible(TPtr a, TPtr b) |
bool | bookingCompatible(CounterPtr a, CounterPtr b) |
bool | bookingCompatible(YODA::CounterPtr a, YODA::CounterPtr b) |
Functions Documentation
function getRefData
map< string, YODA::AnalysisObjectPtr > getRefData(
const string & papername
)
Function to get a map of all the refdata in a paper with the given papername.
function getDatafilePath
string getDatafilePath(
const string & papername
)
Get the file system path to the reference file for this paper.
Todo: Also provide a Scatter3D getRefData() version?
function aocopy
template <typename T >
inline bool aocopy(
YODA::AnalysisObjectPtr src,
YODA::AnalysisObjectPtr dst
)
If dst and src both are of same subclass T, copy the contents of src into dst and return true. Otherwise return false.
function aocopy
template <typename T >
inline bool aocopy(
YODA::AnalysisObjectPtr src,
YODA::AnalysisObjectPtr dst,
double scale
)
If dst and src both are of same subclass T, copy the contents of src into dst and return true. Otherwise return false. The scale argument will be ued to scale the weights of non-scatter types, cf. aoadd().
function aoadd
template <typename T >
inline bool aoadd(
YODA::AnalysisObjectPtr dst,
YODA::AnalysisObjectPtr src,
double scale
)
If dst and src both are of same subclass T, add the contents of src into dst and return true. Otherwise return false.
function copyao
bool copyao(
YODA::AnalysisObjectPtr src,
YODA::AnalysisObjectPtr dst,
double scale =1.0
)
If dst is the same subclass as src, copy the contents of src into dst and return true. Otherwise return false.
function addaos
bool addaos(
YODA::AnalysisObjectPtr dst,
YODA::AnalysisObjectPtr src,
double scale
)
If dst is the same subclass as src, scale the contents of src with scale and add it to dst and return true. Otherwise return false.
function bookingCompatible
template <typename TPtr >
inline bool bookingCompatible(
TPtr a,
TPtr b
)
Check if two analysis objects have the same binning or, if not binned, are in other ways compatible.
function bookingCompatible
inline bool bookingCompatible(
CounterPtr a,
CounterPtr b
)
function bookingCompatible
inline bool bookingCompatible(
YODA::CounterPtr a,
YODA::CounterPtr b
)
Updated on 2022-08-07 at 20:17:17 +0100