#include <NtpSREvent.h>
Public Member Functions | |
| NtpSREvent () | |
| NtpSREvent (Int_t nstripinit, Int_t nshowerinit, Int_t ntrackinit) | |
| virtual | ~NtpSREvent () |
| virtual std::ostream & | Print (std::ostream &os) const |
| virtual void | Print (Option_t *option="") const |
| void | AddStripAt (Int_t stripindex, Int_t ind) |
| void | AddShowerAt (Int_t showerindex, Int_t ind) |
| void | AddTrackAt (Int_t trackindex, Int_t ind) |
| void | Clear (Option_t *="") |
| void | ClearStrips () |
Public Attributes | |
| UShort_t | index |
| Short_t | slc |
| Int_t | ndigit |
| Int_t | nstpcnt |
| Int_t | nstrip |
| Int_t * | stp |
| Int_t | nshower |
| Int_t * | shw |
| Int_t | ntrack |
| Int_t * | trk |
| NtpSRStripPulseHeight | ph |
| NtpSRPlane | plane |
| NtpSRVertex | vtx |
| NtpSRVertex | end |
|
|
Definition at line 24 of file NtpSREvent.h. References index, ndigit, nshower, nstpcnt, nstrip, ntrack, shw, slc, stp, and trk. 00024 : index(0),slc(0),ndigit(0),nstpcnt(0),nstrip(0),stp(0), 00025 nshower(0),shw(0),ntrack(0),trk(0) {} // def const'r
|
|
||||||||||||||||
|
Definition at line 21 of file NtpSREvent.cxx. 00021 : 00022 index(0),slc(0),ndigit(0),nstpcnt(nstripinit),nstrip(nstripinit),stp(0), 00023 nshower(nshowerinit),shw(0),ntrack(ntrackinit),trk(0) { 00024 00025 // Normal constructor 00026 00027 if ( nstrip ) { 00028 stp = new Int_t[nstrip]; 00029 // Initialize all indices to -1 00030 for (Int_t i = 0; i < nstrip; i++ ) stp[i] = -1; 00031 } 00032 00033 if ( nshower ) { 00034 shw = new Int_t[nshower]; 00035 // Initialize all indices to -1 00036 for (Int_t i = 0; i < nshower; i++ ) shw[i] = -1; 00037 } 00038 00039 if ( ntrack ) { 00040 trk = new Int_t[ntrack]; 00041 // Initialize all indices to -1 00042 for (Int_t i = 0; i < ntrack; i++ ) trk[i] = -1; 00043 } 00044 00045 00046 00047 }
|
|
|
Definition at line 27 of file NtpSREvent.h. References Clear(). 00027 { this -> Clear(); }
|
|
||||||||||||
|
Definition at line 74 of file NtpSREvent.cxx. References MSG, nshower, and shw. 00074 {
00075 //
00076 // Purpose: Add showerindex to shw array at position ind.
00077 //
00078 // Arguments: showerindex: index of shower in assoc shw TClonesArray.
00079 // ind: index in shw array, cannot exceed bounds
00080 // 0->nshower-1.
00081 //
00082 // Return: none.
00083 //
00084 // Contact: S. Kasahara
00085 //
00086
00087 if ( ind < 0 || ind >= nshower ) {
00088 MSG("NtpSR",Msg::kWarning)
00089 << "Attempt to add shower at index " << ind
00090 << " outside of array size " << nshower << " ignored." << endl;
00091 return;
00092 }
00093
00094 shw[ind] = showerindex;
00095 return;
00096
00097 }
|
|
||||||||||||
|
Definition at line 99 of file NtpSREvent.cxx. References MSG, nstrip, and stp. Referenced by UberModuleLite::FillNtpEvent(). 00099 {
00100 //
00101 // Purpose: Add stripindex to stp array at position ind.
00102 //
00103 // Arguments: stripindex: index of strip in assoc stp TClonesArray.
00104 // ind: index in stp array, cannot exceed bounds
00105 // 0->nstrip-1.
00106 //
00107 // Return: none.
00108 //
00109 // Contact: S. Kasahara
00110 //
00111
00112 if ( ind < 0 || ind >= nstrip ) {
00113 MSG("NtpSR",Msg::kWarning)
00114 << "Attempt to add strip at index " << ind
00115 << " outside of array size " << nstrip << " ignored." << endl;
00116 return;
00117 }
00118
00119 stp[ind] = stripindex;
00120 return;
00121
00122 }
|
|
||||||||||||
|
Definition at line 49 of file NtpSREvent.cxx. References MSG, ntrack, and trk. 00049 {
00050 //
00051 // Purpose: Add trackindex to trk array at position ind.
00052 //
00053 // Arguments: trackindex: index of track in assoc trk TClonesArray.
00054 // ind: index in trk array, cannot exceed bounds
00055 // 0->ntrack-1.
00056 //
00057 // Return: none.
00058 //
00059 // Contact: S. Kasahara
00060 //
00061
00062 if ( ind < 0 || ind >= ntrack ) {
00063 MSG("NtpSR",Msg::kWarning)
00064 << "Attempt to add track at index " << ind
00065 << " outside of array size " << ntrack << " ignored." << endl;
00066 return;
00067 }
00068
00069 trk[ind] = trackindex;
00070 return;
00071
00072 }
|
|
|
Definition at line 38 of file NtpSREvent.h. References ClearStrips(), nshower, ntrack, shw, and trk. Referenced by ~NtpSREvent(). 00038 { ClearStrips();
00039 nshower = 0; if ( shw ) delete [] shw; shw = 0;
00040 ntrack = 0; if ( trk ) delete [] trk; trk = 0; }
|
|
|
Definition at line 41 of file NtpSREvent.h. Referenced by Clear().
|
|
|
Definition at line 165 of file NtpSREvent.cxx. References Print(). 00165 {
00166 //
00167 // Purpose: Print event in form supported by TObject::Print.
00168 //
00169 // Arguments: option (not used)
00170 //
00171
00172 Print(std::cout);
00173 return;
00174
00175 }
|
|
|
Definition at line 125 of file NtpSREvent.cxx. References index, ndigit, nshower, nstpcnt, nstrip, ntrack, ph, shw, slc, trk, and vtx. Referenced by Print(). 00125 {
00126 //
00127 // Purpose: Print event data on ostream.
00128 //
00129
00130 os << "NtpSREvent::Print" << endl;
00131 os << "index " << index << " slc " << slc << " ndigit " << ndigit
00132 << " nstpcnt " << nstpcnt << " nstrip " << nstrip << " pln " << plane;
00133 os << "Event has " << nshower << " shower";
00134 if ( nshower > 1 ) {
00135 os << "s w/indices ";
00136 for ( int is = 0; is < nshower-1; is++ ) os << shw[is] << ",";
00137 os << shw[nshower-1] << " and ";
00138 }
00139 else if ( nshower == 1 ) {
00140 os << " w/index " << shw[nshower-1] << " and ";
00141 }
00142 else {
00143 os << "s and ";
00144 }
00145
00146 os << ntrack << " track";
00147 if ( ntrack > 1 ) {
00148 os << "s w/indices ";
00149 for ( int it = 0; it < ntrack-1; it++ ) os << trk[it] << ",";
00150 os << trk[ntrack-1];
00151 }
00152 else if ( ntrack == 1 ) {
00153 os << " w/index " << trk[ntrack-1];
00154 }
00155 else {
00156 os << "s";
00157 }
00158 os << endl;
00159 os << ph << "vtx " << vtx << "end " << end;
00160
00161 return os;
00162
00163 }
|
|
|
Definition at line 64 of file NtpSREvent.h. Referenced by HitCalcAna::ComputeHits(), MadEdAnalysis::DataHist(), NtpSRModule::FillNtpEvent(), ANtpEventInfoAna::FillNueEventInformation(), MadEdAnalysis::MakeEff(), MadEdAnalysis::MCHist(), and MadEdAnalysis::MyMakeQEFile(). |
|
|
|
Definition at line 50 of file NtpSREvent.h. Referenced by UberModuleLite::FillNtpEvent(), NtpSRModule::FillNtpEvent(), NtpSREvent(), and Print(). |
|
|
|
Definition at line 54 of file NtpSREvent.h. Referenced by NtpSREvent(), and Print(). |
|
|
|
|
|
|
|
Definition at line 49 of file NtpSREvent.h. Referenced by MadEvDisplay::Display(), NtpSRModule::FillNtpEvent(), MadBase::LoadSliceForRecoTH(), MadCBSQEAnalysis::MakeQEFile(), NtpSREvent(), Print(), and MadCBSQEAnalysis::TestQEDiscrim(). |
|
|
Definition at line 56 of file NtpSREvent.h. Referenced by AddStripAt(), FracVarAna::Analyze(), ClearStrips(), MadDpAnalysis::CreatePAN(), ANtpEventManipulator::GetStrip(), SntpHelpers::GetStripIndex(), NtpSREvent(), and MadMKAnalysis::SigInOut(). |
|
|
1.3.9.1