ChopHelperModule Class Reference

#include <ChopHelperModule.h>

Inheritance diagram for ChopHelperModule:
JobCModule

List of all members.

Public Member Functions

 ChopHelperModule ()
 ~ChopHelperModule ()
JobCResult Ana (const MomNavigator *mom)

Detailed Description

Id
ChopHelperModule.h,v 1.1 2006/06/09 19:44:39 tagg Exp

(Document me!)

n.\tagg.phy.tufts.edu

Definition at line 12 of file ChopHelperModule.h.


Constructor & Destructor Documentation

ChopHelperModule::ChopHelperModule (  ) 

(Document me!)

Definition at line 23 of file ChopHelperModule.cxx.

00024 {
00028 }

ChopHelperModule::~ChopHelperModule (  ) 

(Document me!)

Definition at line 31 of file ChopHelperModule.cxx.

00032 {
00036 }


Member Function Documentation

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

Implement this for read only access to the MomNavigator

(Document me!)

Reimplemented from JobCModule.

Definition at line 40 of file ChopHelperModule.cxx.

References ChopHelper::GetChopHelp(), CandHandle::GetDaughterIterator(), help(), JobCResult::kFailed, JobCResult::kPassed, and ChopHelp::Print().

00041 {
00045   ChopHelper helper(mom);
00046   std::vector<CandHandle> events;
00047   CandHandle* cdlh = DataUtil::GetCandidate<CandHandle>(mom,"CandDigitListHandle","canddigitlist");
00048   if(cdlh) events.push_back(*cdlh);
00049 
00050   CandHandle* eventlist = DataUtil::GetCandidate<CandHandle>(mom,"CandEventListHandle","CandEventList");
00051   if(eventlist==0) {
00052     std::cout << "Can't find event list." << std::endl;
00053     return JobCResult::kFailed;
00054   }
00055   TIter itr = eventlist->GetDaughterIterator();
00056   while(CandHandle* ch = dynamic_cast<CandHandle*>(itr.Next())) {
00057     events.push_back(*ch);
00058   };
00059   ChopHelp* help = helper.GetChopHelp(events);
00060   
00061   help->Print();
00062  
00063   return JobCResult::kPassed; // kNoDecision, kFailed, etc.
00064 }


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

Generated on 22 Nov 2017 for loon by  doxygen 1.6.1