Logo ROOT  
Reference Guide
Loading...
Searching...
No Matches
ROOT::Experimental::REveZXProjection Class Reference

Definition at line 248 of file REveProjections.hxx.

Public Types

enum  EGeoMode_e { kGM_Unknown , kGM_Polygons , kGM_Segments }
enum  EPProc_e { kPP_Plane , kPP_Distort , kPP_Full }
enum  EPType_e {
  kPT_Unknown , kPT_RhoZ , kPT_RPhi , kPT_XZ ,
  kPT_YZ , kPT_ZX , kPT_ZY , kPT_3D ,
  kPT_End
}
typedef std::vector< PreScaleEntry_tvPreScale_t

Public Member Functions

 REveZXProjection ()
 Constructor.
 ~REveZXProjection () override
virtual Bool_t AcceptSegment (REveVector &, REveVector &, Float_t) const
void AddPreScaleEntry (Int_t coord, Float_t max_val, Float_t scale)
 Add new scaling range for given coordinate.
virtual void BisectBreakPoint (REveVector &vL, REveVector &vR, Bool_t project_result=kFALSE, Float_t depth=0)
 Find break-point on both sides of the discontinuity.
virtual void BisectBreakPoint (REveVector &vL, REveVector &vR, Float_t eps_sqr)
 Find break-point on both sides of the discontinuity.
void ChangePreScaleEntry (Int_t coord, Int_t entry, Float_t new_scale)
 Change scale for given entry and coordinate.
void ClearPreScales ()
 Clear all pre-scaling information.
Bool_t GetDisplaceOrigin () const
Float_t GetDistortion () const
Float_t GetFixR () const
Float_t GetFixZ () const
EGeoMode_e GetGeoMode () const
Float_t GetLimit (Int_t i, Bool_t pos)
Float_t GetMaxTrackStep () const
const char * GetName () const
REveVector GetOrthogonalCenter (int idx, REveVector &out)
 Get center ortogonal to given axis index.
Float_t GetPastFixRFac () const
Float_t GetPastFixZFac () const
Float_tGetProjectedCenter () override
 Get projected center.
virtual Float_t GetScreenVal (Int_t ax, Float_t value)
 Project point on given axis and return projected value.
Float_t GetScreenVal (Int_t i, Float_t x, REveVector &dirVec, REveVector &oCenter)
 Project point on given axis and return projected value.
EPType_e GetType () const
Bool_t GetUsePreScale () const
virtual Float_t GetValForScreenPos (Int_t ax, Float_t value)
 Inverse projection.
virtual Bool_t HasSeveralSubSpaces () const
Bool_t Is2D () const override
Bool_t Is3D () const override
virtual Bool_t IsOnSubSpaceBoundrary (const REveVector &) const
void PreScalePoint (Float_t &x, Float_t &y)
 Pre-scale point (x, y) in projected coordinates for 2D projections:
void PreScalePoint (Float_t &x, Float_t &y, Float_t &z)
 Pre-scale point (x, y, z) in projected coordinates for 3D projection.
void ProjectPoint (Float_t &x, Float_t &y, Float_t &z, Float_t d, EPProc_e proc=kPP_Full) override
 Project point.
void ProjectPointdv (const REveTrans *t, const Double_t *p, Double_t *v, Float_t d)
 Project double array, converting it to global coordinate system first if transformation matrix is set.
void ProjectPointdv (Double_t *v, Float_t d)
 Project double array.
void ProjectPointfv (const REveTrans *t, const Float_t *p, Float_t *v, Float_t d)
 Project float array, converting it to global coordinate system first if transformation matrix is set.
void ProjectPointfv (Float_t *v, Float_t d)
 Project float array.
void ProjectVector (const REveTrans *t, REveVector &v, Float_t d)
 Project REveVector, converting it to global coordinate system first if transformation matrix is set.
void ProjectVector (REveVector &v, Float_t d)
 Project REveVector.
const REveVectorRefCenter () const
void SetCenter (REveVector &v) override
 Set center of distortion (virtual method).
void SetDirectionalVector (Int_t screenAxis, REveVector &vec) override
 Get direction in the unprojected space for axis index in the projected space.
void SetDisplaceOrigin (bool)
 Set flag to displace for center.
void SetDistortion (Float_t d)
 Set distortion.
void SetFixR (Float_t x)
 Set fixed radius.
void SetFixZ (Float_t x)
 Set fixed radius.
void SetGeoMode (EGeoMode_e m)
void SetMaxTrackStep (Float_t x)
void SetName (const char *txt)
void SetPastFixRFac (Float_t x)
 Set 2's-exponent for relative scaling beyond FixR.
