Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
dunecore
dunecore
DAQTriggerSim
Service
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
12
#include "
dunecore/DuneInterface/Service/BaseTriggerService.h
"
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
25
class
TemplateTriggerService
:
public
BaseTriggerService
{
26
27
public
:
28
29
// Simple constructor...
30
TemplateTriggerService
();
31
32
// Constructor from fcl parameters...
33
TemplateTriggerService
(
fhicl::ParameterSet
const
& pset,
art::ActivityRegistry
&);
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
;
55
std::string
fAString
;
56
57
};
58
59
DECLARE_ART_SERVICE_INTERFACE_IMPL
(
TemplateTriggerService
,
BaseTriggerService
, LEGACY)
60
61
#endif
TemplateTriggerService
Definition:
TemplateTriggerService.h:25
string
std::string string
Definition:
nybbler.cc:12
DECLARE_ART_SERVICE_INTERFACE_IMPL
DECLARE_ART_SERVICE_INTERFACE_IMPL(MySharedService, art::test::MyServiceInterface, SHARED) DEFINE_ART_SERVICE_INTERFACE_IMPL(MySharedService
TemplateTriggerService::GetName
virtual std::string GetName()
Definition:
TemplateTriggerService.h:49
raw
Raw data description.
Definition:
AdcChannelData.h:88
BaseTriggerService.h
TemplateTriggerService::fIndex
unsigned int fIndex
Definition:
TemplateTriggerService.h:54
fhicl
Definition:
InputSourceFactory.h:7
BaseTriggerService
Definition:
BaseTriggerService.h:32
art::Event
Definition:
Event.h:22
art::ActivityRegistry
Definition:
ActivityRegistry.h:52
art
Definition:
BasicOptionsHandler.h:9
tca::evt
TCEvent evt
Definition:
DataStructs.cxx:7
fhicl::ParameterSet
Definition:
ParameterSet.h:36
TemplateTriggerService::fAString
std::string fAString
Definition:
TemplateTriggerService.h:55
Generated by
1.8.11