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

|
|
Definition at line 31 of file CandStripSRHandle.cxx. Referenced by DupHandle(). 00032 {
00033 }
|
|
|
Definition at line 36 of file CandStripSRHandle.cxx. 00036 : 00037 CandStripHandle(cdh) 00038 { 00039 }
|
|
|
Definition at line 42 of file CandStripSRHandle.cxx. 00042 : 00043 CandStripHandle(cd) 00044 { 00045 }
|
|
|
Definition at line 48 of file CandStripSRHandle.cxx. 00049 {
00050 }
|
|
|
Reimplemented from CandStripHandle. Definition at line 53 of file CandStripSRHandle.cxx. References CandStripSRHandle(). 00054 {
00055 return (new CandStripSRHandle(*this));
00056 }
|
|
|
Returns the earliest time in the strip Reimplemented from CandStripHandle. Definition at line 113 of file CandStripSRHandle.cxx. References CandStripSR::fBegTime, CandHandle::GetCandBase(), and min(). 00114 {
00115 const CandStripSR *candstrip = dynamic_cast<const CandStripSR *>(GetCandBase());
00116 switch (stripend_t) {
00117 case StripEnd::kNegative:
00118 return candstrip->fBegTime[0];
00119 break;
00120 case StripEnd::kPositive:
00121 return candstrip->fBegTime[1];
00122 break;
00123 default:
00124 if (candstrip->fBegTime[0]==-1.) {
00125 return candstrip->fBegTime[1];
00126 } else if (candstrip->fBegTime[1]==-1.) {
00127 return candstrip->fBegTime[0];
00128 } else {
00129 return min(candstrip->fBegTime[0],candstrip->fBegTime[1]);
00130 }
00131 break;
00132 }
00133 }
|
|
||||||||||||
|
alternate form of GetCharge Reimplemented from CandStripHandle. Definition at line 227 of file CandStripSRHandle.cxx. References GetCharge(). 00228 {
00229 return GetCharge(stripend_t,caltype_t);
00230 }
|
|
||||||||||||
|
returns charge for an individual strip end, or entire strip. Default is entire strip. Charge units are set by CalDigitType. Possibilities are kNone, kPE, kSigLin, kSigCorr, Reimplemented from CandStripHandle. Definition at line 192 of file CandStripSRHandle.cxx. References CandStripSR::fChargeNone, CandStripSR::fChargePE, CandStripSR::fChargeSigCorr, CandStripSR::fChargeSigLin, and CandHandle::GetCandBase(). 00193 {
00194 const CandStripSR *candstrip = dynamic_cast<const CandStripSR *>(GetCandBase());
00195 Float_t charge[2];
00196 switch (caltype_t) {
00197 case CalDigitType::kNone:
00198 charge[0] = candstrip->fChargeNone[0];
00199 charge[1] = candstrip->fChargeNone[1];
00200 break;
00201 case CalDigitType::kSigLin:
00202 charge[0] = candstrip->fChargeSigLin[0];
00203 charge[1] = candstrip->fChargeSigLin[1];
00204 break;
00205 case CalDigitType::kSigCorr:
00206 charge[0] = candstrip->fChargeSigCorr[0];
00207 charge[1] = candstrip->fChargeSigCorr[1];
00208 break;
00209 default:
00210 charge[0] = candstrip->fChargePE[0];
00211 charge[1] = candstrip->fChargePE[1];
00212 break;
00213 }
00214 switch (stripend_t) {
00215 case StripEnd::kNegative:
00216 return (Double_t)(charge[0]);
00217 break;
00218 case StripEnd::kPositive:
00219 return (Double_t)(charge[1]);
00220 break;
00221 default:
00222 return (Double_t)(charge[0]+charge[1]);
00223 break;
00224 }
00225 }
|
|
|
Reimplemented from CandStripHandle. Definition at line 242 of file CandStripSRHandle.cxx. References GetCharge(). 00243 {
00244 return GetCharge(StripEnd::kWhole,caltype_t);
00245 }
|
|
|
Reimplemented from CandStripHandle. Definition at line 237 of file CandStripSRHandle.cxx. References GetCharge(). 00238 {
00239 return GetCharge(stripend_t,CalDigitType::kPE);
00240 }
|
|
|
Reimplemented from CandStripHandle. Definition at line 232 of file CandStripSRHandle.cxx. Referenced by GetCharge(). 00233 {
00234 return GetCharge(StripEnd::kWhole,CalDigitType::kPE);
00235 }
|
|
|
Reimplemented from CandStripHandle. Definition at line 299 of file CandStripSRHandle.cxx. References CandStripSR::fDemuxVetoFlag, and CandHandle::GetCandBase(). 00300 {
00301 const CandStripSR *candstrip = dynamic_cast<const CandStripSR *>(GetCandBase());
00302 switch (stripend_t) {
00303 case StripEnd::kNegative:
00304 return candstrip->fDemuxVetoFlag[0];
00305 break;
00306 case StripEnd::kPositive:
00307 return candstrip->fDemuxVetoFlag[1];
00308 break;
00309 default:
00310 return candstrip->fDemuxVetoFlag[2];
00311 break;
00312 }
00313 }
|
|
|
Returns latest time in the strip. Reimplemented from CandStripHandle. Definition at line 142 of file CandStripSRHandle.cxx. References CandStripSR::fEndTime, CandHandle::GetCandBase(), and max(). 00143 {
00144 const CandStripSR *candstrip = dynamic_cast<const CandStripSR *>(GetCandBase());
00145 switch (stripend_t) {
00146 case StripEnd::kNegative:
00147 return candstrip->fEndTime[0];
00148 break;
00149 case StripEnd::kPositive:
00150 return candstrip->fEndTime[1];
00151 break;
00152 default:
00153 if (candstrip->fEndTime[0]==-1.) {
00154 return candstrip->fEndTime[1];
00155 } else if (candstrip->fEndTime[1]==-1.) {
00156 return candstrip->fEndTime[0];
00157 } else {
00158 return max(candstrip->fEndTime[0],candstrip->fEndTime[1]);
00159 }
00160 break;
00161 }
00162 }
|
|
|
Reimplemented from CandStripHandle. Definition at line 64 of file CandStripSRHandle.cxx. References CandStripSR::fPlane, and CandHandle::GetCandBase(). 00065 {
00066 const CandStripSR *candstrip = dynamic_cast<const CandStripSR *>(GetCandBase());
00067 return candstrip->fPlane;
00068 }
|
|
|
Reimplemented from CandStripHandle. Definition at line 253 of file CandStripSRHandle.cxx. References CandStripSR::fPlaneView, and CandHandle::GetCandBase(). 00254 {
00255 const CandStripSR *candstrip = dynamic_cast<const CandStripSR *>(GetCandBase());
00256 return candstrip->fPlaneView;
00257 }
|
|
|
Reimplemented from CandStripHandle. Definition at line 76 of file CandStripSRHandle.cxx. References CandStripSR::fStrip, and CandHandle::GetCandBase(). 00077 {
00078 const CandStripSR *candstrip = dynamic_cast<const CandStripSR *>(GetCandBase());
00079 return candstrip->fStrip;
00080 }
|
|
|
Reimplemented from CandStripHandle. Definition at line 283 of file CandStripSRHandle.cxx. References CandStripSR::fStripEndId, and CandHandle::GetCandBase(). 00284 {
00285 const CandStripSR *candstrip = dynamic_cast<const CandStripSR *>(GetCandBase());
00286 switch (stripend_t) {
00287 case StripEnd::kNegative:
00288 return candstrip->fStripEndId[0];
00289 break;
00290 case StripEnd::kPositive:
00291 return candstrip->fStripEndId[1];
00292 break;
00293 default:
00294 return candstrip->fStripEndId[2];
00295 break;
00296 }
00297 }
|
|
|
Calculates charge-weighted average time for strip, or individual strip end if input parameter is set. Default is over entire strip. Reimplemented from CandStripHandle. Definition at line 90 of file CandStripSRHandle.cxx. References CandStripSR::fTime, and CandHandle::GetCandBase(). 00091 {
00092 const CandStripSR *candstrip = dynamic_cast<const CandStripSR *>(GetCandBase());
00093 switch (stripend_t) {
00094 case StripEnd::kNegative:
00095 return candstrip->fTime[0];
00096 break;
00097 case StripEnd::kPositive:
00098 return candstrip->fTime[1];
00099 break;
00100 default:
00101 return candstrip->fTime[2];
00102 break;
00103 }
00104 }
|
|
|
Definition at line 106 of file CandStripSRHandle.cxx. References CandStripSR::fBegTime, and CandHandle::GetOwnedCandBase(). 00107 {
00108 CandStripSR *candstrip = dynamic_cast<CandStripSR *>(GetOwnedCandBase());
00109 candstrip->fBegTime[0] = dvar[0];
00110 candstrip->fBegTime[1] = dvar[1];
00111 }
|
|
|
Definition at line 164 of file CandStripSRHandle.cxx. References CandStripSR::fChargeNone, and CandHandle::GetOwnedCandBase(). 00165 {
00166 CandStripSR *candstrip = dynamic_cast<CandStripSR *>(GetOwnedCandBase());
00167 candstrip->fChargeNone[0] = (Float_t)dvar[0];
00168 candstrip->fChargeNone[1] = (Float_t)dvar[1];
00169 }
|
|
|
Definition at line 185 of file CandStripSRHandle.cxx. References CandStripSR::fChargePE, and CandHandle::GetOwnedCandBase(). 00186 {
00187 CandStripSR *candstrip = dynamic_cast<CandStripSR *>(GetOwnedCandBase());
00188 candstrip->fChargePE[0] = (Float_t)dvar[0];
00189 candstrip->fChargePE[1] = (Float_t)dvar[1];
00190 }
|
|
|
Definition at line 178 of file CandStripSRHandle.cxx. References CandStripSR::fChargeSigCorr, and CandHandle::GetOwnedCandBase(). 00179 {
00180 CandStripSR *candstrip = dynamic_cast<CandStripSR *>(GetOwnedCandBase());
00181 candstrip->fChargeSigCorr[0] = (Float_t)dvar[0];
00182 candstrip->fChargeSigCorr[1] = (Float_t)dvar[1];
00183 }
|
|
|
Definition at line 171 of file CandStripSRHandle.cxx. References CandStripSR::fChargeSigLin, and CandHandle::GetOwnedCandBase(). 00172 {
00173 CandStripSR *candstrip = dynamic_cast<CandStripSR *>(GetOwnedCandBase());
00174 candstrip->fChargeSigLin[0] = (Float_t)dvar[0];
00175 candstrip->fChargeSigLin[1] = (Float_t)dvar[1];
00176 }
|
|
||||||||||||
|
Definition at line 267 of file CandStripSRHandle.cxx. References CandStripSR::fDemuxVetoFlag, and CandHandle::GetOwnedCandBase(). 00268 {
00269 CandStripSR *candstrip = dynamic_cast<CandStripSR *>(GetOwnedCandBase());
00270 switch (stripend_t) {
00271 case StripEnd::kNegative:
00272 candstrip->fDemuxVetoFlag[0] = flag;
00273 break;
00274 case StripEnd::kPositive:
00275 candstrip->fDemuxVetoFlag[1] = flag;
00276 break;
00277 default:
00278 candstrip->fDemuxVetoFlag[2] = flag;
00279 break;
00280 }
00281 }
|
|
|
Definition at line 135 of file CandStripSRHandle.cxx. References CandStripSR::fEndTime, and CandHandle::GetOwnedCandBase(). 00136 {
00137 CandStripSR *candstrip = dynamic_cast<CandStripSR *>(GetOwnedCandBase());
00138 candstrip->fEndTime[0] = dvar[0];
00139 candstrip->fEndTime[1] = dvar[1];
00140 }
|
|
|
Definition at line 58 of file CandStripSRHandle.cxx. References CandStripSR::fPlane, and CandHandle::GetOwnedCandBase(). 00059 {
00060 CandStripSR *candstrip = dynamic_cast<CandStripSR *>(GetOwnedCandBase());
00061 candstrip->fPlane = ivar;
00062 }
|
|
|
Definition at line 247 of file CandStripSRHandle.cxx. References CandStripSR::fPlaneView, and CandHandle::GetOwnedCandBase(). 00248 {
00249 CandStripSR *candstrip = dynamic_cast<CandStripSR *>(GetOwnedCandBase());
00250 candstrip->fPlaneView = ivar;
00251 }
|
|
|
Definition at line 70 of file CandStripSRHandle.cxx. References CandStripSR::fStrip, and CandHandle::GetOwnedCandBase(). 00071 {
00072 CandStripSR *candstrip = dynamic_cast<CandStripSR *>(GetOwnedCandBase());
00073 candstrip->fStrip = ivar;
00074 }
|
|
|
Definition at line 259 of file CandStripSRHandle.cxx. References CandStripSR::fStripEndId, and CandHandle::GetOwnedCandBase(). 00260 {
00261 CandStripSR *candstrip = dynamic_cast<CandStripSR *>(GetOwnedCandBase());
00262 candstrip->fStripEndId[0] = ivar[0];
00263 candstrip->fStripEndId[1] = ivar[1];
00264 candstrip->fStripEndId[2] = ivar[2];
00265 }
|
|
|
Definition at line 82 of file CandStripSRHandle.cxx. References CandStripSR::fTime, and CandHandle::GetOwnedCandBase(). 00083 {
00084 CandStripSR *candstrip = dynamic_cast<CandStripSR *>(GetOwnedCandBase());
00085 candstrip->fTime[0] = dvar[0];
00086 candstrip->fTime[1] = dvar[1];
00087 candstrip->fTime[2] = dvar[2];
00088 }
|
|
|
Reimplemented from CandStripHandle. Definition at line 317 of file CandStripSRHandle.cxx. References MSG, and CandHandle::Trace(). 00318 {
00319 MSG("Cand", Msg::kDebug)
00320 << "**********Begin CandStripSRHandle::Trace(\"" << c << "\")" << endl
00321 << "Information from CandStripSRHandle's CandHandle: " << endl;
00322 CandHandle::Trace(c);
00323 MSG("Cand", Msg::kDebug)
00324 << "**********End CandStripSRHandle::Trace(\"" << c << "\")" << endl;
00325 }
|
1.3.9.1