1 #ifndef DataFormats_BTauReco_TaggingVariable_h 2 #define DataFormats_BTauReco_TaggingVariable_h 8 #include <boost/pointee.hpp> 9 #include <boost/type_traits/is_convertible.hpp> 11 #include <Math/Functions.h> 24 double momPar = dir.Dot(track);
28 return 0.5 *
std::log((energy + momPar) / (energy - momPar));
186 bool operator() (
const TaggingVariable&
i,
const TaggingVariable& j) {
187 return i.first < j.first;
191 return i.first <
tag;
195 return tag < i.first;
209 template <
typename InputIterator>
212 for (
const InputIterator
i = begin;
i !=
end;
i++)
220 typedef std::pair < const_iterator, const_iterator >
range;
221 size_t size()
const {
return m_list.size(); }
222 const_iterator
begin()
const {
return m_list.begin(); }
223 const_iterator
end()
const {
return m_list.end(); }
224 void push_back (
const TaggingVariable &
t ) { m_list.push_back ( t ); }
235 void insert(
const TaggingVariable &
variable,
bool delayed =
false );
240 void finalize(
void );
244 std::vector<TaggingValue> getList(
TaggingVariableName tag,
bool throwOnEmptyList =
true )
const;
257 #endif // DataFormats_BTauReco_TaggingVariable_h
void push_back(const TaggingVariable &t)
const char *const TaggingVariableTokens[]
double etaRel(const math::XYZVector &dir, const math::XYZVector &track)
const_iterator begin() const
TaggingVariableList(const TaggingVariableList &list)
std::vector< TaggingVariable >::const_iterator const_iterator
const_iterator end() const
bool insert(Storage &iStorage, ItemType *iItem, const IdTag &iIdTag)
std::pair< TaggingVariableName, TaggingValue > TaggingVariable
std::pair< const_iterator, const_iterator > range
XYZVectorD XYZVector
spatial vector with cartesian internal representation
TaggingVariableName getTaggingVariableName(const std::string &name)
#define DECLARE_EDM_REFS(class_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