infid_sr_interface.h File Reference

#include <iostream>
#include "CandNtupleSR/NtpSREvent.h"
#include "CandNtupleSR/NtpSRTrack.h"
#include "CandNtupleSR/NtpSRShower.h"
#include "StandardNtuple/NtpStRecord.h"
#include "Conventions/Detector.h"
#include "Conventions/SimFlag.h"
#include "DataUtil/infid.h"

Go to the source code of this file.

Functions

bool infid (const NtpStRecord &ntp, const NtpSREvent &evt)
bool infid (const NtpStRecord &ntp, const NtpSRTrack &trk)
bool infid (const NtpStRecord &ntp, const NtpSRShower &shw)

Function Documentation

bool infid ( const NtpStRecord ntp,
const NtpSRShower shw 
) [inline]

Definition at line 73 of file infid_sr_interface.h.

References VldContext::GetDetector(), RecRecordImp< T >::GetHeader(), FidVol::getShwVtxZOffset(), VldContext::GetSimFlag(), RecHeader::GetVldContext(), infid(), NtpSRShower::vtx, NtpSRVertex::x, NtpSRVertex::y, and NtpSRVertex::z.

00074 {
00075   //get the header
00076   const RecCandHeader& rec=ntp.GetHeader();
00077 
00078   //call the fiducial volume function with appropriate offset
00079   return infid(rec.GetVldContext().GetDetector(),
00080                rec.GetVldContext().GetSimFlag(),
00081                shw.vtx.x,
00082                shw.vtx.y,
00083                shw.vtx.z-FidVol::getShwVtxZOffset());
00084 }

bool infid ( const NtpStRecord ntp,
const NtpSRTrack trk 
) [inline]

Definition at line 58 of file infid_sr_interface.h.

References VldContext::GetDetector(), RecRecordImp< T >::GetHeader(), VldContext::GetSimFlag(), FidVol::getTrkVtxZOffset(), RecHeader::GetVldContext(), infid(), NtpSRTrack::vtx, NtpSRVertex::x, NtpSRVertex::y, and NtpSRVertex::z.

00059 {
00060   //get the header
00061   const RecCandHeader& rec=ntp.GetHeader();
00062 
00063   //call the fiducial volume function with appropriate offset
00064   return infid(rec.GetVldContext().GetDetector(),
00065                rec.GetVldContext().GetSimFlag(),
00066                trk.vtx.x,
00067                trk.vtx.y,
00068                trk.vtx.z-FidVol::getTrkVtxZOffset());
00069 }

bool infid ( const NtpStRecord ntp,
const NtpSREvent evt 
) [inline]

Definition at line 43 of file infid_sr_interface.h.

References VldContext::GetDetector(), FidVol::getEvtVtxZOffset(), RecRecordImp< T >::GetHeader(), VldContext::GetSimFlag(), RecHeader::GetVldContext(), infid(), NtpSREvent::vtx, NtpSRVertex::x, NtpSRVertex::y, and NtpSRVertex::z.

00044 {
00045   //get the header
00046   const RecCandHeader& rec=ntp.GetHeader();
00047 
00048   //call the fiducial volume function with appropriate offset
00049   return infid(rec.GetVldContext().GetDetector(),
00050                rec.GetVldContext().GetSimFlag(),
00051                evt.vtx.x,
00052                evt.vtx.y,
00053                evt.vtx.z-FidVol::getEvtVtxZOffset());
00054 }


Generated on 24 Apr 2018 for loon by  doxygen 1.6.1