void SetPastFixZFac (Float_t x)
 Set 2's-exponent for relative scaling beyond FixZ.
void SetType (EPType_e t)
void SetUsePreScale (Bool_t x)
virtual Int_t SubSpaceId (const REveVector &) const

Static Public Attributes

static Float_t fgEps = 0.005f
static Float_t fgEpsSqr = 0.000025f

Protected Member Functions

void PreScaleVariable (Int_t dim, Float_t &v)
 Pre-scale single variable with pre-scale entry dim.

Protected Attributes

REveVector fCenter
bool fDisplaceOrigin
Float_t fDistortion
Float_t fFixR
Float_t fFixZ
EGeoMode_e fGeoMode
Float_t fMaxTrackStep
std::string fName
Float_t fPastFixRFac
Float_t fPastFixRScale
Float_t fPastFixZFac
Float_t fPastFixZScale
vPreScale_t fPreScales [3]
Float_t fScaleR
Float_t fScaleZ
EPType_e fType
Bool_t fUsePreScale

Private Attributes

REveVector fProjectedCenter

#include <ROOT/REveProjections.hxx>

Inheritance diagram for ROOT::Experimental::REveZXProjection:
ROOT::Experimental::REveProjection

Member Typedef Documentation

◆ vPreScale_t

Definition at line 50 of file REveProjections.hxx.

Member Enumeration Documentation

◆ EGeoMode_e

Enumerator
kGM_Unknown 
kGM_Polygons 
kGM_Segments 

Definition at line 35 of file REveProjections.hxx.

◆ EPProc_e

Enumerator
kPP_Plane 
kPP_Distort 
kPP_Full 

Definition at line 34 of file REveProjections.hxx.

◆ EPType_e

Enumerator
kPT_Unknown 
kPT_RhoZ 
kPT_RPhi 
kPT_XZ 
kPT_YZ 
kPT_ZX 
kPT_ZY 
kPT_3D 
kPT_End 

Definition at line 32 of file REveProjections.hxx.

Constructor & Destructor Documentation

◆ REveZXProjection()

REveZXProjection::REveZXProjection ( )

Constructor.

Definition at line 981 of file REveProjections.cxx.

◆ ~REveZXProjection()

ROOT::Experimental::REveZXProjection::~REveZXProjection ( )
inlineoverride

Definition at line 254 of file REveProjections.hxx.

Member Function Documentation

◆ AcceptSegment()

virtual Bool_t ROOT::Experimental::REveProjection::AcceptSegment ( REveVector & ,
REveVector & ,
Float_t  ) const
inlinevirtualinherited

Reimplemented in ROOT::Experimental::REveRhoZProjection.

Definition at line 133 of file REveProjections.hxx.

◆ AddPreScaleEntry()

void REveProjection::AddPreScaleEntry ( Int_t coord,
Float_t value,
Float_t scale )
inherited

Add new scaling range for given coordinate.

Arguments:

  • coord 0 ~ x, 1 ~ y, 2 ~ z
  • value value of input coordinate from which to apply this scale;
  • scale the scale to apply from value onwards.

NOTE: If pre-scaling is combined with center-displaced then the scale of the central region should be 1. This limitation can be removed but will cost CPU.

Definition at line 181 of file REveProjections.cxx.

◆ BisectBreakPoint() [1/2]

void REveProjection::BisectBreakPoint ( REveVector & vL,
REveVector & vR,
Bool_t project_result = kFALSE,
Float_t depth = 0 )
virtualinherited

Find break-point on both sides of the discontinuity.

If project_result is true, the resulting break points will be projected with given depth value.

Definition at line 356 of file REveProjections.cxx.

◆ BisectBreakPoint() [2/2]

void REveProjection::BisectBreakPoint ( REveVector & vL,
REveVector & vR,
Float_t eps_sqr )
virtualinherited

Find break-point on both sides of the discontinuity.

They still need to be projected after the call. This is an obsolete version of the method that required manual specification of precision – this lead to (infrequent) infinite loops.

Definition at line 338 of file REveProjections.cxx.

◆ ChangePreScaleEntry()

void REveProjection::ChangePreScaleEntry ( Int_t coord,
Int_t entry,
Float_t new_scale )
inherited

Change scale for given entry and coordinate.

NOTE: If the first entry you created used other value than 0, one entry (covering range from 0 to this value) was created automatically.

Definition at line 223 of file REveProjections.cxx.

◆ ClearPreScales()

void REveProjection::ClearPreScales ( )
inherited

Clear all pre-scaling information.

Definition at line 249 of file REveProjections.cxx.

◆ GetDisplaceOrigin()

