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

TPCPass1 Class Reference

#include <TPCPass1.h>

Inheritance diagram for TPCPass1:

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

Public Member Functions

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

TPCPass1::TPCPass1 const char *  version  ) 
 

Definition at line 18 of file TPCPass1.cxx.

References jobc::Module::SetCfgVersion().

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

TPCPass1::~TPCPass1  ) 
 

Definition at line 26 of file TPCPass1.cxx.

00027 {
00028   std::cerr << "TPCPass1::~TPCPass1()" << std::endl;
00029 }


Member Function Documentation

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

Reimplemented from jobc::Module.

Definition at line 49 of file TPCPass1.cxx.

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

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

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

Reimplemented from jobc::Module.

Definition at line 73 of file TPCPass1.cxx.

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

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

Reimplemented from jobc::Module.

Definition at line 87 of file TPCPass1.cxx.

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

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

Reimplemented from jobc::Module.

Definition at line 102 of file TPCPass1.cxx.

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

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

Reimplemented from jobc::Module.

Definition at line 65 of file TPCPass1.cxx.

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

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

Reimplemented from jobc::Module.

Definition at line 80 of file TPCPass1.cxx.

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

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

Reimplemented from jobc::Module.

Definition at line 94 of file TPCPass1.cxx.

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

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

Reimplemented from jobc::Module.

Definition at line 33 of file TPCPass1.cxx.

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

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

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

Implements cfg::Observer.

Definition at line 109 of file TPCPass1.cxx.

References fRhigh, and fRlow.

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


Member Data Documentation

float TPCPass1::fRhigh [private]
 

A sample parameter.

Definition at line 30 of file TPCPass1.h.

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

float TPCPass1::fRlow [private]
 

A sample parameter.

Definition at line 29 of file TPCPass1.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