|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef SIGNVALUESELECTOR_H_
6 #define SIGNVALUESELECTOR_H_
49 bool cutValueMode =
false);
59 std::string delim, std::string
replace, std::string default_prefix);
64 virtual std::string
name()
const override;
std::string replace(std::string s, const std::string &s2, const std::string &s3)
SignValueSelector(const std::string &name, std::string params, bool multiplicityMode=false, bool cutValueMode=false)
Constructor for tools that need a sign and a value.
bool checkInt(int value, int cut) const
Compare a cut supplied by the user with the value calculated in the event.
Sign sign() const
Get the sign setup in the constructor.
TopConfig A simple configuration that is NOT a singleton.
double multiplicity() const
Get the cut multiplicity assigned in the constructor.
std::string m_name
Hold the name of the tool, filled by the constructor.
Sign m_sign
The sign of the cut, filled by the constructor.
Many of the tools need a sign (>=) and a value (2).
void checkValueIsInteger()
Integers are annoying in C++.
bool checkFloat(double value, double cut) const
Compare a cut supplied by the user with the value calculated in the event.
std::string valueString() const
Get the cut value assigned in the constructor.
double m_multiplicity
The multiplicity for cuts that take both a value and a multiplicity e.g. EL_N 25000 >= 2.
const std::string signstring() const
Convert the sign enum back to a string for use in the name and print outs.
cut
This script demonstrates how to call a C++ class from Python Also how to use PyROOT is shown.
void checkMultiplicityIsInteger()
Integers are annoying in C++.
double m_cutvalue
The value of the cut, filled by the constructor.
This should apply event-level cuts and perform simple plotting on top::Event objects.
Sign decodesign(std::string ¶ms)
Take the string params, look for one of the allowed inequalities (or equality) and return that.
double value() const
Get the cut value assigned in the constructor.
Sign
Many of the tools will be supplied with an equality (or inequality) by the user.
std::string valueStringDelimReplace() const
valueString which is manipulated to replace delimiter with new string
std::string m_cutvalueString
The value of the cut in the case it's a string, filled by the constructor.
std::string m_cutvalueStringDelimReplace
The value of the cut when it is a string, with replacement of delimiter with a replacement substring.
virtual std::string name() const override
The name is generated in the constructor for this kind of tool.