AtNuEventSelectionFactory Class Reference

#include <AtNuEventSelectionFactory.h>

List of all members.

Public Member Functions

AtNuEventSelectionMakeEventSelection ()
AtNuEventSelectionMakeEventSelection (const char *name)
 AtNuEventSelectionFactory ()
virtual ~AtNuEventSelectionFactory ()

Static Public Member Functions

static AtNuEventSelectionFactoryInstance ()

Private Attributes

AtNuEventSelectionfSelectionAB

Static Private Attributes

static AtNuEventSelectionFactoryfMyInstance = 0

Detailed Description

Definition at line 8 of file AtNuEventSelectionFactory.h.


Constructor & Destructor Documentation

AtNuEventSelectionFactory::AtNuEventSelectionFactory (  ) 

Definition at line 59 of file AtNuEventSelectionFactory.cxx.

References fSelectionAB.

00060 {
00061   fSelectionAB = 0;
00062 }

AtNuEventSelectionFactory::~AtNuEventSelectionFactory (  )  [virtual]

Definition at line 64 of file AtNuEventSelectionFactory.cxx.

References fSelectionAB.

00065 {
00066   if( fSelectionAB ) delete fSelectionAB;
00067 }


Member Function Documentation

AtNuEventSelectionFactory * AtNuEventSelectionFactory::Instance (  )  [static]

Definition at line 13 of file AtNuEventSelectionFactory.cxx.

00014 {
00015 
00016   if(!fMyInstance){
00017     fMyInstance = new AtNuEventSelectionFactory();
00018   }
00019  
00020   // die if finder hasn't actually been created
00021   if(!fMyInstance){
00022     assert(fMyInstance);
00023   }
00024  
00025   // can do re-setting here
00026   if(fMyInstance){
00027  
00028   }
00029    
00030   return fMyInstance;
00031 }

AtNuEventSelection * AtNuEventSelectionFactory::MakeEventSelection ( const char *  name  ) 

Definition at line 38 of file AtNuEventSelectionFactory.cxx.

References fSelectionAB.

00039 {
00040   if( strcmp(name,"default")==0 ) {
00041     if( fSelectionAB==0 ){
00042       std::cout << " Building Selection: " << name << std::endl;
00043       fSelectionAB = new AtNuEventSelectionAB();
00044     }
00045     return fSelectionAB;
00046   }
00047 
00048   if( strcmp(name,"AB")==0 ) {
00049     if( fSelectionAB==0 ){
00050       std::cout << " Building Selection: " << name << std::endl;
00051       fSelectionAB = new AtNuEventSelectionAB();
00052     }
00053     return fSelectionAB;
00054   }
00055 
00056   return 0;
00057 }

AtNuEventSelection * AtNuEventSelectionFactory::MakeEventSelection (  ) 

Definition at line 33 of file AtNuEventSelectionFactory.cxx.

Referenced by AtNuDigitNtuple::Reset(), AtNuEventViewer::StartEventSelection(), and AtNuEventSelector::StartEventSelection().

00034 {
00035   return this->MakeEventSelection("default");
00036 }


Member Data Documentation

Definition at line 22 of file AtNuEventSelectionFactory.h.


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

Generated on 2 Nov 2017 for loon by  doxygen 1.6.1