#include <BeamMonCuts.h>
Inheritance diagram for BeamMonCuts:

Public Member Functions | |
| BeamMonCuts (const string &cutValues="") | |
| BeamMonCuts (const Registry *reg) | |
| ~BeamMonCuts () | |
| virtual DbiTableRow * | CreateTableRow () const |
| DbiTableRow API. | |
| void | Fill (DbiResultSet &rs, const DbiValidityRec *vrec) |
| DbiTableRow API. | |
| virtual void | Store (DbiOutRowStream &ors, const DbiValidityRec *vrec) const |
| DbiTableRow API. | |
| const string & | GetCutValues () const |
| return private member | |
| void | FillRegistry (Registry *reg) const |
| fill a registry with the cut values | |
| void | SetCutValues (const string &cutValues) |
| State changing member functions. | |
| void | SetCutValues (const Registry *reg) |
Private Attributes | |
| string | fCutValues |
Created on: Thu Oct 26 17:40:13 2006
Definition at line 33 of file BeamMonCuts.h.
|
|
Definition at line 17 of file BeamMonCuts.cxx. 00018 : fCutValues(cutValues) 00019 {}
|
|
|
Definition at line 21 of file BeamMonCuts.cxx. References reg, and SetCutValues(). 00022 {
00023 if (reg) this->SetCutValues(reg);
00024 }
|
|
|
Definition at line 27 of file BeamMonCuts.cxx. 00028 {}
|
|
|
DbiTableRow API.
Implements DbiTableRow. Definition at line 30 of file BeamMonCuts.cxx. 00031 {
00032 return new BeamMonCuts;
00033 }
|
|
||||||||||||
|
DbiTableRow API.
Implements DbiTableRow. Definition at line 35 of file BeamMonCuts.cxx. 00036 {
00037 rs >> fCutValues;
00038 }
|
|
|
fill a registry with the cut values
Definition at line 45 of file BeamMonCuts.cxx. References Registry::Clear(), fCutValues, Registry::KeysLocked(), Registry::LockKeys(), Registry::LockValues(), Registry::ReadStream(), reg, Registry::UnLockKeys(), Registry::UnLockValues(), and Registry::ValuesLocked(). Referenced by BMSpillAna::SelectSpill(). 00046 {
00047 // Do nothing if pointer to registry is 0
00048 if (!reg) return;
00049
00050 // Record the current state of reg and then clear it
00051 Bool_t keysLocked = reg->KeysLocked();
00052 Bool_t valuesLocked = reg->ValuesLocked();
00053 reg->UnLockKeys();
00054 reg->UnLockValues();
00055 reg->Clear();
00056
00057 // use the owned BeamMonCuts to fill reg
00058 std::istringstream is(fCutValues);
00059 reg->ReadStream(is);
00060
00061 if ( keysLocked ) reg->LockKeys();
00062 if ( valuesLocked ) reg->LockValues();
00063
00064 }
|
|
|
return private member
Definition at line 50 of file BeamMonCuts.h. 00050 { return fCutValues; }
|
|
|
Definition at line 66 of file BeamMonCuts.cxx. References fCutValues, MAXMSG, Registry::PrintStream(), and reg. 00067 {
00068 if (!reg){
00069 MAXMSG("BeamMonCuts",Msg::kError,20) << "No valid registry to use!" << endl;
00070 return;
00071 }
00072
00073 std::ostringstream os;
00074 reg->PrintStream(os);
00075 fCutValues = os.str();
00076 }
|
|
|
State changing member functions.
Definition at line 56 of file BeamMonCuts.h. References fCutValues. Referenced by BeamMonCuts(). 00056 { fCutValues = cutValues;}
|
|
||||||||||||
|
DbiTableRow API.
Reimplemented from DbiTableRow. Definition at line 40 of file BeamMonCuts.cxx. 00041 {
00042 ors << fCutValues;
00043 }
|
|
|
Definition at line 61 of file BeamMonCuts.h. Referenced by FillRegistry(), and SetCutValues(). |
1.3.9.1