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

Public Member Functions | |
| ChannelNoiseRates () | |
| ChannelNoiseRates (Int_t pCrate, Int_t pChAdd, Float_t pNormRate) | |
| virtual DbiTableRow * | CreateTableRow () const |
| void | Fill (DbiResultSet &rs, const DbiValidityRec *vrec) |
| virtual void | Store (DbiOutRowStream &ors, const DbiValidityRec *) const |
| void | WriteRates () |
| Int_t | GetCrate () const |
| Int_t | GetChAdd () const |
| Float_t | GetNormRate () const |
Private Member Functions | |
| ClassDef (ChannelNoiseRates, 1) | |
Private Attributes | |
| Int_t | fCrate |
| Int_t | fChAdd |
| Float_t | fNormRate |
|
|
Definition at line 17 of file ChannelNoiseRates.cxx.
|
|
||||||||||||||||
|
Definition at line 23 of file ChannelNoiseRates.cxx.
|
|
||||||||||||
|
|
|
|
Implements DbiTableRow. Definition at line 60 of file ChannelNoiseRates.cxx. 00061 {
00062 return new ChannelNoiseRates;
00063 }
|
|
||||||||||||
|
Implements DbiTableRow. Definition at line 65 of file ChannelNoiseRates.cxx. References fChAdd, and fCrate.
|
|
|
Definition at line 25 of file ChannelNoiseRates.h. Referenced by PhotonDefaultModel::Reset(). 00025 {return fChAdd; };
|
|
|
Definition at line 24 of file ChannelNoiseRates.h. Referenced by PhotonDefaultModel::Reset(). 00024 {return fCrate; };
|
|
|
Definition at line 26 of file ChannelNoiseRates.h. Referenced by PhotonDefaultModel::Reset(). 00026 {return fNormRate; };
|
|
||||||||||||
|
Reimplemented from DbiTableRow. Definition at line 71 of file ChannelNoiseRates.cxx. References fChAdd, and fCrate.
|
|
|
Definition at line 29 of file ChannelNoiseRates.cxx. References DbiWriter< T >::Close(). 00030 {
00031 // Write rates to the database from a file containing the rates
00032 VldRange vr(Detector::kFar, SimFlag::kMC || SimFlag::kData,
00033 VldTimeStamp(2006, 8, 15, 12, 0, 0),
00034 VldTimeStamp::GetEOT(),
00035 "Testing");
00036
00037 VldTimeStamp now;
00038 DbiWriter<ChannelNoiseRates> writer(vr, -1, 0, now);
00039
00040 fstream chanhitsfile;
00041
00042 chanhitsfile.open("chanhits_norm");
00043 if ( !chanhitsfile ) {
00044 cout << "FastPhotonModel: No chanhits file!!!" << std::endl;
00045 }
00046
00047 Int_t _chanadd;
00048 Float_t _chanrate;
00049 Int_t _crate;
00050 while (!chanhitsfile.eof()) {
00051 chanhitsfile >> _crate >> _chanadd >> _chanrate;
00052 ChannelNoiseRates row(_crate, _chanadd, _chanrate);
00053 writer << row;
00054 }
00055
00056 writer.Close();
00057
00058 }
|
|
|
Definition at line 29 of file ChannelNoiseRates.h. |
|
|
Definition at line 28 of file ChannelNoiseRates.h. |
|
|
Definition at line 30 of file ChannelNoiseRates.h. |
1.3.9.1