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