Trigger.h
Go to the documentation of this file.
1 #ifndef GUARD_DDT_SLOW_MONOPOLE_TRIGGER_HH
2 #define GUARD_DDT_SLOW_MONOPOLE_TRIGGER_HH
3 
4 
10 
12 #include <fhiclcpp/ParameterSet.h>
13 
14 #include <map>
15 #include <set>
16 #include <vector>
17 
18 
19 namespace novaddt
20 {
21  namespace smt
22  {
23  class Trigger;
24  }
25 }
26 
27 
29 {
30 public:
31  Trigger() = default;
33 
35  std::vector<novaddt::TriggerDecision> trigger_decisions() const;
36 
37 private:
38  novaddt::HitList::const_iterator find
39  (novaddt::HitList::const_iterator begin,
40  novaddt::HitList::const_iterator end, novaddt::TDC tdc) const;
41 
42  novaddt::HitList::const_iterator find
43  (novaddt::HitList const& hits, novaddt::TDC tdc) const;
44 
45  int find_max_gap
46  (std::set<int> const& collection) const;
47 
49  (std::map<std::string, novaddt::HitList> & hitmap) const;
50 
51  bool gap_exceeds_cut
52  (std::set<int> collection, int const& object, int const& max_gap_cut) const;
53 
54  bool good_track
55  (Track const& track) const;
56 
58  (novaddt::DAQHit const& hit, Track const& track) const;
59 
61  (novaddt::DAQHit const& x_hit, novaddt::DAQHit const& y_hit) const;
62 
64  (novaddt::DAQHit const& hit, Track const& track) const;
65 
66  bool hit_is_on_road
67  (novaddt::DAQHit const& hit, Track const& track) const;
68 
70  (novaddt::DAQHit const& hit) const;
71 
72  void split_by_view
73  (novaddt::HitList hits,
74  std::map<std::string, novaddt::HitList> & hitmap) const;
75 
85 
86  std::vector<novaddt::TriggerDecision> trigger_decisions_;
87 };
88 
89 
90 #endif
double track_max_beta_
Definition: Trigger.h:79
bool hit_is_in_time_with_road(novaddt::DAQHit const &hit, Track const &track) const
Definition: Trigger.cxx:351
unsigned sparsification_factor_
Definition: Trigger.h:78
bool hit_is_on_road(novaddt::DAQHit const &hit, Track const &track) const
Definition: Trigger.cxx:324
bool hits_are_view_matched(novaddt::DAQHit const &x_hit, novaddt::DAQHit const &y_hit) const
Definition: Trigger.cxx:271
bool good_track(Track const &track) const
Definition: Trigger.cxx:304
std::vector< DAQHit > HitList
Definition: HitList.h:15
const char * p
Definition: xmltok.h:285
Definition: event.h:19
bool hit_is_between_track_end_points(novaddt::DAQHit const &hit, Track const &track) const
Definition: Trigger.cxx:420
std::vector< novaddt::TriggerDecision > trigger_decisions_
Definition: Trigger.h:86
int find_max_gap(std::set< int > const &collection) const
Definition: Trigger.cxx:399
void find_view_matched_hits(std::map< std::string, novaddt::HitList > &hitmap) const
Definition: Trigger.cxx:224
void hits()
Definition: readHits.C:15
bool hit_is_on_surface(novaddt::DAQHit const &hit) const
Definition: Trigger.cxx:285
void split_by_view(novaddt::HitList hits, std::map< std::string, novaddt::HitList > &hitmap) const
Definition: Trigger.cxx:207
std::vector< novaddt::TriggerDecision > trigger_decisions() const
Definition: Trigger.cxx:32
bool run_algorithm(art::Handle< novaddt::HitList > const &hits)
Definition: Trigger.cxx:40
double track_min_beta_
Definition: Trigger.h:80
bool trigger_write_all_timeout_data_
Definition: Trigger.h:84
bool gap_exceeds_cut(std::set< int > collection, int const &object, int const &max_gap_cut) const
Definition: Trigger.cxx:382
bool trigger_use_timeout_
Definition: Trigger.h:83
Definition: structs.h:12
double trigger_timeout_
Definition: Trigger.h:82
novaddt::HitList::const_iterator find(novaddt::HitList::const_iterator begin, novaddt::HitList::const_iterator end, novaddt::TDC tdc) const
Definition: Trigger.cxx:440
unsigned trigger_time_buffer_
Definition: Trigger.h:81