BDUniquifyTestModule Class Reference

#include <BDUniquifyTestModule.h>

Inheritance diagram for BDUniquifyTestModule:
JobCModule

List of all members.

Public Member Functions

 BDUniquifyTestModule ()
virtual ~BDUniquifyTestModule ()
JobCResult Ana (const MomNavigator *mom)
void BeginJob ()
void EndJob ()

Detailed Description

Definition at line 7 of file BDUniquifyTestModule.h.


Constructor & Destructor Documentation

BDUniquifyTestModule::BDUniquifyTestModule (  ) 

Definition at line 21 of file BDUniquifyTestModule.cxx.

00022 {
00023 }

BDUniquifyTestModule::~BDUniquifyTestModule (  )  [virtual]

Definition at line 24 of file BDUniquifyTestModule.cxx.

00025 {
00026 }


Member Function Documentation

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

Implement this for read only access to the MomNavigator

Reimplemented from JobCModule.

Definition at line 73 of file BDUniquifyTestModule.cxx.

References dump(), MomNavigator::FragmentIter(), RawRecord::GetRawBlockIter(), BDUniquify::GetUniqueBlocks(), JobCResult::kAOK, and Munits::second.

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 }

void BDUniquifyTestModule::BeginJob ( void   )  [virtual]

Implement for notification of begin of job

Reimplemented from JobCModule.

Definition at line 109 of file BDUniquifyTestModule.cxx.

00110 {
00111 }

void BDUniquifyTestModule::EndJob (  )  [virtual]

Implement for notification of end of job

Reimplemented from JobCModule.

Definition at line 112 of file BDUniquifyTestModule.cxx.

00113 {
00114 }


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

Generated on 22 Nov 2017 for loon by  doxygen 1.6.1