NtpSRShieldStrip Class Reference

#include <NtpSRShieldStrip.h>

List of all members.

Public Member Functions

 NtpSRShieldStrip ()
 NtpSRShieldStrip (const NtpSRShieldStrip &other)
virtual ~NtpSRShieldStrip ()
virtual std::ostream & Print (std::ostream &os) const
virtual void Print (Option_t *option="") const

Public Attributes

UShort_t index
 index of this strip in in vetostp array
Int_t ndigit
 number of digits (1 or 2) associated with strip
Int_t pln
 plane number
Int_t plank
 strip number of first PlexStripEndId
Float_t x
 x position of shield strip center (m)
Float_t y
 y position of shield strip center (m)
Float_t z [2]
 z position of shield strip end (m) (0 = S end, 1 = N end)
Int_t adc [2]
 0=S, 1=N
Int_t pmtindex [2]
 0=S, 1=N
Int_t pmtpixel [2]
 0=S, 1=N
Float_t wlspigtail [2]
 0=S, 1=N
Float_t clearlen [2]
Double_t time [2]
 3-d corrected time - event trigger time (sec) 0=S,1=N
Double_t timeraw [2]
 raw time - event trigger time (sec) 0=S,1=N

Private Member Functions

void UnpackVAChannelId (Int_t pmtindex, Int_t &crate, Int_t &varcId, Int_t &vmm, Int_t &vaADCSel, Int_t &vaChip) const

Detailed Description

Definition at line 17 of file NtpSRShieldStrip.h.


Constructor & Destructor Documentation

NtpSRShieldStrip::NtpSRShieldStrip (  ) 

Definition at line 20 of file NtpSRShieldStrip.cxx.

References adc, clearlen, pmtindex, pmtpixel, time, timeraw, wlspigtail, and z.

00020                                    : index(0),ndigit(0),pln(0),plank(0),
00021                                        x(0),y(0) {
00022   //
00023   //  Purpose: Default constructor
00024   //
00025  
00026   for ( int i = 0; i < 2; i++ ) {
00027     z[i] = 0;
00028     adc[i] = 0;
00029     wlspigtail[i] = 0;
00030     clearlen[i] = 0;
00031     time[i]   = -1;
00032     timeraw[i] = -1;
00033     pmtindex[i] = -1;
00034     pmtpixel[i] = -1;
00035   }
00036 
00037 
00038 }

NtpSRShieldStrip::NtpSRShieldStrip ( const NtpSRShieldStrip other  ) 

Definition at line 40 of file NtpSRShieldStrip.cxx.

References adc, clearlen, index, ndigit, plank, pln, pmtindex, pmtpixel, time, timeraw, wlspigtail, x, y, and z.

00040                                                                 : TObject() {
00041   //
00042   //  Purpose: Copy constructor
00043   //
00044  
00045   index = other.index;
00046   ndigit = other.ndigit;
00047   pln = other.pln;
00048   plank = other.plank;
00049   x = other.x;
00050   y = other.y;
00051   for ( int i = 0; i < 2; i++ ) {
00052     z[i] = other.z[i];
00053     adc[i] = other.adc[i];
00054     wlspigtail[i] = other.wlspigtail[i];
00055     clearlen[i] = other.clearlen[i];
00056     time[i]   = other.time[i];
00057     timeraw[i] = other.timeraw[i];
00058     pmtindex[i] = other.pmtindex[i];
00059     pmtpixel[i] = other.pmtpixel[i];
00060   }
00061 
00062 
00063 }

virtual NtpSRShieldStrip::~NtpSRShieldStrip (  )  [inline, virtual]

Definition at line 23 of file NtpSRShieldStrip.h.

00023 {}


Member Function Documentation

void NtpSRShieldStrip::Print ( Option_t *  option = ""  )  const [virtual]

Definition at line 100 of file NtpSRShieldStrip.cxx.

References Print().

00100                                                          {
00101   //
00102   //  Purpose:  Print shield strip data in form supported by TObject::Print.
00103   //
00104   //  Arguments: option (not used)
00105   //
00106 
00107   Print(std::cout);
00108   return;
00109 
00110 }

std::ostream & NtpSRShieldStrip::Print ( std::ostream &  os  )  const [virtual]

Definition at line 65 of file NtpSRShieldStrip.cxx.

References adc, clearlen, index, Munits::nanosecond, ndigit, plank, pln, pmtindex, pmtpixel, time, timeraw, UnpackVAChannelId(), wlspigtail, x, y, and z.

Referenced by Print().

00065                                                         {
00066   //
00067   //  Purpose:  Print shield strip data on ostream.
00068   //
00069 
00070   os << "NtpSRShieldStrip::Print" << endl;
00071   os << "index " << index << " ndigit " << ndigit << " pln " << pln 
00072      << " plank " << plank
00073      << " (x0,y0)(m)(" << x << "," << y << ")" 
00074      << " zend(S,N)(m)(" << z[0] << "," << z[1] << ")" << endl;
00075   
00076   Int_t crate,varc,vmm,adcsel,chip;
00077   if ( pmtindex[0] >= 0 ) {
00078     UnpackVAChannelId(pmtindex[0],crate,varc,vmm,adcsel,chip);  
00079     os << "S: crate/varc/vmm/adcsel/chip/pixel "
00080        << crate << "/" << varc << "/" << vmm << "/" << adcsel
00081        << "/" << chip << "/" << pmtpixel[0] << "\n   adc " << adc[0] 
00082        << " t(corr,raw)(nsec)(" << time[0]/Munits::nanosecond << ","
00083        << timeraw[0]/Munits::nanosecond << ")" << " wlspigtail " 
00084        << wlspigtail[0] << " clearlen " << clearlen[0] <<  endl;
00085   }
00086   if ( pmtindex[1] >= 0 ) {
00087     UnpackVAChannelId(pmtindex[1],crate,varc,vmm,adcsel,chip);  
00088     os << "N: crate/varc/vmm/adcsel/chip/pixel "
00089        << crate << "/" << varc << "/" << vmm << "/" << adcsel
00090        << "/" << chip << "/" << pmtpixel[1] << "\n   adc " << adc[1] 
00091        << " t(corrected,raw)(nsec)(" << time[1]/Munits::nanosecond
00092        << timeraw[1]/Munits::nanosecond << ")" << " wlspigtail " 
00093        << wlspigtail[1] << " clearlen " << clearlen[1] <<  endl;
00094   }
00095 
00096   return os;
00097 
00098 }

void NtpSRShieldStrip::UnpackVAChannelId ( Int_t  pmtindex,
Int_t &  crate,
Int_t &  varcId,
Int_t &  vmm,
Int_t &  vaADCSel,
Int_t &  vaChip 
) const [private]

Definition at line 112 of file NtpSRShieldStrip.cxx.

Referenced by Print().

00113                                                                              {
00114 
00115   crate = pmtindex/108;
00116   varcid = (pmtindex - crate*108)/36;
00117   vmm = (pmtindex-crate*108-varcid*36)/6;
00118   vaadcsel = (pmtindex-crate*108-varcid*36-vmm*6)/3;
00119   vachip = pmtindex-crate*108-varcid*36-vmm*6-vaadcsel*3;
00120 
00121   return;
00122 
00123 }


Member Data Documentation

0=S, 1=N

Definition at line 48 of file NtpSRShieldStrip.h.

Referenced by NtpSRModule::FillNtpShieldStrip(), NtpSRShieldStrip(), and Print().

0=S, 1=N The 3-d time correction includes a pulse height dependent time walk correction and corrections for optical fiber propagation delays.

Definition at line 52 of file NtpSRShieldStrip.h.

Referenced by NtpSRModule::FillNtpShieldStrip(), NtpSRShieldStrip(), and Print().

index of this strip in in vetostp array

< Contiguous scintillator strips in the shield are grouped together and read out by a single PMT pixel. These sets (mostly of 8 strips) are referred to as planks.

Definition at line 41 of file NtpSRShieldStrip.h.

Referenced by NtpSRModule::FillNtpShieldStrip(), NtpSRShieldStrip(), and Print().

number of digits (1 or 2) associated with strip

Definition at line 42 of file NtpSRShieldStrip.h.

Referenced by NtpSRModule::FillNtpShieldStrip(), NtpSRShieldStrip(), and Print().

strip number of first PlexStripEndId

Definition at line 44 of file NtpSRShieldStrip.h.

Referenced by ShieldRejVarAna::Analyze(), NtpSRModule::FillNtpShieldStrip(), NtpSRShieldStrip(), and Print().

plane number

Definition at line 43 of file NtpSRShieldStrip.h.

Referenced by ShieldRejVarAna::Analyze(), NtpSRModule::FillNtpShieldStrip(), NtpSRShieldStrip(), and Print().

0=S, 1=N

Definition at line 49 of file NtpSRShieldStrip.h.

Referenced by NtpSRModule::FillNtpShieldStrip(), NtpSRShieldStrip(), and Print().

0=S, 1=N

Definition at line 50 of file NtpSRShieldStrip.h.

Referenced by NtpSRModule::FillNtpShieldStrip(), NtpSRShieldStrip(), and Print().

3-d corrected time - event trigger time (sec) 0=S,1=N

Definition at line 55 of file NtpSRShieldStrip.h.

Referenced by ShieldRejVarAna::Analyze(), MadScanDisplay::Display(), MadEvDisplay::Display(), NtpSRModule::FillNtpShieldStrip(), NtpSRShieldStrip(), and Print().

raw time - event trigger time (sec) 0=S,1=N

Definition at line 56 of file NtpSRShieldStrip.h.

Referenced by NtpSRModule::FillNtpShieldStrip(), NtpSRShieldStrip(), and Print().

0=S, 1=N

Definition at line 51 of file NtpSRShieldStrip.h.

Referenced by NtpSRModule::FillNtpShieldStrip(), NtpSRShieldStrip(), and Print().

x position of shield strip center (m)

Definition at line 45 of file NtpSRShieldStrip.h.

Referenced by MadScanDisplay::Display(), MadEvDisplay::Display(), NueDisplayModule::GetEvent(), NtpSRShieldStrip(), and Print().

y position of shield strip center (m)

Definition at line 46 of file NtpSRShieldStrip.h.

Referenced by MadScanDisplay::Display(), MadEvDisplay::Display(), NueDisplayModule::GetEvent(), NtpSRShieldStrip(), and Print().

Float_t NtpSRShieldStrip::z[2]

z position of shield strip end (m) (0 = S end, 1 = N end)

Definition at line 47 of file NtpSRShieldStrip.h.

Referenced by NtpSRModule::FillNtpShieldStrip(), NtpSRShieldStrip(), and Print().


The documentation for this class was generated from the following files:

Generated on 2 Nov 2017 for loon by  doxygen 1.6.1