#include <LIPlane.h>
Public Member Functions | |
| LIPlane (Int_t firstStrip, Int_t lastStrip) | |
| ~LIPlane () | |
| void | SetPoint (Int_t stripEnd, Int_t strip, Double_t adc, Double_t gain, Double_t gainErr, Double_t numEnt) |
| Double_t | GetAdc (Int_t stripEnd, Int_t strip) |
| std::vector< Double_t > | GetAdc () |
| Double_t | GetGain (Int_t stripEnd, Int_t strip) |
| Double_t | GetGainErr (Int_t stripEnd, Int_t strip) |
| Double_t | GetNumEnt (Int_t stripEnd, Int_t strip) |
Private Member Functions | |
| void | InitialiseVariables (Int_t firstStrip, Int_t lastStrip) |
Private Attributes | |
| std::vector< Double_t > | fAdc |
| std::vector< Double_t > | fAdc2 |
| std::vector< Double_t > | fGain |
| std::vector< Double_t > | fGain2 |
| std::vector< Double_t > | fGainErr |
| std::vector< Double_t > | fGainErr2 |
| std::vector< Double_t > | fNumEnt |
| std::vector< Double_t > | fNumEnt2 |
| std::vector< Double_t > | fCounter |
| std::vector< Double_t > | fCounter2 |
| Int_t | fFirstStrip |
| Int_t | fLed |
| Double_t | fHighestPh |
| Double_t | fHighestPin |
| Int_t | fLastStrip |
| Double_t | fLowestPh |
| Double_t | fLowestPin |
| Double_t | fMaxPin |
| Double_t | fMaxPin2 |
| Double_t | fMinAdc |
| Double_t | fMaxAdc |
| Int_t | fPulserBox |
| std::string | fS |
|
||||||||||||
|
Definition at line 24 of file LIPlane.cxx. References MSG. 00025 {
00026 MSG("LIPlane", Msg::kDebug)
00027 <<"Running LIPlane default constructor..."<<endl;
00028
00029 this->InitialiseVariables(firstStrip,lastStrip);
00030
00031 MSG("LIPlane", Msg::kDebug)
00032 <<"Finished LIPlane default constructor"<<endl;
00033 }
|
|
|
Definition at line 37 of file LIPlane.cxx. References MSG. 00038 {
00039 MSG("LIPlane", Msg::kDebug)
00040 <<"Running LIPlane destructor..."<<endl;
00041
00042
00043 MSG("LIPlane", Msg::kDebug)
00044 <<"Finished LIPlane destructor"<<endl;
00045 }
|
|
|
Definition at line 220 of file LIPlane.cxx. References MSG. 00221 {
00222 MSG("LIPlane",Msg::kVerbose)
00223 <<"Running GetAdc method..."<<endl;
00224
00225 MSG("LIPlane",Msg::kVerbose)
00226 <<"GetAdc method finished"<<endl;
00227 return fAdc;
00228 }
|
|
||||||||||||
|
Definition at line 205 of file LIPlane.cxx. Referenced by operator<(), and operator==(). 00206 {
00207 if (strip<=fLastStrip && strip>=fFirstStrip){
00208 if (stripEnd==1){
00209 return fAdc[strip];
00210 }
00211 if (stripEnd==2){
00212 return fAdc2[strip];
00213 }
00214 }
00215 return -1;
00216 }
|
|
||||||||||||
|
Definition at line 173 of file LIPlane.cxx. 00174 {
00175
00176 if (strip<=fLastStrip && strip>=fFirstStrip){
00177 if (stripEnd==1){
00178 return fGain[strip];
00179 }
00180 if (stripEnd==2){
00181 return fGain2[strip];
00182 }
00183 }
00184 return -1;
00185 }
|
|
||||||||||||
|
Definition at line 189 of file LIPlane.cxx. References fGainErr, and fGainErr2. 00190 {
00191
00192 if (strip<=fLastStrip && strip>=fFirstStrip){
00193 if (stripEnd==1){
00194 return fGainErr[strip];
00195 }
00196 if (stripEnd==2){
00197 return fGainErr2[strip];
00198 }
00199 }
00200 return -1;
00201 }
|
|
||||||||||||
|
Definition at line 158 of file LIPlane.cxx. References fNumEnt, and fNumEnt2. 00159 {
00160 if (strip<=fLastStrip && strip>=fFirstStrip){
00161 if (stripEnd==1){
00162 return fNumEnt[strip];
00163 }
00164 if (stripEnd==2){
00165 return fNumEnt2[strip];
00166 }
00167 }
00168 return -1;
00169 }
|
|
||||||||||||
|
Definition at line 62 of file LIPlane.cxx. References fAdc, fAdc2, fCounter, fCounter2, fFirstStrip, fGain, fGain2, fGainErr, fGainErr2, fHighestPh, fHighestPin, fLastStrip, fLed, fLowestPh, fLowestPin, fMaxAdc, fMaxPin, fMaxPin2, fMinAdc, fNumEnt, fNumEnt2, fPulserBox, fS, and MSG. 00063 {
00064 MSG("LIPlane",Msg::kVerbose)
00065 <<"Running InitialiseVariables method..."<<endl;
00066
00067 fLed=-1;
00068 fMaxPin=-1;
00069 fMaxPin2=-1;
00070 fMinAdc=1e6;
00071 fMaxAdc=-1;
00072 fPulserBox=-1;
00073 fS="";
00074 fFirstStrip=firstStrip;
00075 fLastStrip=lastStrip;
00076
00077 fHighestPh=-1;//ph at highest required adc
00078 fHighestPin=-1;//pin adc at highest required adc
00079 fLowestPh=-1;//ph at lowest required adc
00080 fLowestPin=-1;//pin adc at lowest required adc
00081
00082 //initialise all the vectors
00083 for (Int_t st=0;st<=fLastStrip;st++){
00084 fAdc.push_back(-1);
00085 fAdc2.push_back(-1);
00086 fGain.push_back(-1);
00087 fGain2.push_back(-1);
00088 fGainErr.push_back(-1);
00089 fGainErr2.push_back(-1);
00090 fNumEnt.push_back(-1);
00091 fNumEnt2.push_back(-1);
00092 fCounter.push_back(0);
00093 fCounter2.push_back(0);
00094 }
00095
00096 MSG("LIPlane",Msg::kVerbose)
00097 <<"InitialiseVariables method finished"<<endl;
00098 }
|
|
||||||||||||||||||||||||||||
|
Definition at line 102 of file LIPlane.cxx. References fAdc, fAdc2, fCounter, fCounter2, fGain, fGain2, fGainErr, fGainErr2, fNumEnt, fNumEnt2, and MSG. 00104 {
00105 MSG("LIPlane",Msg::kVerbose)
00106 <<"Running SetPoint method..."<<endl;
00107
00108 if (strip<=fLastStrip && strip>=fFirstStrip){
00109
00110 MSG("LIPlane",Msg::kVerbose)
00111 <<"("<<strip<<","<<stripEnd<<")"
00112 <<" Setting point: adc="<<adc<<", gain="<<gain<<endl;
00113
00114 if (stripEnd==1){
00115 fAdc[strip]=adc;
00116 fGain[strip]=gain;
00117 fGainErr[strip]=gainErr;
00118 fNumEnt[strip]=numEnt;
00119
00120 //sanity check
00121 if (fCounter[strip]!=0){
00122 MSG("LIPlane",Msg::kWarning)
00123 <<"This strip and stripEnd have already been set!"<<endl
00124 <<"Strip="<<strip<<", stripEnd="<<stripEnd<<endl;
00125 }
00126 fCounter[strip]++;
00127 }
00128 else if (stripEnd==2){
00129 fAdc2[strip]=adc;
00130 fGain2[strip]=gain;
00131 fGainErr2[strip]=gainErr;
00132 fNumEnt2[strip]=numEnt;
00133
00134 //sanity check
00135 if (fCounter2[strip]!=0){
00136 MSG("LIPlane",Msg::kWarning)
00137 <<"This strip and stripEnd have already been set!"<<endl
00138 <<"Strip="<<strip<<", stripEnd="<<stripEnd<<endl;
00139 }
00140 fCounter2[strip]++;
00141 }
00142 else {
00143 MSG("LIPlane",Msg::kWarning)
00144 <<"StripEnd is wrong"<<endl;
00145 }
00146 }
00147 else {
00148 MSG("LIPlane",Msg::kWarning)
00149 <<"Strip is wrong"<<endl;
00150 }
00151
00152 MSG("LIPlane",Msg::kVerbose)
00153 <<"SetPoint method finished"<<endl;
00154 }
|
|
|
Definition at line 53 of file LIPlane.h. Referenced by GetAdc(), InitialiseVariables(), and SetPoint(). |
|
|
Definition at line 54 of file LIPlane.h. Referenced by GetAdc(), InitialiseVariables(), and SetPoint(). |
|
|
Definition at line 61 of file LIPlane.h. Referenced by InitialiseVariables(), and SetPoint(). |
|
|
Definition at line 62 of file LIPlane.h. Referenced by InitialiseVariables(), and SetPoint(). |
|
|
Definition at line 64 of file LIPlane.h. Referenced by InitialiseVariables(). |
|
|
Definition at line 55 of file LIPlane.h. Referenced by GetGain(), InitialiseVariables(), and SetPoint(). |
|
|
Definition at line 56 of file LIPlane.h. Referenced by GetGain(), InitialiseVariables(), and SetPoint(). |
|
|
Definition at line 57 of file LIPlane.h. Referenced by GetGainErr(), InitialiseVariables(), and SetPoint(). |
|
|
Definition at line 58 of file LIPlane.h. Referenced by GetGainErr(), InitialiseVariables(), and SetPoint(). |
|
|
Definition at line 66 of file LIPlane.h. Referenced by InitialiseVariables(). |
|
|
Definition at line 67 of file LIPlane.h. Referenced by InitialiseVariables(). |
|
|
Definition at line 68 of file LIPlane.h. Referenced by InitialiseVariables(). |
|
|
Definition at line 65 of file LIPlane.h. Referenced by InitialiseVariables(). |
|
|
Definition at line 69 of file LIPlane.h. Referenced by InitialiseVariables(). |
|
|
Definition at line 70 of file LIPlane.h. Referenced by InitialiseVariables(). |
|
|
Definition at line 74 of file LIPlane.h. Referenced by InitialiseVariables(). |
|
|
Definition at line 71 of file LIPlane.h. Referenced by InitialiseVariables(). |
|
|
Definition at line 72 of file LIPlane.h. Referenced by InitialiseVariables(). |
|
|
Definition at line 73 of file LIPlane.h. Referenced by InitialiseVariables(). |
|
|
Definition at line 59 of file LIPlane.h. Referenced by GetNumEnt(), InitialiseVariables(), and SetPoint(). |
|
|
Definition at line 60 of file LIPlane.h. Referenced by GetNumEnt(), InitialiseVariables(), and SetPoint(). |
|
|
Definition at line 75 of file LIPlane.h. Referenced by InitialiseVariables(). |
|
|
Definition at line 76 of file LIPlane.h. Referenced by InitialiseVariables(). |
1.3.9.1