Public Member Functions | Private Attributes | List of all members
TemplateTriggerService Class Reference

#include <TemplateTriggerService.h>

Inheritance diagram for TemplateTriggerService:
BaseTriggerService

Public Member Functions

 TemplateTriggerService ()
 
 TemplateTriggerService (fhicl::ParameterSet const &pset, art::ActivityRegistry &)
 
bool Trigger (art::Event const &evt)
 
virtual bool TPCTrigger (std::vector< raw::RawDigit > const &raw)
 
virtual std::string GetName ()
 
- Public Member Functions inherited from BaseTriggerService
virtual ~BaseTriggerService ()=default
 
virtual bool Trigger (const art::Event &)
 
virtual bool TPCTrigger (const std::vector< raw::RawDigit > &)
 
virtual bool PDTrigger (const std::vector< raw::OpDetWaveform > &)
 
virtual bool TPCPDTrigger (const std::vector< raw::RawDigit > &, const std::vector< raw::OpDetWaveform > &)
 
virtual bool Trigger (const std::vector< triggersim::BasicTrigger > &)
 

Private Attributes

unsigned int fIndex
 
std::string fAString
 

Detailed Description

Definition at line 25 of file TemplateTriggerService.h.

Constructor & Destructor Documentation

TemplateTriggerService::TemplateTriggerService ( )

Definition at line 23 of file TemplateTriggerService_service.cc.

23  :
24  fIndex(0),
25  fAString("no value...")
26 { }
TemplateTriggerService::TemplateTriggerService ( fhicl::ParameterSet const &  pset,
art::ActivityRegistry  
)

Member Function Documentation

virtual std::string TemplateTriggerService::GetName ( )
inlinevirtual

Implements BaseTriggerService.

Definition at line 49 of file TemplateTriggerService.h.

49 { return "TemplateTriggerService";}
bool TemplateTriggerService::TPCTrigger ( std::vector< raw::RawDigit > const &  raw)
virtual

Definition at line 62 of file TemplateTriggerService_service.cc.

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 }
bool TemplateTriggerService::Trigger ( art::Event const &  evt)

Definition at line 41 of file TemplateTriggerService_service.cc.

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 }
unsigned int event
Definition: DataStructs.h:636
TCEvent evt
Definition: DataStructs.cxx:7

Member Data Documentation

std::string TemplateTriggerService::fAString
private

Definition at line 55 of file TemplateTriggerService.h.

unsigned int TemplateTriggerService::fIndex
private

Definition at line 54 of file TemplateTriggerService.h.


The documentation for this class was generated from the following files: