#include <NtpSRStrip.h>
Public Member Functions | |
| NtpSRStrip () | |
| virtual | ~NtpSRStrip () |
| virtual std::ostream & | Print (std::ostream &os) const |
| virtual void | Print (Option_t *option="") const |
| PlexStripEndId | GetStripEndId (Detector::Detector_t detector) const |
| void | SetPmtIndex (Int_t pmtindex, UShort_t iend) |
| void | SetTime (Double_t time, UShort_t iend) |
| void | SetPh (const NtpSRPulseHeight &ph, UShort_t iend) |
Public Attributes | |
| Int_t | index |
| Char_t | planeview |
| UShort_t | ndigit |
| UShort_t | demuxveto |
| UShort_t | strip |
| UShort_t | plane |
| Float_t | tpos |
| Float_t | z |
| Int_t | pmtindex0 |
| Int_t | pmtindex1 |
| Double_t | time0 |
| Double_t | time1 |
| NtpSRPulseHeight | ph0 |
| NtpSRPulseHeight | ph1 |
Private Member Functions | |
| void | UnpackVAChannelId (Int_t pmtindex, Int_t &crate, Int_t &varcId, Int_t &vmm, Int_t &vaADCSel, Int_t &vaChip) const |
|
|
Definition at line 23 of file NtpSRStrip.h. References demuxveto, index, ndigit, plane, planeview, pmtindex0, pmtindex1, strip, time0, time1, tpos, and z. 00023 : index(0), planeview(0), ndigit(0), demuxveto(0), strip(0), 00024 plane(0), tpos(0), z(0), pmtindex0(-1), pmtindex1(-1), time0(-999999), 00025 time1(-999999) {}
|
|
|
Definition at line 26 of file NtpSRStrip.h. 00026 {}
|
|
|
Definition at line 83 of file NtpSRStrip.cxx. References plane, pmtindex0, pmtindex1, and strip. Referenced by MinosCompactEvent::MinosCompactEvent(). 00083 {
00084 //
00085 // Purpose: Return PlexStripEndId for this strip.
00086 //
00087 // Argument: Detector type.
00088
00089 StripEnd::StripEnd_t end = StripEnd::kUnknown;
00090 if ( detector == Detector::kNear ) end = StripEnd::kWest;
00091 else {
00092 if ( pmtindex0 >= 0 && pmtindex1 >= 0 ) end = StripEnd::kWhole;
00093 else if ( pmtindex0 >= 0 ) end = StripEnd::kEast;
00094 else if ( pmtindex1 >= 0 ) end = StripEnd::kWest;
00095 }
00096
00097 PlexStripEndId plexId(detector,plane,strip,end);
00098
00099 return plexId;
00100
00101 }
|
|
|
Definition at line 70 of file NtpSRStrip.cxx. References Print(). 00070 {
00071 //
00072 // Purpose: Print strip in form supported by TObject::Print.
00073 //
00074 // Arguments: option (not used)
00075 //
00076
00077 Print(std::cout);
00078 return;
00079
00080 }
|
|
|
Definition at line 22 of file NtpSRStrip.cxx. References PlaneView::AsString(), index, ndigit, plane, planeview, pmtindex0, pmtindex1, strip, time0, time1, tpos, UnpackVAChannelId(), and z. Referenced by Print(). 00022 {
00023 //
00024 // Purpose: Print strip data on ostream.
00025 //
00026
00027 os << "NtpSRStrip::Print()" << endl;
00028 os << "index " << index << " pln " << plane << " stp " << strip << " view "
00029 << PlaneView::AsString((PlaneView::PlaneView_t)planeview)
00030 << " ndigit " << ndigit << " (tpos,zpos)(m) (" << tpos << "," << z
00031 << ")" << endl;
00032 Int_t crate, varc, vmm, adcsel, chip;
00033 if ( pmtindex0 >= 0 ) {
00034 // This is only good for VA electronics, need to expand for QIE
00035 UnpackVAChannelId(pmtindex0,crate,varc,vmm,adcsel,chip);
00036 os << "East: crate/varc/vmm/adcsel/chip "
00037 << crate << "/" << varc << "/" << vmm
00038 << "/" << adcsel << "/" << chip << " t(nsec) "
00039 << time0/Munits::nanosecond << "\n ph" << ph0;
00040 }
00041
00042 if ( pmtindex1 >= 0 ) {
00043 UnpackVAChannelId(pmtindex1,crate,varc,vmm,adcsel,chip);
00044 os << "West: crate/varc/vmm/adcsel/chip "
00045 << crate << "/" << varc << "/" << vmm
00046 << "/" << adcsel << "/" << chip << " t(nsec) "
00047 << time1/Munits::nanosecond << "\n ph" << ph1;
00048 }
00049
00050 return os;
00051
00052 }
|
|
||||||||||||
|
Definition at line 75 of file NtpSRStrip.h. Referenced by NtpSRModule::FillNtpStrip(), and NtpEMModule::FillNtpStrip().
|
|
||||||||||||
|
Definition at line 65 of file NtpSRStrip.h. References pmtindex0, and pmtindex1. Referenced by NtpSRModule::FillNtpStrip(), and NtpEMModule::FillNtpStrip(). 00065 {
00066 if (iend == 0) pmtindex0 = pmtindex;
00067 else if (iend == 1) pmtindex1 = pmtindex;
00068 return;
00069 }
|
|
||||||||||||
|
Definition at line 70 of file NtpSRStrip.h. Referenced by NtpSRModule::FillNtpStrip(), and NtpEMModule::FillNtpStrip(). 00070 {
00071 if (iend == 0) time0 = time;
00072 else if (iend == 1) time1 = time;
00073 return;
00074 }
|
|
||||||||||||||||||||||||||||
|
Definition at line 55 of file NtpSRStrip.cxx. Referenced by Print(). 00056 {
00057
00058 crate = pmtindex/108;
00059 varcid = (pmtindex - crate*108)/36;
00060 vmm = (pmtindex-crate*108-varcid*36)/6;
00061 vaadcsel = (pmtindex-crate*108-varcid*36-vmm*6)/3;
00062 vachip = pmtindex-crate*108-varcid*36-vmm*6-vaadcsel*3;
00063
00064 return;
00065
00066 }
|
|
|
Definition at line 50 of file NtpSRStrip.h. Referenced by NtpSRModule::FillNtpStrip(), NtpEMModule::FillNtpStrip(), and NtpSRStrip(). |
|
|
|
|
|
|
|
|
Definition at line 55 of file NtpSRStrip.h. Referenced by MadTVAnalysis::EarlyActivity(), MadMKAnalysis::EarlyActivity(), ANtpInfoObjectFillerNC::FillPlanePixelSignalArrays(), ANtpInfoObjectFillerNC::FindXTalkStrips(), GetStripEndId(), NtpSRStrip(), Print(), and SetPmtIndex(). |
|
|
|
|
|
|
1.3.9.1