Bool_t ROOT::Experimental::REveProjection::GetDisplaceOrigin ( ) const
inlineinherited

Definition at line 102 of file REveProjections.hxx.

◆ GetDistortion()

Float_t ROOT::Experimental::REveProjection::GetDistortion ( ) const
inlineinherited

Definition at line 120 of file REveProjections.hxx.

◆ GetFixR()

Float_t ROOT::Experimental::REveProjection::GetFixR ( ) const
inlineinherited

Definition at line 121 of file REveProjections.hxx.

◆ GetFixZ()

Float_t ROOT::Experimental::REveProjection::GetFixZ ( ) const
inlineinherited

Definition at line 122 of file REveProjections.hxx.

◆ GetGeoMode()

EGeoMode_e ROOT::Experimental::REveProjection::GetGeoMode ( ) const
inlineinherited

Definition at line 108 of file REveProjections.hxx.

◆ GetLimit()

Float_t ROOT::Experimental::REveProjection::GetLimit ( Int_t i,
Bool_t pos )
inherited

◆ GetMaxTrackStep()

Float_t ROOT::Experimental::REveProjection::GetMaxTrackStep ( ) const
inlineinherited

Definition at line 129 of file REveProjections.hxx.

◆ GetName()

const char * ROOT::Experimental::REveProjection::GetName ( ) const
inlineinherited

Definition at line 94 of file REveProjections.hxx.

◆ GetOrthogonalCenter()

REveVector REveProjection::GetOrthogonalCenter ( int idx,
REveVector & out )
inherited

Get center ortogonal to given axis index.

Definition at line 405 of file REveProjections.cxx.

◆ GetPastFixRFac()

Float_t ROOT::Experimental::REveProjection::GetPastFixRFac ( ) const
inlineinherited

Definition at line 125 of file REveProjections.hxx.

◆ GetPastFixZFac()

Float_t ROOT::Experimental::REveProjection::GetPastFixZFac ( ) const
inlineinherited

Definition at line 126 of file REveProjections.hxx.

◆ GetProjectedCenter()

Float_t * ROOT::Experimental::REveZXProjection::GetProjectedCenter ( )
inlineoverridevirtual

Get projected center.

Reimplemented from ROOT::Experimental::REveProjection.

Definition at line 262 of file REveProjections.hxx.

◆ GetScreenVal() [1/2]

Float_t REveProjection::GetScreenVal ( Int_t ax,
Float_t value )
virtualinherited

Project point on given axis and return projected value.

Definition at line 523 of file REveProjections.cxx.

◆ GetScreenVal() [2/2]

Float_t REveProjection::GetScreenVal ( Int_t i,
Float_t x,
REveVector & dirVec,
REveVector & oCenter )
inherited

Project point on given axis and return projected value.

Definition at line 508 of file REveProjections.cxx.

◆ GetType()

EPType_e ROOT::Experimental::REveProjection::GetType ( ) const
inlineinherited

Definition at line 105 of file REveProjections.hxx.

◆ GetUsePreScale()

Bool_t ROOT::Experimental::REveProjection::GetUsePreScale ( ) const
inlineinherited

Definition at line 110 of file REveProjections.hxx.

◆ GetValForScreenPos()

Float_t REveProjection::GetValForScreenPos ( Int_t ax,
Float_t value )
virtualinherited

Inverse projection.

Definition at line 421 of file REveProjections.cxx.

◆ HasSeveralSubSpaces()

virtual Bool_t ROOT::Experimental::REveProjection::HasSeveralSubSpaces ( ) const
inlinevirtualinherited

Reimplemented in ROOT::Experimental::REveRhoZProjection.

Definition at line 132 of file REveProjections.hxx.

◆ Is2D()

Bool_t ROOT::Experimental::REveZXProjection::Is2D ( ) const
inlineoverridevirtual

Implements ROOT::Experimental::REveProjection.

Definition at line 256 of file REveProjections.hxx.

◆ Is3D()

Bool_t ROOT::Experimental::REveZXProjection::Is3D ( ) const
inlineoverridevirtual

Implements ROOT::Experimental::REveProjection.

Definition at line 257 of file REveProjections.hxx.

◆ IsOnSubSpaceBoundrary()

virtual Bool_t ROOT::Experimental::REveProjection::IsOnSubSpaceBoundrary ( const REveVector & ) const
inlinevirtualinherited

Reimplemented in ROOT::Experimental::REveRhoZProjection.

Definition at line 135 of file REveProjections.hxx.

◆ PreScalePoint() [1/2]

void REveProjection::PreScalePoint ( Float_t & x,
Float_t & y )
inherited

