Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

Anp::Vertex Class Reference

#include <Vertex.h>

List of all members.

Public Member Functions

 Vertex ()
 Vertex (float u_, float v_, float z_, float cosu_, float cosv_, float cosz_, bool isfid_)
 ~Vertex ()
float X () const
float Y () const
float Z () const
float U () const
float V () const
float R (float x_=0.0, float y_=0.0) const
float CosX () const
float CosY () const
float CosZ () const
float CosU () const
float CosV () const
bool IsFiducial () const
void Clear ()
void Print (std::ostream &os=std::cout) const

Private Attributes

Float_t u
Float_t v
Float_t z
Float_t dcosu
Float_t dcosv
Float_t dcosz
Bool_t isfid


Constructor & Destructor Documentation

Anp::Vertex::Vertex  ) 
 

Definition at line 12 of file PhysicsNtuple/Vertex.cxx.

00013    :u(-1.0e6),
00014     v(-1.0e6),
00015     z(-1.0e6),
00016     dcosu(-1.0e6),
00017     dcosv(-1.0e6),
00018     dcosz(-1.0e6),
00019     isfid(false)
00020 {
00021 }

Anp::Vertex::Vertex float  u_,
float  v_,
float  z_,
float  cosu_,
float  cosv_,
float  cosz_,
bool  isfid_
 

Definition at line 24 of file PhysicsNtuple/Vertex.cxx.

00025    :u(u_),
00026     v(v_),
00027     z(z_),
00028     dcosu(cosu_),
00029     dcosv(cosv_),
00030     dcosz(cosz_),
00031     isfid(isfid_)
00032 {
00033 }

Anp::Vertex::~Vertex  ) 
 

Definition at line 36 of file PhysicsNtuple/Vertex.cxx.

00037 {
00038 }


Member Function Documentation

void Anp::Vertex::Clear  ) 
 

Definition at line 71 of file PhysicsNtuple/Vertex.cxx.

References dcosu, dcosv, dcosz, isfid, u, v, and z.

Referenced by Anp::Track::Clear(), Anp::Shower::Clear(), Anp::Event::Clear(), and Anp::FillBasic::Fill().

00072 {
00073    u     = -1.0e6;
00074    v     = -1.0e6;
00075    z     = -1.0e6;
00076    dcosu = -1.0e6;
00077    dcosv = -1.0e6;
00078    dcosz = -1.0e6;
00079    isfid = false;
00080 }

float Anp::Vertex::CosU  )  const [inline]
 

Definition at line 67 of file PhysicsNtuple/Vertex.h.

Referenced by Anp::SelectFiducial::PassTrack().

00067 { return dcosu; }

float Anp::Vertex::CosV  )  const [inline]
 

Definition at line 68 of file PhysicsNtuple/Vertex.h.

Referenced by Anp::SelectFiducial::PassTrack().

00068 { return dcosv; }  

float Anp::Vertex::CosX  )  const
 

Definition at line 59 of file PhysicsNtuple/Vertex.cxx.

References dcosu, dcosv, and Anp::uv2x().

Referenced by Anp::HistVtx::Fill(), Anp::PlotTrackGeom::Fill(), Anp::FillTrackGeom::Fill(), Anp::PlotTrackGeom::FillProjection(), Anp::PlotTrackGeom::FillRotation(), and Anp::PlotTrackGeom::FillXProduct().

00060 {
00061    return Anp::uv2x(dcosu, dcosv);
00062 }

float Anp::Vertex::CosY  )  const
 

Definition at line 65 of file PhysicsNtuple/Vertex.cxx.

References dcosu, dcosv, and Anp::uv2y().

Referenced by Anp::HistVtx::Fill(), Anp::PlotTrackGeom::Fill(), Anp::FillTrackGeom::Fill(), Anp::FillEvent::Fill(), Anp::PlotTrackGeom::FillProjection(), Anp::PlotTrackGeom::FillRotation(), and Anp::PlotTrackGeom::FillXProduct().

00066 {
00067    return Anp::uv2y(dcosu, dcosv);
00068 }

float Anp::Vertex::CosZ  )  const [inline]
 

Definition at line 66 of file PhysicsNtuple/Vertex.h.

Referenced by Anp::HistVtx::Fill(), Anp::PlotTrackGeom::Fill(), Anp::FillTrackGeom::Fill(), Anp::FillEvent::Fill(), Anp::PlotTrackGeom::FillProjection(), Anp::PlotTrackGeom::FillRotation(), Anp::PlotTrackGeom::FillXProduct(), and Anp::SelectFiducial::PassTrack().

00066 { return dcosz; }       

bool Anp::Vertex::IsFiducial  )  const [inline]
 

Definition at line 70 of file PhysicsNtuple/Vertex.h.

Referenced by Anp::SelectFiducial::Pass(), Anp::SelectFiducial::PassTrack(), and Anp::PlotReson::Plot().

