NSL
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends
BetaInRange.cpp
Go to the documentation of this file.
1  #include "NSL/Tof/BetaInRange.h"
2 
3 NSL::Selections::Tof::BetaInRange::BetaInRange(float min, float max, NAIA::Tof::BetaType type) {
4  m_matcher = std::make_shared<boolMatcher>([=](Event &event) {
5  auto charge = event.tofBase->Beta[type];
6  return (charge > min && charge < max);
7  });
8 }
NAIA::Event Event
Definition: matchers.h:11
BetaInRange(float min, float max, NAIA::Tof::BetaType type)
Definition: BetaInRange.cpp:3
RefCMatcher m_matcher
Definition: Selection.h:73