SimDaqTrigger Class Reference

#include <SimDaqTrigger.h>

Inheritance diagram for SimDaqTrigger:
SimDaqEnergyTrigger SimDaqMultTrigger SimDaqPlaneTrigger

List of all members.

Public Types

enum  ESimDaqTrigWindowMethod { kNone = 0, kGap = 1, kWindow = 2 }

Public Member Functions

 SimDaqTrigger (void)
virtual void Configure (const Registry &r)
virtual void Print (Option_t *option="") const
virtual Bool_t ApplyTriggerAt (PlexHandle plex, SimDigitList &sortedDigitList, UInt_t startAt, UInt_t stopAt)=0
 ClassDef (SimDaqTrigger, 1)

Public Attributes

TString fType
Double_t fThreshold
Int_t fN
Int_t fM
Int_t fNhits

Detailed Description

Definition at line 15 of file SimDaqTrigger.h.


Member Enumeration Documentation

Enumerator:
kNone 
kGap 
kWindow 

Definition at line 19 of file SimDaqTrigger.h.

00019                                {
00020     kNone    = 0,
00021     kGap     = 1,
00022     kWindow  = 2
00023   };


Constructor & Destructor Documentation

SimDaqTrigger::SimDaqTrigger ( void   ) 

Definition at line 5 of file SimDaqTrigger.cxx.

00005                                 :
00006   fType("Unknown!"),
00007   fThreshold(0),
00008   fN(0),
00009   fM(0),
00010   fNhits(0)
00011 {
00012 }


Member Function Documentation

virtual Bool_t SimDaqTrigger::ApplyTriggerAt ( PlexHandle  plex,
SimDigitList sortedDigitList,
UInt_t  startAt,
UInt_t  stopAt 
) [pure virtual]
SimDaqTrigger::ClassDef ( SimDaqTrigger  ,
 
)
void SimDaqTrigger::Configure ( const Registry r  )  [virtual]

Definition at line 14 of file SimDaqTrigger.cxx.

References fM, fN, fNhits, fThreshold, fType, and Registry::Get().

Referenced by SimDetector::Config().

00015 {
00016   const char* type;
00017   if(r.Get("type",  type)) fType = type;
00018 
00019   r.Get("thresh",fThreshold);
00020   r.Get("N",     fN);
00021   r.Get("M",     fM);
00022   r.Get("Nhits", fNhits);
00023 }

void SimDaqTrigger::Print ( Option_t *  option = ""  )  const [virtual]

Definition at line 25 of file SimDaqTrigger.cxx.

References fM, fN, fNhits, fThreshold, and fType.

Referenced by SimDetector::Print().

00026 {
00027   printf("   fType             %s\n"     ,fType.Data());
00028   printf("   N/M               %d / %d\n",fN,fM);
00029   printf("   fThreshold        %f\n",     fThreshold);
00030   printf("   fNhits            %d\n",     fNhits);
00031 }


Member Data Documentation

Definition at line 38 of file SimDaqTrigger.h.

Referenced by SimDaqMultTrigger::ApplyTriggerAt(), Configure(), and Print().

Definition at line 37 of file SimDaqTrigger.h.

Referenced by SimDaqMultTrigger::ApplyTriggerAt(), Configure(), and Print().

Reimplemented in SimDaqMultTrigger.

Definition at line 39 of file SimDaqTrigger.h.

Referenced by Configure(), and Print().

Definition at line 36 of file SimDaqTrigger.h.

Referenced by SimDaqMultTrigger::ApplyTriggerAt(), Configure(), and Print().

Definition at line 35 of file SimDaqTrigger.h.

Referenced by Configure(), and Print().


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

Generated on 22 Nov 2017 for loon by  doxygen 1.6.1