TemplateTriggerService_service.cc
Go to the documentation of this file.
1 // TemplateTriggerService_service.cc
2 //
3 // Michael Baird
4 // March 2016
5 //
6 // Template trigger service class for the DAQ trigger service framework.
7 //
8 
9 // DUNETPC specific includes
11 
12 // Framework includes
13 #include "fhiclcpp/ParameterSet.h"
16 
17 // C++ includes
18 #include <iostream>
19 
20 
21 
22 //.....................................................................
24  fIndex(0),
25  fAString("no value...")
26 { }
27 
28 
29 
30 //.....................................................................
32  fIndex(0),
33  fAString("no value...")
34 {
35  fAString = pset.get<std::string>("AString");
36 }
37 
38 
39 
40 //.....................................................................
42 {
43 
44  //
45  // Into this function will go the guts of a trigger algorithm that uses the whole event.
46  //
47 
48  std::cout << "\n\nIn the Trigger function for event "
49  << evt.id().event()
50  << "\n\nfIndex = " << fIndex
51  << "\nString = " << fAString
52  << "\n\n\n";
53 
54  fIndex++;
55 
56  return true;
57 }
58 
59 
60 
61 //.....................................................................
62 bool TemplateTriggerService::TPCTrigger(std::vector<raw::RawDigit> const & raw)
63 {
64 
65  //
66  // Into this function will go the guts of a trigger algorithm that uses TPC info only.
67  //
68 
69  std::cout << "\n\nIn the TPCTrigger function... "
70  << "\n\nSize of raw vector = " << raw.size()
71  << "\n\n\n";
72 
73  fIndex++;
74 
75  return false;
76 }
77 
78 
79 
virtual bool TPCTrigger(std::vector< raw::RawDigit > const &raw)
std::string string
Definition: nybbler.cc:12
Raw data description.
T get(std::string const &key) const
Definition: ParameterSet.h:271
bool Trigger(art::Event const &evt)
EventNumber_t event() const
Definition: EventID.h:116
TCEvent evt
Definition: DataStructs.cxx:7
EventID id() const
Definition: Event.cc:34
#define DEFINE_ART_SERVICE_INTERFACE_IMPL(svc, iface)