Pre-scale point (x, y) in projected coordinates for 2D projections:

  • RhoZ ~ (rho, z)
  • RPhi ~ (r, phi), scaling phi doesn't make much sense.

Definition at line 154 of file REveProjections.cxx.

◆ PreScalePoint() [2/2]

void REveProjection::PreScalePoint ( Float_t & x,
Float_t & y,
Float_t & z )
inherited

Pre-scale point (x, y, z) in projected coordinates for 3D projection.

Definition at line 163 of file REveProjections.cxx.

◆ PreScaleVariable()

void REveProjection::PreScaleVariable ( Int_t dim,
Float_t & v )
protectedinherited

Pre-scale single variable with pre-scale entry dim.

Definition at line 131 of file REveProjections.cxx.

◆ ProjectPoint()

void REveZXProjection::ProjectPoint ( Float_t & x,
Float_t & y,
Float_t & z,
Float_t d,
EPProc_e proc = kPP_Full )
overridevirtual

Project point.

Implements ROOT::Experimental::REveProjection.

Definition at line 992 of file REveProjections.cxx.

◆ ProjectPointdv() [1/2]

void REveProjection::ProjectPointdv ( const REveTrans * t,
const Double_t * p,
Double_t * v,
Float_t d )
inherited

Project double array, converting it to global coordinate system first if transformation matrix is set.

This is a bit piggish as we convert the doubles to floats and back.

Definition at line 99 of file REveProjections.cxx.

◆ ProjectPointdv() [2/2]

void REveProjection::ProjectPointdv ( Double_t * v,
Float_t d )
inherited

Project double array.

This is a bit piggish as we convert the doubles to floats and back.

Definition at line 65 of file REveProjections.cxx.

◆ ProjectPointfv() [1/2]

void REveProjection::ProjectPointfv ( const REveTrans * t,
const Float_t * p,
Float_t * v,
Float_t d )
inherited

Project float array, converting it to global coordinate system first if transformation matrix is set.

Definition at line 84 of file REveProjections.cxx.

◆ ProjectPointfv() [2/2]

void REveProjection::ProjectPointfv ( Float_t * v,
Float_t d )
inherited

Project float array.

Definition at line 56 of file REveProjections.cxx.

◆ ProjectVector() [1/2]

void REveProjection::ProjectVector ( const REveTrans * t,
REveVector & v,
Float_t d )
inherited

Project REveVector, converting it to global coordinate system first if transformation matrix is set.

Definition at line 119 of file REveProjections.cxx.

◆ ProjectVector() [2/2]

void REveProjection::ProjectVector ( REveVector & v,
Float_t d )
inherited

Project REveVector.

Definition at line 75 of file REveProjections.cxx.

◆ RefCenter()

const REveVector & ROOT::Experimental::REveProjection::RefCenter ( ) const
inlineinherited

Definition at line 97 of file REveProjections.hxx.

◆ SetCenter()

void REveZXProjection::SetCenter ( REveVector & v)
overridevirtual

Set center of distortion (virtual method).

Reimplemented from ROOT::Experimental::REveProjection.

Definition at line 1053 of file REveProjections.cxx.

◆ SetDirectionalVector()

void REveZXProjection::SetDirectionalVector ( Int_t screenAxis,
REveVector & vec )
overridevirtual

Get direction in the unprojected space for axis index in the projected space.

This is virtual method from base-class REveProjection.

Reimplemented from ROOT::Experimental::REveProjection.

Definition at line 1074 of file REveProjections.cxx.

◆ SetDisplaceOrigin()

void REveProjection::SetDisplaceOrigin ( bool x)
inherited

Set flag to displace for center.

This options is useful if want to have projected center at (0, 0) position in projected coordinates and want to dismiss gap around projected center in RhoZ projection.

Definition at line 316 of file REveProjections.cxx.

◆ SetDistortion()

void REveProjection::SetDistortion ( Float_t d)
inherited

Set distortion.

Definition at line 259 of file REveProjections.cxx.

◆ SetFixR()

void REveProjection::SetFixR ( Float_t x)
inherited

Set fixed radius.

Definition at line 271 of file REveProjections.cxx.

◆ SetFixZ()

void REveProjection::SetFixZ ( Float_t x)
inherited

Set fixed radius.

Definition at line 281 of file REveProjections.cxx.

◆ SetGeoMode()

void ROOT::Experimental::REveProjection::SetGeoMode ( EGeoMode_e m)
inlineinherited

Definition at line 107 of file REveProjections.hxx.

◆ SetMaxTrackStep()

void ROOT::Experimental::REveProjection::SetMaxTrackStep ( Float_t x)
inlineinherited

