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

TPCdEdx Class Reference

#include <TPCdEdx.h>

Inheritance diagram for TPCdEdx:

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

Public Member Functions

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

TPCdEdx::TPCdEdx const char *  version  ) 
 

Definition at line 17 of file TPCdEdx.cxx.

References jobc::Module::SetCfgVersion().

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

TPCdEdx::~TPCdEdx  ) 
 

Definition at line 25 of file TPCdEdx.cxx.

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


Member Function Documentation

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

Reimplemented from jobc::Module.

Definition at line 48 of file TPCdEdx.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 << "TPCdEdx: Ana Passed (" 
00054               << fRlow << "," << r << "," << fRhigh << ")" << std::endl;
00055     return jobc::kPassed;
00056   }
00057   std::cerr << "TPCdEdx: Ana Failed (" 
00058             << fRlow << "," << r << "," << fRhigh << ")" << std::endl;
00059   return jobc::kFailed;
00060 }

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

Reimplemented from jobc::Module.

Definition at line 72 of file TPCdEdx.cxx.

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

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

Reimplemented from jobc::Module.

Definition at line 86 of file TPCdEdx.cxx.

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

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

Reimplemented from jobc::Module.

Definition at line 101 of file TPCdEdx.cxx.

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

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

Reimplemented from jobc::Module.

Definition at line 64 of file TPCdEdx.cxx.

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

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

Reimplemented from jobc::Module.

Definition at line 79 of file TPCdEdx.cxx.

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

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

Reimplemented from jobc::Module.

Definition at line 93 of file TPCdEdx.cxx.

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

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

Reimplemented from jobc::Module.

Definition at line 32 of file TPCdEdx.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 << "TPCdEdx: Reco Passed (" 
00038               << fRlow << "," << r << "," << fRhigh << ")" << std::endl;
00039     return jobc::kPassed;
00040   }
00041   std::cerr << "TPCdEdx: Reco Failed (" 
00042             << fRlow << "," << r << "," << fRhigh << ")" << std::endl;
00043   return jobc::kFailed;
00044 }

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

Implements cfg::Observer.

Definition at line 108 of file TPCdEdx.cxx.

References fRhigh, and fRlow.

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


Member Data Documentation

float TPCdEdx::fRhigh [private]
 

A sample parameter.

Definition at line 29 of file TPCdEdx.h.

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

float TPCdEdx::fRlow [private]
 

A sample parameter.

Definition at line 28 of file TPCdEdx.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