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

TPCPass2 Class Reference

#include <TPCPass2.h>

Inheritance diagram for TPCPass2:

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

Public Member Functions

 TPCPass2 (const char *version)
 ~TPCPass2 ()
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

TPCPass2::TPCPass2 const char *  version  ) 
 

Definition at line 17 of file TPCPass2.cxx.

References jobc::Module::SetCfgVersion().

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

TPCPass2::~TPCPass2  ) 
 

Definition at line 25 of file TPCPass2.cxx.

00026 {
00027   std::cerr << "TPCPass2::~TPCPass2()" << std::endl;
00028 }


Member Function Documentation

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

Reimplemented from jobc::Module.

Definition at line 48 of file TPCPass2.cxx.

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

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

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

Reimplemented from jobc::Module.

Definition at line 72 of file TPCPass2.cxx.

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

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

Reimplemented from jobc::Module.

Definition at line 86 of file TPCPass2.cxx.

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

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

Reimplemented from jobc::Module.

Definition at line 101 of file TPCPass2.cxx.

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

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

Reimplemented from jobc::Module.

Definition at line 64 of file TPCPass2.cxx.

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

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

Reimplemented from jobc::Module.

Definition at line 79 of file TPCPass2.cxx.

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

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

Reimplemented from jobc::Module.

Definition at line 93 of file TPCPass2.cxx.

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

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

Reimplemented from jobc::Module.

Definition at line 32 of file TPCPass2.cxx.

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

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

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

Implements cfg::Observer.

Definition at line 108 of file TPCPass2.cxx.

References fRhigh, and fRlow.

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


Member Data Documentation

float TPCPass2::fRhigh [private]
 

A sample parameter.

Definition at line 30 of file TPCPass2.h.

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

float TPCPass2::fRlow [private]
 

A sample parameter.

Definition at line 29 of file TPCPass2.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:52 2008 for NOvA Offline by doxygen 1.3.5