#include <ChopHelperModule.h>
Inheritance diagram for ChopHelperModule:

Public Member Functions | |
| ChopHelperModule () | |
| ~ChopHelperModule () | |
| JobCResult | Ana (const MomNavigator *mom) |
(Document me!)
n.\tagg.phy.tufts.edu
Definition at line 12 of file ChopHelperModule.h.
|
|
(Document me!) Definition at line 23 of file ChopHelperModule.cxx. 00024 {
00028 }
|
|
|
(Document me!) Definition at line 31 of file ChopHelperModule.cxx. 00032 {
00036 }
|
|
|
(Document me!) Reimplemented from JobCModule. Definition at line 40 of file ChopHelperModule.cxx. References ChopHelper::GetChopHelp(), CandHandle::GetDaughterIterator(), 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 }
|
1.3.9.1