|
||||||||||||
|
Definition at line 135 of file SntpHelpers.cxx. References NtpStRecord::evt, NtpStRecord::evthdr, and NtpSREventSummary::nevent. 00136 {
00137 NtpSREvent *event=0;
00138 if(st==0){
00139 return event;
00140 }
00141 if(evnt>=st->evthdr.nevent){
00142 return event;
00143 }
00144
00145 event = dynamic_cast<NtpSREvent *>((*st->evt)[evnt]);
00146
00147 return event;
00148 }
|
|
||||||||||||
|
Definition at line 74 of file SntpHelpers.cxx. References NtpSRRecord::evt, NtpSRRecord::evthdr, and NtpSREventSummary::nevent. 00075 {
00076 NtpSREvent *event=0;
00077 if(sr==0){
00078 return event;
00079 }
00080 if(evnt>=sr->evthdr.nevent){
00081 return event;
00082 }
00083
00084 event = dynamic_cast<NtpSREvent *>((*sr->evt)[evnt]);
00085
00086 return event;
00087 }
|
|
||||||||||||
|
Definition at line 16 of file SntpHelpers.cxx. Referenced by NueSensitivity::Ana(), NueReadTJPID::Ana(), ShwfitAna::Analyze(), HitCalcAna::Analyze(), FracVarAna::Analyze(), ANtpEventInfoAna::Analyze(), ANtpAnalysisInfoAna::Analyze(), MSTCalcAna::FillHitSets(), NueDisplayModule::GetEvent(), and NueModule::Reco(). 00017 {
00018 NtpStRecord *st=dynamic_cast<NtpStRecord *>(rri);
00019
00020 if(st!=0){
00021 return GetEvent(evnt,st);
00022 }
00023
00024 NtpSRRecord *sr=dynamic_cast<NtpSRRecord *>(rri);
00025 if(sr!=0){
00026 return GetEvent(evnt,sr);
00027 }
00028
00029 return 0;
00030 }
|
|
||||||||||||
|
Definition at line 275 of file SntpHelpers.cxx. References NtpTHEvent::neumc, and NtpStRecord::thevt. 00276 {
00277 int thsize=st->thevt->GetEntries();
00278 if(evnt>=thsize){
00279 return -1;
00280 }
00281 NtpTHEvent *the = dynamic_cast<NtpTHEvent *>((*st->thevt)[evnt]);
00282 return the->neumc;
00283
00284 }
|
|
||||||||||||
|
Definition at line 264 of file SntpHelpers.cxx. References NtpTHEvent::neumc, and NtpTHRecord::thevt. Referenced by NueSensitivity::Ana(), NueReadTJPID::Ana(), and NueDisplayModule::GetBasicInfo(). 00265 {
00266 int thsize=th->thevt->GetEntries();
00267 if(evnt>=thsize){
00268 return -1;
00269 }
00270 NtpTHEvent *the = dynamic_cast<NtpTHEvent *>((*th->thevt)[evnt]);
00271 return the->neumc;
00272
00273 }
|
|
||||||||||||
|
Definition at line 299 of file SntpHelpers.cxx. References NtpStRecord::mc. 00300 {
00301 NtpMCTruth *mct=0;
00302
00303 if(index>=st->mc->GetEntries()){
00304 return mct;
00305 }
00306
00307 mct=dynamic_cast<NtpMCTruth *>((*st->mc)[index]);
00308 return mct;
00309
00310 }
|
|
||||||||||||
|
Definition at line 286 of file SntpHelpers.cxx. References NtpMCRecord::mc. Referenced by NueSensitivity::Ana(), NueReadTJPID::Ana(), and NueDisplayModule::GetBasicInfo(). 00287 {
00288 NtpMCTruth *mct=0;
00289
00290 if(index>=mc->mc->GetEntries()){
00291 return mct;
00292 }
00293
00294 mct=dynamic_cast<NtpMCTruth *>((*mc->mc)[index]);
00295 return mct;
00296
00297 }
|
|
||||||||||||
|
Definition at line 165 of file SntpHelpers.cxx. References NtpStRecord::evthdr, NtpSREventSummary::nshower, and NtpStRecord::shw. 00166 {
00167 NtpSRShower *shower=0;
00168 if(st==0){
00169 return shower;
00170 }
00171 if(shwn>=st->evthdr.nshower){
00172 return shower;
00173 }
00174
00175 shower = dynamic_cast<NtpSRShower *>((*st->shw)[shwn]);
00176
00177 return shower;
00178 }
|
|
||||||||||||
|
Definition at line 104 of file SntpHelpers.cxx. References NtpSRRecord::evthdr, NtpSREventSummary::nshower, and NtpSRRecord::shw. 00105 {
00106 NtpSRShower *shower=0;
00107 if(sr==0){
00108 return shower;
00109 }
00110 if(shwn>=sr->evthdr.nshower){
00111 return shower;
00112 }
00113
00114 shower = dynamic_cast<NtpSRShower *>((*sr->shw)[shwn]);
00115
00116 return shower;
00117 }
|
|
||||||||||||
|
Definition at line 46 of file SntpHelpers.cxx. Referenced by NueReadTJPID::Ana(), FracVarAna::Analyze(), and NueDisplayModule::GetBasicInfo(). 00047 {
00048 NtpStRecord *st=dynamic_cast<NtpStRecord *>(rri);
00049 if(st!=0){
00050 return GetShower(shwn,st);
00051 }
00052
00053 NtpSRRecord *sr=dynamic_cast<NtpSRRecord *>(rri);
00054 if(sr!=0){
00055 return GetShower(shwn,sr);
00056 }
00057 return 0;
00058 }
|
|
||||||||||||
|
Definition at line 252 of file SntpHelpers.cxx. References NtpSREvent::nshower, and NtpSREvent::shw. Referenced by NueReadTJPID::Ana(), and NueDisplayModule::GetBasicInfo(). 00253 {
00254 if(shwn>=event->nshower){
00255 return -1;
00256 }
00257 else{
00258 return event->shw[shwn];
00259 }
00260 return -1;
00261 }
|
|
||||||||||||
|
Definition at line 312 of file SntpHelpers.cxx. References NtpMCStdHep::mc, NtpMCRecord::stdhep, and v. 00313 {
00314 std::vector<NtpMCStdHep *> v;
00315 for(int i=0;i<mc->stdhep->GetEntries();i++){
00316 NtpMCStdHep *stdhep = dynamic_cast<NtpMCStdHep *>((*mc->stdhep)[i]);
00317 if(stdhep->mc==index){
00318 v.push_back(stdhep);
00319 }
00320 }
00321 return v;
00322 }
|
|
||||||||||||
|
Definition at line 180 of file SntpHelpers.cxx. References NtpStRecord::evthdr, NtpSREventSummary::nstrip, and NtpStRecord::stp. 00181 {
00182 NtpSRStrip *strip=0;
00183 if(st==0){
00184 return strip;
00185 }
00186 if(stpn>=(int)(st->evthdr.nstrip)){
00187 return strip;
00188 }
00189
00190 strip = dynamic_cast<NtpSRStrip *>((*st->stp)[stpn]);
00191
00192 return strip;
00193 }
|
|
||||||||||||
|
Definition at line 119 of file SntpHelpers.cxx. References NtpSRRecord::evthdr, NtpSREventSummary::nstrip, and NtpSRRecord::stp. 00120 {
00121 NtpSRStrip *strip=0;
00122 if(sr==0){
00123 return strip;
00124 }
00125 if(stpn>=(int)(sr->evthdr.nstrip)){
00126 return strip;
00127 }
00128
00129 strip = dynamic_cast<NtpSRStrip *>((*sr->stp)[stpn]);
00130
00131 return strip;
00132 }
|
|
||||||||||||
|
Definition at line 60 of file SntpHelpers.cxx. Referenced by ShwfitAna::Analyze(), FracVarAna::Analyze(), HitCalcAna::ComputeHits(), ANtpEventInfoAna::DetermineTrigger(), MSTCalcAna::FillHitSets(), and ANtpEventInfoAna::FindHotCh(). 00061 {
00062 NtpStRecord *st=dynamic_cast<NtpStRecord *>(rri);
00063 if(st!=0){
00064 return GetStrip(stpn,st);
00065 }
00066
00067 NtpSRRecord *sr=dynamic_cast<NtpSRRecord *>(rri);
00068 if(sr!=0){
00069 return GetStrip(stpn,sr);
00070 }
00071 return 0;
00072 }
|
|
||||||||||||
|
Definition at line 196 of file SntpHelpers.cxx. References NtpSRShower::nstrip, NtpSRTrack::nstrip, NtpSREvent::nstrip, NtpSRShower::stp, NtpSRTrack::stp, and NtpSREvent::stp. Referenced by ShwfitAna::Analyze(), HitCalcAna::ComputeHits(), ANtpEventInfoAna::DetermineTrigger(), MSTCalcAna::FillHitSets(), and ANtpEventInfoAna::FindHotCh(). 00197 {
00198 //this may be a stupid way of doing this, but it's the only way I can think of
00199 //we may want to do this for other reco objects in the future
00200 if(obj==0){
00201 return -1;
00202 }
00203
00204 const char* cn = obj->ClassName();
00205
00206 if(strcmp(cn,"NtpSREvent")==0){
00207 NtpSREvent *event = dynamic_cast<NtpSREvent *>(obj);
00208 if(stpn>=event->nstrip){
00209 return -1;
00210 }
00211 else{
00212 return event->stp[stpn];
00213 }
00214 }
00215 else if(strcmp(cn,"NtpSRTrack")==0){
00216 NtpSRTrack *track = dynamic_cast<NtpSRTrack *>(obj);
00217 if(stpn>=track->nstrip){
00218 return -1;
00219 }
00220 else{
00221 return track->stp[stpn];
00222 }
00223 }
00224 else if(strcmp(cn,"NtpSRShower")==0){
00225 NtpSRShower *shower = dynamic_cast<NtpSRShower *>(obj);
00226 if(stpn>=shower->nstrip){
00227 return -1;
00228 }
00229 else{
00230 return shower->stp[stpn];
00231 }
00232
00233 }
00234 else{
00235 return -1;
00236 }
00237
00238 return -1;
00239 }
|
|
||||||||||||
|
Definition at line 150 of file SntpHelpers.cxx. References NtpStRecord::evthdr, NtpSREventSummary::ntrack, and NtpStRecord::trk. 00151 {
00152 NtpSRTrack *track=0;
00153 if(st==0){
00154 return track;
00155 }
00156 if(trkn>=st->evthdr.ntrack){
00157 return track;
00158 }
00159
00160 track = dynamic_cast<NtpSRTrack *>((*st->trk)[trkn]);
00161
00162 return track;
00163 }
|
|
||||||||||||
|
Definition at line 89 of file SntpHelpers.cxx. References NtpSRRecord::evthdr, NtpSREventSummary::ntrack, and NtpSRRecord::trk. 00090 {
00091 NtpSRTrack *track=0;
00092 if(sr==0){
00093 return track;
00094 }
00095 if(trkn>=sr->evthdr.ntrack){
00096 return track;
00097 }
00098
00099 track = dynamic_cast<NtpSRTrack *>((*sr->trk)[trkn]);
00100
00101 return track;
00102 }
|
|
||||||||||||
|
Definition at line 32 of file SntpHelpers.cxx. Referenced by NueReadTJPID::Ana(), ShwfitAna::Analyze(), FracVarAna::Analyze(), NueDisplayModule::GetBasicInfo(), EventFilter::PassesHiTrackCut(), and NueModule::Reco(). 00033 {
00034 NtpStRecord *st=dynamic_cast<NtpStRecord *>(rri);
00035 if(st!=0){
00036 return GetTrack(trkn,st);
00037 }
00038
00039 NtpSRRecord *sr=dynamic_cast<NtpSRRecord *>(rri);
00040 if(sr!=0){
00041 return GetTrack(trkn,sr);
00042 }
00043 return 0;
00044 }
|
|
||||||||||||
|
Definition at line 241 of file SntpHelpers.cxx. References NtpSREvent::ntrack, and NtpSREvent::trk. Referenced by NueReadTJPID::Ana(), ShwfitAna::Analyze(), NueDisplayModule::GetBasicInfo(), EventFilter::PassesHiTrackCut(), and NueModule::Reco(). 00242 {
00243 if(trkn>=event->ntrack){
00244 return -1;
00245 }
00246 else{
00247 return event->trk[trkn];
00248 }
00249 return -1;
00250 }
|
1.3.9.1