TestDemuxModule Class Reference

#include <TestDemuxModule.h>

Inheritance diagram for TestDemuxModule:
JobCModule

List of all members.

Public Member Functions

 TestDemuxModule ()
 ~TestDemuxModule ()
JobCResult Ana (const MomNavigator *mom)
JobCResult Test (const MomNavigator *mom)

Private Member Functions

 ClassDef (TestDemuxModule, 0)

Detailed Description

Definition at line 16 of file TestDemuxModule.h.


Constructor & Destructor Documentation

TestDemuxModule::TestDemuxModule (  )  [inline]

Definition at line 19 of file TestDemuxModule.h.

00019 {};

TestDemuxModule::~TestDemuxModule (  )  [inline]

Definition at line 20 of file TestDemuxModule.h.

00020 {};


Member Function Documentation

JobCResult TestDemuxModule::Ana ( const MomNavigator mom  )  [virtual]

Implement this for read only access to the MomNavigator

Reimplemented from JobCModule.

Definition at line 17 of file TestDemuxModule.cxx.

References JobCResult::Failed(), Msg::kInfo, and MSG.

00018 {
00019   JobCResult res = Test(mom);
00020   if(res.Failed())
00021     MSG("Trid",Msg::kInfo) << "Needs demuxing.\n";
00022   else 
00023     MSG("Trid",Msg::kInfo) << "Doesn't need demuxing.\n";
00024   return res;
00025 }

TestDemuxModule::ClassDef ( TestDemuxModule  ,
 
) [private]
JobCResult TestDemuxModule::Test ( const MomNavigator mom  ) 

Definition at line 27 of file TestDemuxModule.cxx.

References VldContext::GetDetector(), CandHandle::GetVldContext(), Detector::kCalDet, JobCResult::kFailed, Detector::kNear, and JobCResult::kPassed.

00028 {
00029   const CandDigitListHandle* cdlh = 
00030     DataUtil::GetCandidate<CandDigitListHandle>(mom,"CandDigitListHandle","");
00031     
00032   if(cdlh == NULL)
00033     return JobCResult::kFailed; 
00034 
00035   // Is the context such that demuxing is required?
00036 
00037   // Caldet never needs demuxing.
00038   if(cdlh->GetVldContext()->GetDetector()==Detector::kCalDet) return JobCResult::kPassed;
00039 
00040   // Neardet doesn't need it??
00041   if(cdlh->GetVldContext()->GetDetector()==Detector::kNear) return JobCResult::kPassed;
00042 
00043   // We're at fardet... is it demuxed?
00044   const CandDeMuxDigitListHandle* demuxlist = 
00045     DataUtil::GetCandidate<CandDeMuxDigitListHandle>(mom,"CandDeMuxDigitListHandle","");
00046 
00047   if(demuxlist==NULL) return JobCResult::kFailed;
00048   return JobCResult::kPassed;
00049 }


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

Generated on 22 Nov 2017 for loon by  doxygen 1.6.1