00070 { return isfid; }

void Anp::Vertex::Print std::ostream &  os = std::cout  )  const
 

Definition at line 83 of file PhysicsNtuple/Vertex.cxx.

References dcosu, dcosv, dcosz, isfid, u, v, and z.

Referenced by Anp::Event::Print().

00084 {
00085    os << "Vertex::Print: isfid = " << isfid << std::endl
00086       << "   (u, v, z) = (" << u << ", " << v << ", " << z << ")" << std::endl
00087       << "   (cosu, cosv, cosz) = (" << dcosu << ", " << dcosv << ", " << dcosz << ")" << std::endl;
00088 }

float Anp::Vertex::R float  x_ = 0.0,
float  y_ = 0.0
const
 

Definition at line 53 of file PhysicsNtuple/Vertex.cxx.

References X(), and Y().

00054 {
00055    return std::sqrt((X()-x_)*(X()-x_) + (Y()-y_)*(Y()-y_));
00056 }

float Anp::Vertex::U  )  const [inline]
 

Definition at line 63 of file PhysicsNtuple/Vertex.h.

Referenced by Anp::HistVtx::Fill(), Anp::SelectFiducial::Pass(), and Anp::SelectFiducial::PassTrack().

00063 { return u; }   

float Anp::Vertex::V  )  const [inline]
 

Definition at line 64 of file PhysicsNtuple/Vertex.h.

Referenced by Anp::HistVtx::Fill(), Anp::SelectFiducial::Pass(), and Anp::SelectFiducial::PassTrack().

00064 { return v; }

float Anp::Vertex::X  )  const
 

Definition at line 41 of file PhysicsNtuple/Vertex.cxx.

References u, Anp::uv2x(), and v.

Referenced by Anp::HistVtx::Fill(), Anp::PlotTrackGeom::Fill(), Anp::FillTrackGeom::Fill(), Anp::FillEvent::FillNearestR(), Anp::PlotTrackGeom::FillProjection(), Anp::PlotTrackGeom::FillRotation(), Anp::PlotTrackGeom::FillXProduct(), Anp::SelectFiducial::Pass(), R(), and Anp::SelectNuMu::ResetStop().

00042 {
00043    return Anp::uv2x(u, v);
00044 }

float Anp::Vertex::Y  )  const
 

Definition at line 47 of file PhysicsNtuple/Vertex.cxx.

References u, Anp::uv2y(), and v.

Referenced by Anp::HistVtx::Fill(), Anp::PlotTrackGeom::Fill(), Anp::FillTrackGeom::Fill(), Anp::FillEvent::FillNearestR(), Anp::PlotTrackGeom::FillProjection(), Anp::PlotTrackGeom::FillRotation(), Anp::PlotTrackGeom::FillXProduct(), Anp::SelectFiducial::Pass(), R(), and Anp::SelectNuMu::ResetStop().

00048 {
00049    return Anp::uv2y(u, v);
00050 }

float Anp::Vertex::Z  )  const [inline]
 

Definition at line 62 of file PhysicsNtuple/Vertex.h.

Referenced by Anp::HistVtx::Fill(), Anp::FillTrackGeom::Fill(), Anp::FillEvent::FillNearestR(), Anp::FillEvent::FillNearestT(), Anp::PlotTrackGeom::FillProjection(), Anp::PlotTrackGeom::FillRotation(), Anp::SelectFiducial::Pass(), Anp::SelectFiducial::PassTrack(), and Anp::SelectNuMu::ResetStop().

00062 { return z; }   


Member Data Documentation

Float_t Anp::Vertex::dcosu [private]
 

Definition at line 52 of file PhysicsNtuple/Vertex.h.

Referenced by Clear(), CosX(), CosY(), and Print().

Float_t Anp::Vertex::dcosv [private]
 

Definition at line 53 of file PhysicsNtuple/Vertex.h.

Referenced by Clear(), CosX(), CosY(), and Print().

Float_t Anp::Vertex::dcosz [private]
 

Definition at line 54 of file PhysicsNtuple/Vertex.h.

Referenced by Clear(), and Print().

Bool_t Anp::Vertex::isfid [private]
 

Definition at line 56 of file PhysicsNtuple/Vertex.h.

Referenced by Clear(), and Print().

Float_t Anp::Vertex::u [private]
 

Definition at line 48 of file PhysicsNtuple/Vertex.h.

Referenced by Clear(), Print(), X(), and Y().

Float_t Anp::Vertex::v [private]
 

Definition at line 49 of file PhysicsNtuple/Vertex.h.

Referenced by Clear(), Print(), X(), and Y().

Float_t Anp::Vertex::z [private]
 

Definition at line 50 of file PhysicsNtuple/Vertex.h.

Referenced by Clear(), and Print().


The documentation for this class was generated from the following files:
Generated on Sat Feb 14 22:54:04 2009 for loon by doxygen 1.3.5