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

Public Member Functions | |
| BDUniquifyTestModule () | |
| virtual | ~BDUniquifyTestModule () |
| JobCResult | Ana (const MomNavigator *mom) |
| void | BeginJob () |
| void | EndJob () |
|
|
Definition at line 21 of file BDUniquifyTestModule.cxx. 00022 {
00023 }
|
|
|
Definition at line 24 of file BDUniquifyTestModule.cxx. 00025 {
00026 }
|
|
|
Implement this for read only access to the MomNavigator Reimplemented from JobCModule. Definition at line 73 of file BDUniquifyTestModule.cxx. References UtilHepevt::dump(), MomNavigator::FragmentIter(), RawRecord::GetRawBlockIter(), and BDUniquify::GetUniqueBlocks(). 00074 {
00075 static BDUniquify uniqifier;
00076 vector<BDUniquify::BlockPair> blocks = uniqifier.GetUniqueBlocks(*mom);
00077
00078 cerr << "Got " << blocks.size() << " unique blocks\n";
00079 for (size_t ind=0; ind<blocks.size(); ++ind) {
00080 dump("u:\t",*blocks[ind].first,*blocks[ind].second);
00081 }
00082
00083
00084 // Loop through all RawRecords in mom:
00085 TObject* tobj=0;
00086 TIter fragiter = mom->FragmentIter();
00087 while( ( tobj = fragiter.Next() ) ) {
00088 const RawRecord* rawrec = dynamic_cast<const RawRecord*>(tobj);
00089 if (!rawrec) continue;
00090
00091 const RawBeamMonHeaderBlock* rbmhb=0;
00092 const RawBeamMonBlock* rbmb=0;
00093
00094 TIter blockiter = rawrec->GetRawBlockIter();
00095 while( ( tobj = blockiter.Next() ) ) {
00096 if (!rbmhb)
00097 rbmhb = dynamic_cast<const RawBeamMonHeaderBlock*>(tobj);
00098 if (!rbmb)
00099 rbmb = dynamic_cast<const RawBeamMonBlock*>(tobj);
00100 }
00101
00102 if (!rbmhb || !rbmb) continue;
00103 dump("a:\t",*rbmhb,*rbmb);
00104 }
00105
00106
00107 return JobCResult::kAOK;
00108 }
|
|
|
Implement for notification of begin of job Reimplemented from JobCModule. Definition at line 109 of file BDUniquifyTestModule.cxx. 00110 {
00111 }
|
|
|
Implement for notification of end of job Reimplemented from JobCModule. Definition at line 112 of file BDUniquifyTestModule.cxx. 00113 {
00114 }
|
1.3.9.1