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 SetFiducial (bool fid)
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

Detailed Description

Definition at line 17 of file PhysicsNtuple/HEAD/Vertex.h.


Constructor & Destructor Documentation

Vertex::Vertex (  ) 

Definition at line 12 of file PhysicsNtuple/HEAD/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 }

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

Definition at line 24 of file PhysicsNtuple/HEAD/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 }

Vertex::~Vertex (  ) 

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

00037 {
00038 }


Member Function Documentation

void Vertex::Clear ( void   ) 

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

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

Referenced by Anp::Event::Clear(), Anp::Track::Clear(), Anp::Shower::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 Vertex::CosU (  )  const [inline]

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

References dcosu.

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

00068 { return dcosu; }

float Vertex::CosV (  )  const [inline]

Definition at line 69 of file PhysicsNtuple/HEAD/Vertex.h.

References dcosv.

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

00069 { return dcosv; }  

float Vertex::CosX (  )  const
float Vertex::CosY (  )  const
float Vertex::CosZ (  )  const [inline]
bool Vertex::IsFiducial (  )  const [inline]

Definition at line 71 of file PhysicsNtuple/HEAD/Vertex.h.

References isfid.

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

00071 { return isfid; }

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

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

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

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 Vertex::R ( float  x_ = 0.0,
float  y_ = 0.0 
) const

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

References X(), and Y().

Referenced by Anp::PlotShort::FillStandard().

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

void Vertex::SetFiducial ( bool  fid  )  [inline]

Definition at line 72 of file PhysicsNtuple/HEAD/Vertex.h.

References isfid.

00072 { isfid = fid; }

float Vertex::U (  )  const [inline]

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

References u.

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

00064 { return u; }   

float Vertex::V (  )  const [inline]

Definition at line 65 of file PhysicsNtuple/HEAD/Vertex.h.

References v.

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

00065 { return v; }

float Vertex::X (  )  const
float Vertex::Y (  )  const
float Vertex::Z ( void   )  const [inline]

Member Data Documentation

Float_t Anp::Vertex::dcosu [private]

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

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

Float_t Anp::Vertex::dcosv [private]

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

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

Float_t Anp::Vertex::dcosz [private]

Definition at line 55 of file PhysicsNtuple/HEAD/Vertex.h.

Referenced by Clear(), CosZ(), and Print().

Bool_t Anp::Vertex::isfid [private]

Definition at line 57 of file PhysicsNtuple/HEAD/Vertex.h.

Referenced by Clear(), IsFiducial(), Print(), and SetFiducial().

Float_t Anp::Vertex::u [private]

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

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

Float_t Anp::Vertex::v [private]

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

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

Float_t Anp::Vertex::z [private]

Definition at line 51 of file PhysicsNtuple/HEAD/Vertex.h.

Referenced by Clear(), Print(), and Z().


The documentation for this class was generated from the following files:

Generated on 24 Apr 2018 for loon by  doxygen 1.6.1