1 #ifndef DataFormats_BTauReco_TaggingVariable_h
2 #define DataFormats_BTauReco_TaggingVariable_h
8 #include <boost/static_assert.hpp>
9 #include <boost/pointee.hpp>
10 #include <boost/type_traits/is_convertible.hpp>
12 #include <Math/Functions.h>
25 double momPar = dir.Dot(track);
29 return 0.5 *
std::log((energy + momPar) / (energy - momPar));
148 return i.first < j.first;
152 return i.first <
tag;
156 return tag < i.first;
170 template <
typename InputIterator>
173 for (
const InputIterator
i = begin;
i !=
end;
i++)
181 typedef std::pair < const_iterator, const_iterator >
range;
218 #endif // DataFormats_BTauReco_TaggingVariable_h
void push_back(const TaggingVariable &t)
const char *const TaggingVariableTokens[]
range getRange(TaggingVariableName tag) const
double etaRel(const math::XYZVector &dir, const math::XYZVector &track)
const_iterator begin() const
bool checkTag(TaggingVariableName tag) const
TaggingVariableList(const TaggingVariableList &list)
std::vector< TaggingVariable >::const_iterator const_iterator
const_iterator end() const
bool operator()(const TaggingVariable &i, const TaggingVariable &j)
std::vector< TaggingValue > getList(TaggingVariableName tag, bool throwOnEmptyList=true) const
std::pair< TaggingVariableName, TaggingValue > TaggingVariable
#define DECLARE_EDM_REFS(class_name)
std::pair< const_iterator, const_iterator > range
XYZVectorD XYZVector
spatial vector with cartesian internal representation
TaggingVariableName getTaggingVariableName(const std::string &name)
TaggingVariableList(const InputIterator begin, const InputIterator end)
const char *const TaggingVariableDescription[]
TaggingValue operator[](TaggingVariableName tag) const
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger list("!*","!HLTx*"if it matches 2 triggers or more) will accept the event if all the matching triggers are FAIL.It will reject the event if any of the triggers are PASS or EXCEPTION(this matches the behavior of"!*"before the partial wildcard feature was incorporated).Triggers which are in the READY state are completely ignored.(READY should never be returned since the trigger paths have been run
std::vector< TaggingVariable > m_list
void insert(const TaggingVariable &variable, bool delayed=false)