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

Public Member Functions | |
| CalMapperFits () | |
| CalMapperFits (Int_t sk, Int_t s, Int_t t, Int_t strip, Int_t end, Float_t chi, Int_t n, Float_t c1, Float_t c1e, Float_t l1, Float_t l1e, Float_t c2, Float_t c2e, Float_t l2, Float_t l2e) | |
| virtual | ~CalMapperFits () |
| Bool_t | CanL2Cache () const |
| UInt_t | GetIndex (UInt_t) const |
| UInt_t | GetSEIDkey () const |
| UInt_t | GetStripEndId () const |
| Int_t | GetTestID () const |
| Int_t | GetStripNum () const |
| Int_t | GetStripEnd () const |
| Float_t | GetNorm () const |
| Int_t | GetNPoints () const |
| Float_t | GetC1 () const |
| Float_t | GetC1Err () const |
| Float_t | GetC2 () const |
| Float_t | GetC2Err () const |
| Float_t | GetLambda1 () const |
| Float_t | GetLambda1Err () const |
| Float_t | GetLambda2 () const |
| Float_t | GetLambda2Err () const |
| virtual DbiTableRow * | CreateTableRow () const |
| virtual void | Fill (DbiResultSet &rs, const DbiValidityRec *vrec) |
| virtual void | Store (DbiOutRowStream &ors, const DbiValidityRec *vrec) const |
| Float_t | AttenCorrected (const Float_t rawcharge, const Float_t Y) const |
Private Member Functions | |
| CalMapperFits (const CalMapperFits &from) | |
Private Attributes | |
| Int_t | fSEIDkey |
| Int_t | fStripEndId |
| Int_t | fTestID |
| Int_t | fStripNum |
| Int_t | fStripEnd |
| Float_t | fNorm |
| Int_t | fNPoints |
| Float_t | fC1 |
| Float_t | fC1Err |
| Float_t | fLambda1 |
| Float_t | fLambda1Err |
| Float_t | fC2 |
| Float_t | fC2Err |
| Float_t | fLambda2 |
| Float_t | fLambda2Err |
|
|
Definition at line 20 of file CalMapperFits.h. 00020 { LEA_CTOR; }
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Definition at line 22 of file CalMapperFits.h. References fC1, fC1Err, fC2, fC2Err, fLambda1, fLambda1Err, fLambda2, fLambda2Err, fNorm, fNPoints, fSEIDkey, fStripEnd, fStripEndId, fStripNum, fTestID, and s(). 00025 : 00026 fSEIDkey(sk),fStripEndId(s) ,fTestID(t), fStripNum(strip), fStripEnd(end), fNorm(chi), 00027 fNPoints(n), fC1(c1), fC1Err(c1e), fLambda1(l1), fLambda1Err(l1e), 00028 fC2(c2), fC2Err(c2e), fLambda2(l2), fLambda2Err(l2e) { LEA_CTOR; }
|
|
|
Definition at line 30 of file CalMapperFits.h. 00030 { LEA_DTOR; };
|
|
|
Definition at line 63 of file CalMapperFits.h. 00064 : DbiTableRow(from) { LEA_CTOR; *this = from; }
|
|
||||||||||||
|
Definition at line 144 of file CalMapperFits.cxx. References fC1, fC2, fLambda1, fLambda2, fStripEndId, and MSG. 00144 {
00145 //
00146 //
00147 // Purpose: To apply sume dummy calibration to the linear charge
00148 //
00149 // Arguments:
00150 // xxxxxxxxx in yyyyyy
00151 //
00152 // Return:
00153 //
00154 // Contact: R.Nichol
00155 //
00156 // Specification:-
00157 // =============
00158 //
00159 // o
00160
00161 // Program Notes:-
00162 // =============
00163
00164 // None.
00165
00166 Float_t Corr = fC1 * exp(-Y/fLambda1) + fC2 * exp(-Y/fLambda2);
00167
00168 MSG("Calib",Msg::kVerbose) << "StripEndId " << fStripEndId
00169 << " raw charge " << rawcharge
00170 << " C1 " << fC1
00171 << " C2 " << fC2
00172 << " Lambda1 " << fLambda1
00173 << " Lambda2 " << fLambda2
00174 << " Y " << Y
00175 << " Corr " << Corr
00176 << " Atten Corrected "
00177 << rawcharge/Corr << "\n";
00178 return (rawcharge / Corr);
00179 }
|
|
|
Reimplemented from DbiTableRow. Definition at line 33 of file CalMapperFits.h. 00033 { return kTRUE; }
|
|
|
Implements DbiTableRow. Definition at line 51 of file CalMapperFits.h. 00051 {
00052 return new CalMapperFits; }
|
|
||||||||||||
|
Implements DbiTableRow. Definition at line 46 of file CalMapperFits.cxx. References MSG. 00047 {
00048
00049 //
00050 //
00051 // Purpose: Fill object from Result Set
00052 //
00053 // Arguments:
00054 // rs in Result Set used to fill object
00055 // vrec in Associated validity record (or 0 if filling
00056 // DbiValidityRec)
00057 // Return:
00058 //
00059 // Contact: N. West
00060 //
00061 // Specification:-
00062 // =============
00063 //
00064 // o Fill object from current row of Result Set.
00065
00066 // Program Notes:-
00067 // =============
00068
00069 // This method demonstrates both the "dumb" fill method (just
00070 // load the data as it comes) and the smart method (check column
00071 // name and load according to column order).
00072
00073 if ( rs.TableName() == "CALMAPPERFITS" ) {
00074 // Dumb method.
00075 rs >> fSEIDkey >> fStripEndId >> fTestID >> fStripNum >> fStripEnd >> fNorm >> fNPoints >> fC1 >> fC1Err >> fLambda1 >> fLambda1Err >> fC2 >> fC2Err >> fLambda2 >> fLambda2Err;
00076 }
00077 else {
00078
00079 // Smart method
00080 Int_t numCol = rs.NumCols();
00081 // The first column (SeqNo) has already been processed.
00082 for (Int_t curCol = rs.HasRowCounter() ? 3 : 2; curCol <= numCol; ++curCol) {
00083 string colName = rs.CurColName();
00084 if ( colName == "STRIPENDID" ) rs >> fStripEndId;
00085 else if( colName == "SEIDKEY" ) rs >> fSEIDkey;
00086 else if( colName == "TESTID" ) rs >> fTestID;
00087 else if( colName == "STRIPNUM" ) rs >> fStripNum;
00088 else if( colName == "STRIPEND" ) rs >> fStripEnd;
00089 else if( colName == "NORM" ) rs >> fNorm;
00090 else if( colName == "NPOINTS" ) rs >> fNPoints;
00091 else if( colName == "C1" ) rs >> fC1;
00092 else if( colName == "C1ERR" ) rs >> fC1Err;
00093 else if( colName == "LAMBDA1" ) rs >> fLambda1;
00094 else if( colName == "LAMBDA1ERR" ) rs >> fLambda1Err;
00095 else if( colName == "C2" ) rs >> fC2;
00096 else if( colName == "C2ERR" ) rs >> fC2Err;
00097 else if( colName == "LAMBDA2" ) rs >> fLambda2;
00098 else if( colName == "LAMBDA2ERR" ) rs >> fLambda2Err;
00099 else {
00100 MSG("Dbi",Msg::kDebug) << "Ignoring column " << curCol
00101 << "(" << colName << ")"
00102 << "; not part of CalMapperFits"
00103 << endl;
00104 rs.IncrementCurCol();
00105 }
00106 }
00107 }
00108
00109 }
|
|
|
Definition at line 42 of file CalMapperFits.h. Referenced by FitTrackMSListModule::Ana(). 00042 {return fC1;}
|
|
|
Definition at line 43 of file CalMapperFits.h. 00043 {return fC1Err;}
|
|
|
Definition at line 44 of file CalMapperFits.h. Referenced by FitTrackMSListModule::Ana(). 00044 {return fC2;}
|
|
|
Definition at line 45 of file CalMapperFits.h. 00045 {return fC2Err;}
|
|
|
Reimplemented from DbiTableRow. Definition at line 34 of file CalMapperFits.h. 00034 { return fSEIDkey; }
|
|
|
Definition at line 46 of file CalMapperFits.h. Referenced by FitTrackMSListModule::Ana(). 00046 {return fLambda1;}
|
|
|
Definition at line 47 of file CalMapperFits.h. 00047 {return fLambda1Err;}
|
|
|
Definition at line 48 of file CalMapperFits.h. Referenced by FitTrackMSListModule::Ana(). 00048 {return fLambda2;}
|
|
|
Definition at line 49 of file CalMapperFits.h. 00049 {return fLambda2Err;}
|
|
|
Definition at line 40 of file CalMapperFits.h. Referenced by FitTrackMSListModule::Ana(). 00040 {return fNorm;}
|
|
|
Definition at line 41 of file CalMapperFits.h. 00041 {return fNPoints;}
|
|
|
Definition at line 35 of file CalMapperFits.h. 00035 { return fSEIDkey; }
|
|
|
Definition at line 39 of file CalMapperFits.h. 00039 {return fStripEnd;}
|
|
|
Definition at line 36 of file CalMapperFits.h. 00036 { return fStripEndId; }
|
|
|
Definition at line 38 of file CalMapperFits.h. 00038 {return fStripNum;}
|
|
|
Definition at line 37 of file CalMapperFits.h. 00037 {return fTestID;}
|
|
||||||||||||
|
Reimplemented from DbiTableRow. Definition at line 113 of file CalMapperFits.cxx. References fC1, fC1Err, fC2, fC2Err, fLambda1, fLambda1Err, fLambda2, fNorm, fNPoints, fSEIDkey, fStripEnd, fStripEndId, fStripNum, and fTestID. 00114 {
00115 //
00116 //
00117 // Purpose: Stream object to output row stream
00118 //
00119 // Arguments:
00120 // ors in Output row stream.
00121 // vrec in Associated validity record (or 0 if filling
00122 // DbiValidityRec)
00123 //
00124 // Return:
00125 //
00126 // Contact: N. West
00127 //
00128 // Specification:-
00129 // =============
00130 //
00131 // o Stream object to output row stream.
00132
00133 // Program Notes:-
00134 // =============
00135
00136 // None.
00137
00138 ors << fSEIDkey << fStripEndId << fTestID << fStripNum << fStripEnd << fNorm << fNPoints << fC1 << fC1Err << fLambda1 << fLambda1Err << fC2 << fC2Err << fLambda2 << fLambda2Err;
00139
00140 }
|
|
|
Definition at line 74 of file CalMapperFits.h. Referenced by AttenCorrected(), CalMapperFits(), and Store(). |
|
|
Definition at line 75 of file CalMapperFits.h. Referenced by CalMapperFits(), and Store(). |
|
|
Definition at line 78 of file CalMapperFits.h. Referenced by AttenCorrected(), CalMapperFits(), and Store(). |
|
|
Definition at line 79 of file CalMapperFits.h. Referenced by CalMapperFits(), and Store(). |
|
|
Definition at line 76 of file CalMapperFits.h. Referenced by AttenCorrected(), CalMapperFits(), and Store(). |
|
|
Definition at line 77 of file CalMapperFits.h. Referenced by CalMapperFits(), and Store(). |
|
|
Definition at line 80 of file CalMapperFits.h. Referenced by AttenCorrected(), CalMapperFits(), and Store(). |
|
|
Definition at line 81 of file CalMapperFits.h. Referenced by CalMapperFits(). |
|
|
Definition at line 72 of file CalMapperFits.h. Referenced by CalMapperFits(), and Store(). |
|
|
Definition at line 73 of file CalMapperFits.h. Referenced by CalMapperFits(), and Store(). |
|
|
Definition at line 67 of file CalMapperFits.h. Referenced by CalMapperFits(), and Store(). |
|
|
Definition at line 71 of file CalMapperFits.h. Referenced by CalMapperFits(), and Store(). |
|
|
Definition at line 68 of file CalMapperFits.h. Referenced by AttenCorrected(), CalMapperFits(), and Store(). |
|
|
Definition at line 70 of file CalMapperFits.h. Referenced by CalMapperFits(), and Store(). |
|
|
Definition at line 69 of file CalMapperFits.h. Referenced by CalMapperFits(), and Store(). |
1.3.9.1