AlcapDAQ  1
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes
TestModule Class Reference

#include <TestModule.h>

Inheritance diagram for TestModule:
FillHistBase

Public Member Functions

 TestModule (modules::options *opts)
 
 ~TestModule ()
 
int ProcessGenericEntry (TGlobalData *gData, TSetupData *gSetup)
 
const char * GetName () const
 

Protected Member Functions

bool Debug () const
 

Protected Attributes

TDirectory * dir
 
TSetupDatafSetup
 

Private Member Functions

virtual int ProcessEntry (TGlobalData *gData, TSetupData *gSetup)
 
virtual int BeforeFirstEntry (TGlobalData *gData, TSetupData *setup)
 
virtual int AfterLastEntry (TGlobalData *gData, TSetupData *setup)
 

Private Attributes

int fXMax
 

Detailed Description

Definition at line 9 of file TestModule.h.

Constructor & Destructor Documentation

TestModule::TestModule ( modules::options opts)

Definition at line 11 of file TestModule.cpp.

References fXMax, and modules::options::GetDouble().

11  :
12  FillHistBase("TestModule",opts){
13 
14  // Do something with opts here. Has the user specified any
15  // particular configuration that you want to know?
16  // For example, perhaps this module wants an axis range:
17  fXMax=opts->GetDouble("x_max",100);
18 
19 }
TestModule::~TestModule ( )

Definition at line 21 of file TestModule.cpp.

21  {
22 }

Member Function Documentation

int TestModule::AfterLastEntry ( TGlobalData gData,
TSetupData setup 
)
privatevirtual

Reimplemented from FillHistBase.

Definition at line 45 of file TestModule.cpp.

References FillHistBase::Debug().

45  {
46 
47  // Print extra info if we're debugging this module:
48  if(Debug()){
49  cout<<"-----I'm debugging TestModule::AfterLastEntry()"<<endl;
50  }
51 
52  return 0;
53 }
int TestModule::BeforeFirstEntry ( TGlobalData gData,
TSetupData setup 
)
privatevirtual

Reimplemented from FillHistBase.

Definition at line 27 of file TestModule.cpp.

References FillHistBase::Debug().

27  {
28  // Print extra info if we're debugging this module:
29  if(Debug()){
30  cout<<"-----I'm debugging TestModule::BeforeFirstEntry() "<<endl;
31  }
32 
33  return 0;
34 }
bool FillHistBase::Debug ( ) const
inlineprotectedinherited
const char* FillHistBase::GetName ( ) const
inlineinherited

Definition at line 40 of file FillHistBase.h.

References FillHistBase::dir.

Referenced by DeadTimeGe::ProcessEntry(), PlotTime::ProcessEntry(), and PlotAmplitude::ProcessEntry().

40 {return dir->GetName();};
int TestModule::ProcessEntry ( TGlobalData gData,
TSetupData gSetup 
)
privatevirtual

Reimplemented from FillHistBase.

Definition at line 38 of file TestModule.cpp.

38  {
39  return 0;
40 }
int FillHistBase::ProcessGenericEntry ( TGlobalData gData,
TSetupData gSetup 
)
inherited

Definition at line 24 of file FillHistBase.cpp.

References FillHistBase::dir, and FillHistBase::ProcessEntry().

24  {
25  // This is called by our main routine and would allow later to split into different
26  // process routines if we have more than one Tree and hence different tpyes of data input.
27 
28  if(dir) dir->cd();
29  int ret = ProcessEntry(gData, gSetup);
30  gDirectory->cd("/");
31 
32  return ret;
33 }

Field Documentation

TDirectory* FillHistBase::dir
protectedinherited
TSetupData* FillHistBase::fSetup
protectedinherited

Definition at line 44 of file FillHistBase.h.

int TestModule::fXMax
private

Definition at line 20 of file TestModule.h.

Referenced by TestModule().


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