PulserQDP Class Reference

#include <PulserQDP.h>

Inheritance diagram for PulserQDP:
JobCModule

List of all members.

Public Member Functions

 PulserQDP ()
 ~PulserQDP ()
JobCResult Reco (MomNavigator *mom)

Private Attributes

TCanvas * fCanvas
TH1F * fNearHist
TH1F * fFarHist

Detailed Description

Definition at line 26 of file PulserQDP.h.


Constructor & Destructor Documentation

PulserQDP::PulserQDP (  ) 

Definition at line 33 of file PulserQDP.cxx.

00034 {
00035   fCanvas = new TCanvas("canvas","Pulser PLots",0,0,600,400);
00036   fNearHist = new TH1F("nearhist","Near End",1600,0,16000);
00037   fFarHist = new TH1F("farhist","Far End",1600,0,16000);
00038 }

PulserQDP::~PulserQDP (  ) 

Definition at line 40 of file PulserQDP.cxx.

00041 {
00042 
00043 }


Member Function Documentation

JobCResult PulserQDP::Reco ( MomNavigator mom  )  [virtual]

Implement this for read-write access to the MomNavigator

Reimplemented from JobCModule.

Definition at line 45 of file PulserQDP.cxx.

References fCanvas, fFarHist, fNearHist, PulserSummaryList::GetExpectedPoints(), PulserSummaryList::GetFarBegin(), PulserSummaryList::GetFarEnd(), MomNavigator::GetFragment(), PulserSummaryList::GetNearBegin(), PulserSummaryList::GetNearEnd(), PulserSummaryList::GetPointIndex(), it, Msg::kDebug, JobCResult::kFailed, JobCResult::kPassed, Msg::kVerbose, and MSG.

00046 {
00047  //Get PulserSummary...
00048    PulserSummaryList *psl = dynamic_cast<PulserSummaryList *>
00049       (mom->GetFragment("PulserSummaryList"));
00050    if (psl==0) {
00051       MSG("Pulser",Msg::kVerbose) <<"No pulser summary list here\n";
00052       return JobCResult::kFailed;
00053    }
00054    MSG("Pulser",Msg::kDebug) <<"Got pulser summary "<<psl->GetPointIndex()
00055                              <<" of "<<psl->GetExpectedPoints()<<endl;
00056    fNearHist->Reset();
00057    fFarHist->Reset();
00058    for (std::map<Int_t,PulserSummary>::const_iterator it=psl->GetNearBegin();
00059         it!=psl->GetNearEnd(); it++) {
00060      fNearHist->Fill((*it).second.GetMean());
00061    }
00062    for (std::map<Int_t,PulserSummary>::const_iterator it=psl->GetFarBegin();
00063         it!=psl->GetFarEnd(); it++) {
00064      fFarHist->Fill((*it).second.GetMean());
00065    }
00066    fCanvas->Clear();
00067    fCanvas->Divide(1,2,0,0,0);
00068    fCanvas->cd(1);
00069    fNearHist->Draw();
00070    fCanvas->cd(2);
00071    fFarHist->Draw();
00072    fCanvas->Update();
00073    return JobCResult::kPassed;
00074 }


Member Data Documentation

TCanvas* PulserQDP::fCanvas [private]

Definition at line 35 of file PulserQDP.h.

Referenced by Reco().

TH1F* PulserQDP::fFarHist [private]

Definition at line 37 of file PulserQDP.h.

Referenced by Reco().

TH1F* PulserQDP::fNearHist [private]

Definition at line 36 of file PulserQDP.h.

Referenced by Reco().


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

Generated on 2 Nov 2017 for loon by  doxygen 1.6.1