#include <NtpSRShower.h>
Public Member Functions | |
| NtpSRShower () | |
| NtpSRShower (Int_t nstripinit, Int_t nclusterinit=0) | |
| virtual | ~NtpSRShower () |
| virtual std::ostream & | Print (std::ostream &os) const |
| virtual void | Print (Option_t *option="") const |
| void | AddStripAt (Int_t stripindex, Int_t ind) |
| void | AddClusterAt (Int_t clusterindex, Int_t ind) |
| void | Clear (Option_t *="") |
| void | ClearStrips () |
| void | ClearClusters () |
| void | SetPh (Float_t sigmap, Float_t mip, Float_t gev, UInt_t istrip, UShort_t iend) |
| void | SetTime (Double_t time, UInt_t istrip, UShort_t iend) |
| void | SetCalT0 (Double_t calt0, UInt_t istrip, UShort_t iend) |
| void | SetAttnC0 (Double_t attnc0, UInt_t istrip, UShort_t iend) |
Public Attributes | |
| UShort_t | index |
| Short_t | slc |
| Int_t | ndigit |
| Int_t | nstpcnt |
| Int_t | nstrip |
| Int_t * | stp |
| Float_t * | stpu |
| Float_t * | stpv |
| Float_t * | stpx |
| Float_t * | stpy |
| Float_t * | stpz |
| Float_t * | stpph0sigmap |
| Float_t * | stpph0mip |
| Float_t * | stpph0gev |
| Float_t * | stpph1sigmap |
| Float_t * | stpph1mip |
| Float_t * | stpph1gev |
| Float_t * | stpattn0c0 |
| Float_t * | stpattn1c0 |
| Double_t * | stpt0 |
| Double_t * | stpt1 |
| Double_t * | stptcal0t0 |
| Double_t * | stptcal1t0 |
| Short_t | nUcluster |
| Short_t | nVcluster |
| Int_t | ncluster |
| Int_t * | clu |
| Int_t | contained |
| NtpSRStripPulseHeight | ph |
| NtpSRShowerPulseHeight | shwph |
| NtpSRPlane | plane |
| NtpSRVertex | vtx |
| NtpSRSubShowerSummary | sss |
Private Member Functions | |
| NtpSRShower (const NtpSRShower &that) | |
| NtpSRShower & | operator= (const NtpSRShower &that) |
|
|
Definition at line 26 of file NtpSRShower.h. References clu, contained, index, ncluster, ndigit, nstpcnt, nstrip, nUcluster, nVcluster, slc, stp, stpattn0c0, stpattn1c0, stpph0gev, stpph0mip, stpph0sigmap, stpph1gev, stpph1mip, stpph1sigmap, stpt0, stpt1, stptcal0t0, stptcal1t0, stpu, stpv, stpx, stpy, and stpz. 00026 : index(0),slc(0),ndigit(0),nstpcnt(0),nstrip(0),stp(0), 00027 stpu(0),stpv(0),stpx(0),stpy(0),stpz(0), 00028 stpph0sigmap(0),stpph0mip(0),stpph0gev(0), 00029 stpph1sigmap(0),stpph1mip(0),stpph1gev(0), 00030 stpattn0c0(0),stpattn1c0(0), 00031 stpt0(0),stpt1(0),stptcal0t0(0),stptcal1t0(0), 00032 nUcluster(0),nVcluster(0),ncluster(0),clu(0),contained(0) {} // def const'r
|
|
||||||||||||
|
Definition at line 74 of file NtpSRShower.cxx. References clu, MSG, stp, stpattn0c0, stpattn1c0, stpph0gev, stpph0mip, stpph0sigmap, stpph1gev, stpph1mip, stpph1sigmap, stpt0, stpt1, stptcal0t0, stptcal1t0, stpu, stpv, stpx, stpy, and stpz. 00074 : 00075 index(0),slc(0),ndigit(0),nstpcnt(nstripinit),nstrip(nstripinit), 00076 stp(0),stpu(0),stpv(0),stpx(0),stpy(0),stpz(0), 00077 stpph0sigmap(0),stpph0mip(0),stpph0gev(0),stpph1sigmap(0),stpph1mip(0),stpph1gev(0), 00078 stpattn0c0(0),stpattn1c0(0),stpt0(0),stpt1(0),stptcal0t0(0),stptcal1t0(0), 00079 nUcluster(0),nVcluster(0),ncluster(nclusterinit),clu(0) { 00080 // Normal constructor 00081 00082 if ( nstrip ) { 00083 stp = new Int_t[nstrip]; 00084 stpu = new Float_t[nstrip]; 00085 stpv = new Float_t[nstrip]; 00086 stpx = new Float_t[nstrip]; 00087 stpy = new Float_t[nstrip]; 00088 stpz = new Float_t[nstrip]; 00089 stpph0sigmap = new Float_t[nstrip]; 00090 stpph0mip = new Float_t[nstrip]; 00091 stpph0gev = new Float_t[nstrip]; 00092 stpph1sigmap = new Float_t[nstrip]; 00093 stpph1mip = new Float_t[nstrip]; 00094 stpph1gev = new Float_t[nstrip]; 00095 stpattn0c0 = new Float_t[nstrip]; 00096 stpattn1c0 = new Float_t[nstrip]; 00097 stpt0 = new Double_t[nstrip]; 00098 stpt1 = new Double_t[nstrip]; 00099 stptcal0t0 = new Double_t[nstrip]; 00100 stptcal1t0 = new Double_t[nstrip]; 00101 for ( Int_t i = 0; i < nstrip; i++ ) { 00102 stp[i] = -1; 00103 stpu[i] = -999999; 00104 stpv[i] = -999999; 00105 stpx[i] = -999999; 00106 stpy[i] = -999999; 00107 stpz[i] = -999999; 00108 stpph0sigmap[i] = 0.; 00109 stpph0mip[i] = 0.; 00110 stpph0gev[i] = 0.; 00111 stpph1sigmap[i] = 0.; 00112 stpph1mip[i] = 0.; 00113 stpph1gev[i] = 0.; 00114 stpattn0c0[i] = -999999; 00115 stpattn1c0[i] = -999999; 00116 stpt0[i] = -999999; 00117 stpt1[i] = -999999; 00118 stptcal0t0[i] = -999999; 00119 stptcal1t0[i] = -999999; 00120 } 00121 } 00122 else { 00123 MSG("NtpSR",Msg::kWarning) << "NtpSRShower called with nstrip = 0" << endl; 00124 } 00125 00126 if ( ncluster ) { 00127 clu = new Int_t[ncluster]; 00128 for ( Int_t i = 0; i < ncluster; i++ ) clu[i] = -1; 00129 } 00130 else { 00131 MSG("NtpSR",Msg::kWarning) << "NtpSRShower called with ncluster = 0" 00132 << endl; 00133 } 00134 }
|
|
|
Definition at line 35 of file NtpSRShower.h. References Clear(). 00035 { this -> Clear(); }
|
|
|
|
|
||||||||||||
|
Definition at line 48 of file NtpSRShower.cxx. References clu, MSG, and ncluster. 00048 {
00049 //
00050 // Purpose: Add clusterindex to clu array at position ind.
00051 //
00052 // Arguments: clusterindex: index of cluster in assoc cluster TClonesArray.
00053 // ind: index in cluster array, cannot exceed bounds
00054 // 0->ncluster-1.
00055 //
00056 // Return: none.
00057 //
00058 // Contact: S. Kasahara
00059 //
00060
00061 if ( ind < 0 || ind >= ncluster ) {
00062 MSG("NtpSR",Msg::kWarning)
00063 << "Attempt to add cluster at index " << ind
00064 << " outside of array size " << ncluster << " ignored." << endl;
00065 return;
00066 }
00067
00068 clu[ind] = clusterindex;
00069 return;
00070
00071 }
|
|
||||||||||||
|
Definition at line 22 of file NtpSRShower.cxx. References MSG, nstrip, and stp. Referenced by UberModuleLite::FillNtpShower(), UberModule::FillNtpShower(), and NtpSRModule::FillNtpShower(). 00022 {
00023 //
00024 // Purpose: Add stripindex to fStripInd array at position ind.
00025 //
00026 // Arguments: stripindex: index of strip in assoc fStrips TClonesArray.
00027 // ind: index in fStripInd array, cannot exceed bounds
00028 // 0->fNStrip-1.
00029 //
00030 // Return: none.
00031 //
00032 // Contact: S. Kasahara
00033 //
00034
00035 if ( ind < 0 || ind >= nstrip ) {
00036 MSG("NtpSR",Msg::kWarning)
00037 << "Attempt to add strip at index " << ind
00038 << " outside of array size " << nstrip << " ignored." << endl;
00039 return;
00040 }
00041
00042 stp[ind] = stripindex;
00043 return;
00044
00045 }
|
|
|
Definition at line 44 of file NtpSRShower.h. References ClearClusters(), and ClearStrips(). Referenced by UberRecord::Clear(), UberRecord::ResetEvent(), UberModule::ResetShwNStrip(), and ~NtpSRShower(). 00044 { ClearStrips(); ClearClusters(); }
|
|
|
Definition at line 46 of file NtpSRShower.h. Referenced by Clear().
|
|
|
Definition at line 167 of file NtpSRShower.cxx. References nstrip, stp, stpattn0c0, stpattn1c0, stpph0gev, stpph0mip, stpph0sigmap, stpph1gev, stpph1mip, stpph1sigmap, stpt0, stpt1, stptcal0t0, stptcal1t0, stpu, stpv, stpx, stpy, and stpz. Referenced by Clear(). 00167 {
00168 // Purpose: Clear allocated strip memory.
00169
00170 nstrip = 0;
00171 if ( stp ) delete [] stp; stp = 0;
00172 if ( stpu ) delete [] stpu; stpu = 0;
00173 if ( stpv ) delete [] stpv; stpv = 0;
00174 if ( stpx ) delete [] stpx; stpx = 0;
00175 if ( stpy ) delete [] stpy; stpy = 0;
00176 if ( stpz ) delete [] stpz; stpz = 0;
00177 if ( stpph0sigmap ) delete [] stpph0sigmap; stpph0sigmap = 0;
00178 if ( stpph0mip ) delete [] stpph0mip; stpph0mip = 0;
00179 if ( stpph0gev ) delete [] stpph0gev; stpph0gev = 0;
00180 if ( stpph1sigmap ) delete [] stpph1sigmap; stpph1sigmap = 0;
00181 if ( stpph1mip ) delete [] stpph1mip; stpph1mip = 0;
00182 if ( stpph1gev ) delete [] stpph1gev; stpph1gev = 0;
00183 if ( stpattn0c0 ) delete [] stpattn0c0; stpattn0c0 = 0;
00184 if ( stpattn1c0 ) delete [] stpattn1c0; stpattn1c0 = 0;
00185 if ( stpt0 ) delete [] stpt0; stpt0 = 0;
00186 if ( stpt1 ) delete [] stpt1; stpt1 = 0;
00187 if ( stptcal0t0 ) delete [] stptcal0t0; stptcal0t0 = 0;
00188 if ( stptcal1t0 ) delete [] stptcal1t0; stptcal1t0 = 0;
00189
00190 }
|
|
|
|
|
|
Definition at line 154 of file NtpSRShower.cxx. References Print(). 00154 {
00155 //
00156 // Purpose: Print strip in form supported by TObject::Print.
00157 //
00158 // Arguments: option (not used)
00159 //
00160
00161 Print(std::cout);
00162 return;
00163
00164 }
|
|
|
Definition at line 137 of file NtpSRShower.cxx. References index, ncluster, ndigit, nstpcnt, nstrip, nUcluster, nVcluster, ph, plane, slc, and vtx. Referenced by MadScanDisplay::EventDump(), MadEvDisplay::EventDump(), and Print(). 00137 {
00138 //
00139 // Purpose: Print strip data on ostream.
00140 //
00141
00142 os << "NtpSRShower::Print" << endl;
00143 os << "index " << index << " slc " << slc << " ndigit " << ndigit
00144 << " nstpcnt " << nstpcnt << " nstrip " << nstrip
00145 << " ncluster(all,u,v)("
00146 << ncluster << "," << nUcluster << "," << nVcluster << ") "
00147 << "\npln" << plane << ph << vtx << sss;
00148
00149 return os;
00150
00151 }
|
|
||||||||||||||||
|
Definition at line 116 of file NtpSRShower.h. References stpattn0c0, and stpattn1c0. Referenced by NtpSRModule::FillNtpShower(). 00116 {
00117 if ( (Int_t)istrip >= nstrip ) return;
00118 if ( iend == 0 ) stpattn0c0[istrip] = attnc0;
00119 else if ( iend == 1 ) stpattn1c0[istrip] = attnc0;
00120 return;
00121 }
|
|
||||||||||||||||
|
Definition at line 110 of file NtpSRShower.h. References stptcal0t0, and stptcal1t0. Referenced by NtpSRModule::FillNtpShower(). 00110 {
00111 if ( (Int_t)istrip >= nstrip ) return;
00112 if ( iend == 0 ) stptcal0t0[istrip] = calt0;
00113 else if ( iend == 1 ) stptcal1t0[istrip] = calt0;
00114 return;
00115 }
|
|
||||||||||||||||||||||||
|
Definition at line 122 of file NtpSRShower.h. References stpph0gev, stpph0mip, stpph0sigmap, stpph1gev, stpph1mip, and stpph1sigmap. Referenced by NtpSRModule::FillNtpShower(). 00123 {
00124 if ( (Int_t)istrip >= nstrip ) return;
00125 if ( iend == 0 ) {
00126 stpph0sigmap[istrip] = sigmap;
00127 stpph0mip[istrip] = mip;
00128 stpph0gev[istrip] = gev;
00129 }
00130 else if ( iend == 1 ) {
00131 stpph1sigmap[istrip] = sigmap;
00132 stpph1mip[istrip] = mip;
00133 stpph1gev[istrip] = gev;
00134 }
00135 return;
00136 }
|
|
||||||||||||||||
|
Definition at line 104 of file NtpSRShower.h. Referenced by NtpSRModule::FillNtpShower(). 00104 {
00105 if ( (Int_t)istrip >= nstrip ) return;
00106 if ( iend == 0 ) stpt0[istrip] = time;
00107 else if ( iend == 1 ) stpt1[istrip] = time;
00108 return;
00109 }
|
|
|
|
Definition at line 94 of file NtpSRShower.h. Referenced by NtpSRModule::FillNtpShower(), MadAbID::MakeRecoVariables(), and NtpSRShower(). |
|
|
|
|
|
Definition at line 70 of file NtpSRShower.h. Referenced by MuonRemovalInfoAna::Analyze(), PETrimmer::CleanShower(), NtpSRShower(), and Print(). |
|
|
|
Definition at line 90 of file NtpSRShower.h. Referenced by SubShowerVarAna::Analyze(), MadCluAnalysis::ChargeFracRMS(), MadCluAnalysis::FillNCluster(), NtpSRModule::FillNtpShower(), NtpSRModule::FillNtpSubShowerSummary(), NtpSRShower(), Print(), and MadQuantities::ShowerValidation(). |
|
|
Definition at line 91 of file NtpSRShower.h. Referenced by SubShowerVarAna::Analyze(), MadCluAnalysis::ChargeFracRMS(), MadCluAnalysis::FillNCluster(), NtpSRModule::FillNtpShower(), NtpSRModule::FillNtpSubShowerSummary(), NtpSRShower(), Print(), and MadQuantities::ShowerValidation(). |
|
|
|
|
|
Definition at line 65 of file NtpSRShower.h. Referenced by NtpSRModule::FillNtpShower(), NtpSRShower(), MadCluAnalysis::PassDataCleaningCuts(), and Print(). |
|
|
Definition at line 99 of file NtpSRShower.h. Referenced by NtpSRModule::FillNtpSubShowerSummary(). |
|
|
|
Definition at line 84 of file NtpSRShower.h. Referenced by ClearStrips(), NtpSRShower(), and SetAttnC0(). |
|
|
Definition at line 85 of file NtpSRShower.h. Referenced by ClearStrips(), NtpSRShower(), and SetAttnC0(). |
|
|
Definition at line 80 of file NtpSRShower.h. Referenced by PETrimmer::CleanShower(), ClearStrips(), MinosCompactEvent::MinosCompactEvent(), NtpSRShower(), and SetPh(). |
|
|
Definition at line 79 of file NtpSRShower.h. Referenced by PETrimmer::CleanShower(), ClearStrips(), SntpHelpers::FillEventEnergy(), ANtpInfoObjectFillerNue::FillEventEnergy(), ANtpShowerInfoAna::FillNueShowerInformation(), NtpSRShower(), and SetPh(). |
|
|
Definition at line 78 of file NtpSRShower.h. Referenced by PETrimmer::CleanShower(), ClearStrips(), NtpSRShower(), and SetPh(). |
|
|
Definition at line 83 of file NtpSRShower.h. Referenced by PETrimmer::CleanShower(), ClearStrips(), MinosCompactEvent::MinosCompactEvent(), NtpSRShower(), and SetPh(). |
|
|
Definition at line 82 of file NtpSRShower.h. Referenced by PETrimmer::CleanShower(), ClearStrips(), SntpHelpers::FillEventEnergy(), ANtpInfoObjectFillerNue::FillEventEnergy(), ANtpShowerInfoAna::FillNueShowerInformation(), NtpSRShower(), and SetPh(). |
|
|
Definition at line 81 of file NtpSRShower.h. Referenced by PETrimmer::CleanShower(), ClearStrips(), NtpSRShower(), and SetPh(). |
|
|
Definition at line 86 of file NtpSRShower.h. Referenced by TimingVarsAna::Analyze(), ClearStrips(), NtpSRShower(), and SetTime(). |
|
|
Definition at line 87 of file NtpSRShower.h. Referenced by TimingVarsAna::Analyze(), ClearStrips(), NtpSRShower(), and SetTime(). |
|
|
Definition at line 88 of file NtpSRShower.h. Referenced by ClearStrips(), NtpSRShower(), and SetCalT0(). |
|
|
Definition at line 89 of file NtpSRShower.h. Referenced by ClearStrips(), NtpSRShower(), and SetCalT0(). |
|
|
Definition at line 73 of file NtpSRShower.h. Referenced by ClearStrips(), NtpSRModule::FillNtpShower(), and NtpSRShower(). |
|
|
Definition at line 74 of file NtpSRShower.h. Referenced by ClearStrips(), NtpSRModule::FillNtpShower(), and NtpSRShower(). |
|
|
Definition at line 75 of file NtpSRShower.h. Referenced by ClearStrips(), NtpSRModule::FillNtpShower(), and NtpSRShower(). |
|
|
Definition at line 76 of file NtpSRShower.h. Referenced by ClearStrips(), NtpSRModule::FillNtpShower(), and NtpSRShower(). |
|
|
Definition at line 77 of file NtpSRShower.h. Referenced by ClearStrips(), NtpSRModule::FillNtpShower(), and NtpSRShower(). |
|
1.3.9.1