Definition at line 130 of file REveProjections.hxx.

◆ SetName()

void ROOT::Experimental::REveProjection::SetName ( const char * txt)
inlineinherited

Definition at line 95 of file REveProjections.hxx.

◆ SetPastFixRFac()

void REveProjection::SetPastFixRFac ( Float_t x)
inherited

Set 2's-exponent for relative scaling beyond FixR.

Definition at line 291 of file REveProjections.cxx.

◆ SetPastFixZFac()

void REveProjection::SetPastFixZFac ( Float_t x)
inherited

Set 2's-exponent for relative scaling beyond FixZ.

Definition at line 326 of file REveProjections.cxx.

◆ SetType()

void ROOT::Experimental::REveProjection::SetType ( EPType_e t)
inlineinherited

Definition at line 104 of file REveProjections.hxx.

◆ SetUsePreScale()

void ROOT::Experimental::REveProjection::SetUsePreScale ( Bool_t x)
inlineinherited

Definition at line 111 of file REveProjections.hxx.

◆ SubSpaceId()

virtual Int_t ROOT::Experimental::REveProjection::SubSpaceId ( const REveVector & ) const
inlinevirtualinherited

Reimplemented in ROOT::Experimental::REveRhoZProjection.

Definition at line 134 of file REveProjections.hxx.

Member Data Documentation

◆ fCenter

REveVector ROOT::Experimental::REveProjection::fCenter
protectedinherited

Definition at line 57 of file REveProjections.hxx.

◆ fDisplaceOrigin

bool ROOT::Experimental::REveProjection::fDisplaceOrigin
protectedinherited

Definition at line 59 of file REveProjections.hxx.

◆ fDistortion

Float_t ROOT::Experimental::REveProjection::fDistortion
protectedinherited

Definition at line 64 of file REveProjections.hxx.

◆ fFixR

Float_t ROOT::Experimental::REveProjection::fFixR
protectedinherited

Definition at line 65 of file REveProjections.hxx.

◆ fFixZ

Float_t ROOT::Experimental::REveProjection::fFixZ
protectedinherited

Definition at line 66 of file REveProjections.hxx.

◆ fGeoMode

EGeoMode_e ROOT::Experimental::REveProjection::fGeoMode
protectedinherited

Definition at line 54 of file REveProjections.hxx.

◆ fgEps

Float_t REveProjection::fgEps = 0.005f
staticinherited

Definition at line 147 of file REveProjections.hxx.

◆ fgEpsSqr

Float_t REveProjection::fgEpsSqr = 0.000025f
staticinherited

Definition at line 148 of file REveProjections.hxx.

◆ fMaxTrackStep

Float_t ROOT::Experimental::REveProjection::fMaxTrackStep
protectedinherited

Definition at line 73 of file REveProjections.hxx.

◆ fName

std::string ROOT::Experimental::REveProjection::fName
protectedinherited

Definition at line 55 of file REveProjections.hxx.

◆ fPastFixRFac

Float_t ROOT::Experimental::REveProjection::fPastFixRFac
protectedinherited

Definition at line 67 of file REveProjections.hxx.

◆ fPastFixRScale

Float_t ROOT::Experimental::REveProjection::fPastFixRScale
protectedinherited

Definition at line 71 of file REveProjections.hxx.

◆ fPastFixZFac

Float_t ROOT::Experimental::REveProjection::fPastFixZFac
protectedinherited

Definition at line 68 of file REveProjections.hxx.

◆ fPastFixZScale

Float_t ROOT::Experimental::REveProjection::fPastFixZScale
protectedinherited

Definition at line 72 of file REveProjections.hxx.

◆ fPreScales

vPreScale_t ROOT::Experimental::REveProjection::fPreScales[3]
protectedinherited

Definition at line 62 of file REveProjections.hxx.

◆ fProjectedCenter

REveVector ROOT::Experimental::REveZXProjection::fProjectedCenter
private

Definition at line 250 of file REveProjections.hxx.

◆ fScaleR

Float_t ROOT::Experimental::REveProjection::fScaleR
protectedinherited

Definition at line 69 of file REveProjections.hxx.

◆ fScaleZ

Float_t ROOT::Experimental::REveProjection::fScaleZ
protectedinherited

Definition at line 70 of file REveProjections.hxx.

◆ fType

EPType_e ROOT::Experimental::REveProjection::fType
protectedinherited

Definition at line 53 of file REveProjections.hxx.

◆ fUsePreScale

Bool_t ROOT::Experimental::REveProjection::fUsePreScale
protectedinherited

Definition at line 61 of file REveProjections.hxx.


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