Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

RICHReco Class Reference

#include <RICHReco.h>

Inheritance diagram for RICHReco:

jobc::Module cfg::Observer List of all members.

Public Member Functions

 RICHReco (const char *version)
 ~RICHReco ()
jobc::Result Reco (edm::EventHandle &evt)
jobc::Result Ana (const edm::EventHandle &evt)
void NewFile (const char *filename)
void EndFile (const char *filename)
void NewRun (int run, int subrun)
void EndRun (int run, int subrun)
void NewSubrun (int run, int subrun)
void EndSubrun (int run, int subrun)
void Update (const cfg::Config &c)

Private Attributes

float fRlow
 A sample parameter.

float fRhigh
 A sample parameter.


Constructor & Destructor Documentation

RICHReco::RICHReco const char *  version  ) 
 

Definition at line 16 of file RICHReco.cxx.

References jobc::Module::SetCfgVersion().

00016                                 : jobc::Module("RICHReco")
00017 {
00018   std::cerr << "RICHReco::RICHReco()" << std::endl;
00019   this->SetCfgVersion(v);
00020 }

RICHReco::~RICHReco  ) 
 

Definition at line 24 of file RICHReco.cxx.

00025 {
00026   std::cerr << "RICHReco::~RICHReco()" << std::endl;
00027 }


Member Function Documentation

jobc::Result RICHReco::Ana const edm::EventHandle evt  )  [virtual]
 

Reimplemented from jobc::Module.

Definition at line 47 of file RICHReco.cxx.

References fRhigh, fRlow, gsRand(), and jobc::Result.

00048 {
00049   double r;
00050   r = gsRand.Uniform();
00051   if (fRlow<=r && fRhigh>r) {
00052     std::cerr << "RICHReco: Ana Passed (" 
00053               << fRlow << "," << r << "," << fRhigh << ")" << std::endl;
00054     return jobc::kPassed;
00055   }
00056   std::cerr << "RICHReco: Ana Failed (" 
00057             << fRlow << "," << r << "," << fRhigh << ")" << std::endl;
00058   return jobc::kFailed;
00059 }

void RICHReco::EndFile const char *  filename  )  [virtual]
 

Reimplemented from jobc::Module.

Definition at line 71 of file RICHReco.cxx.

00071                                            {
00072   std::cerr << 
00073     "RICHReco: EndFile(" << filename << ")" << std::endl;
00074 }

void RICHReco::EndRun int  run,
int  subrun
[virtual]
 

Reimplemented from jobc::Module.

Definition at line 85 of file RICHReco.cxx.

00085                                          {
00086   std::cerr << 
00087     "RICHReco: EndRun(" << run << "," << subrun << ")" << std::endl;
00088 }

void RICHReco::EndSubrun int  run,
int  subrun
[virtual]
 

Reimplemented from jobc::Module.

Definition at line 100 of file RICHReco.cxx.

00100                                             {
00101   std::cerr << 
00102     "RICHReco: EndSubrun(" << run << "," << subrun << ")" << std::endl;
00103 }

void RICHReco::NewFile const char *  filename  )  [virtual]
 

Reimplemented from jobc::Module.

Definition at line 63 of file RICHReco.cxx.

00064 {
00065   std::cerr << 
00066     "RICHReco: NewFile(" << filename << ")" << std::endl;
00067 }

void RICHReco::NewRun int  run,
int  subrun
[virtual]
 

Reimplemented from jobc::Module.

Definition at line 78 of file RICHReco.cxx.

00078                                          {
00079   std::cerr << 
00080     "RICHReco: NewRun(" << run << "," << subrun << ")" << std::endl;
00081 }

void RICHReco::NewSubrun int  run,
int  subrun
[virtual]
 

Reimplemented from jobc::Module.

Definition at line 92 of file RICHReco.cxx.

00093 {
00094   std::cerr << 
00095     "RICHReco: NewSubrun(" << run << "," << subrun << ")" << std::endl;
00096 }

jobc::Result RICHReco::Reco edm::EventHandle evt  )  [virtual]
 

Reimplemented from jobc::Module.

Definition at line 31 of file RICHReco.cxx.

References fRhigh, fRlow, gsRand(), and jobc::Result.

00032 {
00033   double r;
00034   r = gsRand.Uniform();
00035   if (fRlow<=r && fRhigh>r) {
00036     std::cerr << "RICHReco: Reco Passed (" 
00037               << fRlow << "," << r << "," << fRhigh << ")" << std::endl;
00038     return jobc::kPassed;
00039   }
00040   std::cerr << "RICHReco: Reco Failed (" 
00041             << fRlow << "," << r << "," << fRhigh << ")" << std::endl;
00042   return jobc::kFailed;
00043 }

void RICHReco::Update const cfg::Config c  )  [virtual]
 

Implements cfg::Observer.

Definition at line 107 of file RICHReco.cxx.

References fRhigh, and fRlow.

00108 {
00109   std::cerr << "RICHReco: Config" << std::endl;
00110 
00111   c("Rlow"). Get( fRlow  );
00112   c("Rhigh").Get( fRhigh );
00113 }


Member Data Documentation

float RICHReco::fRhigh [private]
 

A sample parameter.

Definition at line 29 of file RICHReco.h.

Referenced by Ana(), Reco(), and Update().

float RICHReco::fRlow [private]
 

A sample parameter.

Definition at line 28 of file RICHReco.h.

Referenced by Ana(), Reco(), and Update().


The documentation for this class was generated from the following files:
Generated on Fri Jul 25 02:05:51 2008 for NOvA Offline by doxygen 1.3.5