Namespaces | |
| namespace | NuMI |
Functions | |
| bool | RawHasPion (const MIPPEventSummary *evt) |
| bool | RawHasKaon (const MIPPEventSummary *evt) |
| bool | RawHasProton (const MIPPEventSummary *evt) |
| bool | RawIntPion (const MIPPEventSummary *evt) |
| bool | RawIntKaon (const MIPPEventSummary *evt) |
| bool | RawIntProton (const MIPPEventSummary *evt) |
| bool | PSHasPion (const MIPPEventSummary *evt) |
| bool | PSHasKaon (const MIPPEventSummary *evt) |
| bool | PSHasProton (const MIPPEventSummary *evt) |
| bool | PSIntPion (const MIPPEventSummary *evt) |
| bool | PSIntKaon (const MIPPEventSummary *evt) |
| bool | PSIntProton (const MIPPEventSummary *evt) |
| bool | PSIsMinBias (const MIPPEventSummary *evt) |
| bool | PSIsMinBiasPion (const MIPPEventSummary *evt) |
| bool | PSIsMinBiasKaon (const MIPPEventSummary *evt) |
| bool | PSIsMinBiasProton (const MIPPEventSummary *evt) |
| int | PSIsMinBiasPID (const MIPPEventSummary *evt) |
| bool | ScintHi (const MIPPEventSummary *evt) |
| bool | iDCHi (const MIPPEventSummary *evt) |
| bool | InterSpill (const MIPPEventSummary *evt) |
| bool DSTUtil::Trig::RawHasPion | ( | const MIPPEventSummary * | evt | ) |
Definition at line 198 of file DSTUtil.cxx.
References MIPPEventSummary::rawtrig.
Referenced by main().
00198 { 00199 return ( (evt->rawtrig&0x0020) > 0); 00200 }
| bool DSTUtil::Trig::RawHasKaon | ( | const MIPPEventSummary * | evt | ) |
Definition at line 204 of file DSTUtil.cxx.
References MIPPEventSummary::rawtrig.
Referenced by main().
00204 { 00205 return ( (evt->rawtrig&0x0010) > 0); 00206 }
| bool DSTUtil::Trig::RawHasProton | ( | const MIPPEventSummary * | evt | ) |
Definition at line 210 of file DSTUtil.cxx.
References MIPPEventSummary::rawtrig.
Referenced by main().
00210 { 00211 return ( (evt->rawtrig&0x0040) > 0); 00212 }
| bool DSTUtil::Trig::RawIntPion | ( | const MIPPEventSummary * | evt | ) |
Definition at line 216 of file DSTUtil.cxx.
References MIPPEventSummary::rawtrig.
Referenced by main().
00216 { 00217 //has interaction 00218 return ( (evt->rawtrig&0x0200) > 0); 00219 }
| bool DSTUtil::Trig::RawIntKaon | ( | const MIPPEventSummary * | evt | ) |
Definition at line 223 of file DSTUtil.cxx.
References MIPPEventSummary::rawtrig.
Referenced by main().
00223 { 00224 //has interaction 00225 return ( (evt->rawtrig&0x0100) > 0); 00226 }
| bool DSTUtil::Trig::RawIntProton | ( | const MIPPEventSummary * | evt | ) |
Definition at line 230 of file DSTUtil.cxx.
References MIPPEventSummary::rawtrig.
Referenced by main().
00230 { 00231 //has interaction 00232 return ( (evt->rawtrig&0x0400) > 0); 00233 }
| bool DSTUtil::Trig::PSHasPion | ( | const MIPPEventSummary * | evt | ) |
Definition at line 235 of file DSTUtil.cxx.
References MIPPEventSummary::pstrig.
Referenced by BeamType(), and ProcEvent().
00235 { 00236 return ( (evt->pstrig&0x0020) == 0x0020 || 00237 (evt->pstrig&0x0200) == 0x0200 ); 00238 }
| bool DSTUtil::Trig::PSHasKaon | ( | const MIPPEventSummary * | evt | ) |
Definition at line 240 of file DSTUtil.cxx.
References MIPPEventSummary::pstrig.
Referenced by BeamType(), and ProcEvent().
00240 { 00241 return ( (evt->pstrig&0x0010) == 0x0010 || 00242 (evt->pstrig&0x0100) == 0x0100 ); 00243 }
| bool DSTUtil::Trig::PSHasProton | ( | const MIPPEventSummary * | evt | ) |
Definition at line 245 of file DSTUtil.cxx.
References MIPPEventSummary::pstrig.
Referenced by BeamType(), and ProcEvent().
00245 { 00246 return ( (evt->pstrig&0x0040) == 0x0040 || 00247 (evt->pstrig&0x0400) == 0x0400 ); 00248 }
| bool DSTUtil::Trig::PSIntPion | ( | const MIPPEventSummary * | evt | ) |
Definition at line 250 of file DSTUtil.cxx.
References MIPPEventSummary::pstrig.
00250 { 00251 //has interaction 00252 return ((evt->pstrig&0x0200) == 0x0200 ); 00253 }
| bool DSTUtil::Trig::PSIntKaon | ( | const MIPPEventSummary * | evt | ) |
Definition at line 255 of file DSTUtil.cxx.
References MIPPEventSummary::pstrig.
00255 { 00256 //has interaction 00257 return ((evt->pstrig&0x0100) == 0x0100 ); 00258 }
| bool DSTUtil::Trig::PSIntProton | ( | const MIPPEventSummary * | evt | ) |
Definition at line 260 of file DSTUtil.cxx.
References MIPPEventSummary::pstrig.
00260 { 00261 //has interaction 00262 return ((evt->pstrig&0x0400) == 0x0400 ); 00263 }
| bool DSTUtil::Trig::PSIsMinBias | ( | const MIPPEventSummary * | evt | ) |
Definition at line 265 of file DSTUtil.cxx.
References MIPPEventSummary::pstrig.
Referenced by fillTriggerSummary().
00265 { 00266 //triggered without interaction requirement; bits 0,4,5,6 00267 return ((evt->pstrig&0x0071) > 0 ); 00268 }
| bool DSTUtil::Trig::PSIsMinBiasPion | ( | const MIPPEventSummary * | evt | ) |
Definition at line 270 of file DSTUtil.cxx.
References DSTUtil::Bflux::kPiBeamBit, and MIPPEventSummary::pstrig.
00270 { 00271 //triggered without interaction requirement; Pion beam ID 00272 int bit = (1<<Bflux::kPiBeamBit); 00273 return ((evt->pstrig&bit) == bit ); 00274 }
| bool DSTUtil::Trig::PSIsMinBiasKaon | ( | const MIPPEventSummary * | evt | ) |
Definition at line 276 of file DSTUtil.cxx.
References DSTUtil::Bflux::kKBeamBit, and MIPPEventSummary::pstrig.
00276 { 00277 //triggered without interaction requirement; Kaon beam ID 00278 int bit = (1<<Bflux::kKBeamBit); 00279 return ((evt->pstrig&bit) == bit ); 00280 }
| bool DSTUtil::Trig::PSIsMinBiasProton | ( | const MIPPEventSummary * | evt | ) |
Definition at line 282 of file DSTUtil.cxx.
References DSTUtil::Bflux::kPBeamBit, and MIPPEventSummary::pstrig.
00282 { 00283 //triggered without interaction requirement; Proton beam ID 00284 int bit = (1<<Bflux::kPBeamBit); 00285 return ((evt->pstrig&bit) == bit ); 00286 }
| int DSTUtil::Trig::PSIsMinBiasPID | ( | const MIPPEventSummary * | evt | ) |
Definition at line 288 of file DSTUtil.cxx.
References PIDDef::kKaon, DSTUtil::Bflux::kKBeamBit, DSTUtil::Bflux::kPBeamBit, DSTUtil::Bflux::kPiBeamBit, PIDDef::kPion, PIDDef::kProton, and MIPPEventSummary::pstrig.
00288 { 00289 //triggered without interaction requirement, with beam ID; bits 4,5,6 00290 //return 0 (false) if not min bias, else return PIDDef::kPion, etc. 00291 //Note: 0 does not mean PIDDef::kElectron here. We don't have 00292 //any electron beam. 00293 int ret = 0; 00294 if ((evt->pstrig&(1<<Bflux::kPiBeamBit)) == (1<<Bflux::kPiBeamBit)) { 00295 ret = PIDDef::kPion; 00296 } 00297 if ((evt->pstrig&(1<<Bflux::kKBeamBit)) == (1<<Bflux::kKBeamBit)) { 00298 if (ret == 0) ret = PIDDef::kKaon; 00299 else return 0; // both Pion and Kaon must be bad. 00300 } 00301 if ((evt->pstrig&(1<<Bflux::kPBeamBit)) == (1<<Bflux::kPBeamBit)) { 00302 if (ret == 0) ret = PIDDef::kProton; 00303 else return 0; // both Proton and something else must be bad. 00304 } 00305 return ret; 00306 }
| bool DSTUtil::Trig::ScintHi | ( | const MIPPEventSummary * | evt | ) |
Definition at line 308 of file DSTUtil.cxx.
References MIPPEventSummary::rawtrig.
Referenced by main().
00308 { 00309 //scinteraction trigger hi 00310 return ((evt->rawtrig & 0x4000) == 0x04000); 00311 }
| bool DSTUtil::Trig::iDCHi | ( | const MIPPEventSummary * | evt | ) |
Definition at line 313 of file DSTUtil.cxx.
References MIPPEventSummary::rawtrig.
00313 { 00314 //interaction drift chamber Hi 00315 return ( (evt->rawtrig & 0x8000) == 0x8000); 00316 }
| bool DSTUtil::Trig::InterSpill | ( | const MIPPEventSummary * | evt | ) |
Definition at line 318 of file DSTUtil.cxx.
References MIPPEventSummary::pstrig.
Referenced by ValiCham::InterSpill(), and main().
00318 { 00319 //Interspill record 00320 return ((evt->pstrig & 0x2000) == 0x2000); 00321 }
1.4.7