TemplateTriggerService.h
Go to the documentation of this file.
1 // TemplateTriggerService.h
2 //
3 // Michael Baird
4 // March 2016
5 //
6 // Template trigger service class for the DAQ trigger service framework.
7 //
8 
9 #ifndef TEMPLATETRIGGERSERVICE_H
10 #define TEMPLATETRIGGERSERVICE_H
11 
13 
14 #include <memory>
15 #include <string>
16 #include <iostream>
17 
18 namespace fhicl {
19  class ParameterSet;
20 }
21 namespace art {
22  class ActivityRegistry;
23 }
24 
26 
27  public:
28 
29  // Simple constructor...
31 
32  // Constructor from fcl parameters...
34 
35  // Make the trigger decision.
36  //
37  // params:
38  // evt - The ART event, to be sliced and diced as the trigger algorithm
39  // sees fit...
40  bool Trigger(art::Event const & evt);
41 
42  // Make a trigger decision based on TPC info only.
43  //
44  // params:
45  // raw - A vector of raw digits, to be sliced and diced as the trigger algorithm
46  // sees fit...
47  virtual bool TPCTrigger(std::vector<raw::RawDigit> const & raw);
48 
49  virtual std::string GetName(){ return "TemplateTriggerService";}
50 
51  private:
52 
53  // Parameters.
54  unsigned int fIndex;
56 
57 };
58 
60 
61 #endif
std::string string
Definition: nybbler.cc:12
DECLARE_ART_SERVICE_INTERFACE_IMPL(MySharedService, art::test::MyServiceInterface, SHARED) DEFINE_ART_SERVICE_INTERFACE_IMPL(MySharedService
virtual std::string GetName()
Raw data description.
TCEvent evt
Definition: DataStructs.cxx:7