Skip to content

Issues with single dataset treated as multiple ones #9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 44 commits into
base: v5-34-00-patches
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
c7d8e60
o RooAbsArg
wverkerke Sep 12, 2013
72b7947
o RooAbsCollection
wverkerke Sep 12, 2013
7fedfd3
o RooAbsOptTestStatistic
wverkerke Sep 12, 2013
a2f92d3
o RooAbsPdf
wverkerke Sep 12, 2013
53d6d22
o RooAbsTestStatistic
wverkerke Sep 12, 2013
03942bc
o RooArgProxy
wverkerke Sep 12, 2013
d340e90
o RooChi2Var, RooDataWeightedAverage, RooXYChi2Var
wverkerke Sep 12, 2013
239d6aa
o RooHashTable
wverkerke Sep 12, 2013
dbe1885
o RooHistFunc
wverkerke Sep 12, 2013
920376d
o RooNLLVar
wverkerke Sep 12, 2013
f569857
o RooStats::HistFactory::FlexibleInterpVar
wverkerke Sep 12, 2013
fa990be
o RooStats::HistFactory::PiecewiseInterpolation
wverkerke Sep 12, 2013
398bc06
o RooLinkedList
wverkerke Sep 12, 2013
326f669
o RooRealSumPdf
wverkerke Sep 12, 2013
1ea0df8
o RooRealVar
wverkerke Sep 12, 2013
584e755
o RooVectorDataStore
wverkerke Sep 12, 2013
7d783fc
o RooWorkspace
wverkerke Sep 12, 2013
bd2e39a
o RooHistPdf
wverkerke Sep 12, 2013
37724db
o RooListProxy, RooSetProxy
wverkerke Sep 12, 2013
0f82b9a
Merge branch 'v5-34-00-patches' of https://root.cern.ch/git/root into…
wverkerke Sep 12, 2013
552d523
Fix race condition in Prefetching when using with a TChain.
pcanal Sep 13, 2013
f932342
fix compilation warning due to new clang in Xcode 5.
FonsRademakers Sep 13, 2013
46ef57a
simplify detection of OSXSDK and IOSSDK.
FonsRademakers Sep 13, 2013
bba32b6
in case there is more than one OSX SDK installed, take by default the…
FonsRademakers Sep 13, 2013
360c70e
don't use most recent OSX SDK but, of course, use the one the system …
FonsRademakers Sep 13, 2013
db8ea81
Fix fOffset calculation with rule applying to the whole object.
pcanal Sep 17, 2013
89a2b5f
Optimized TStyle::AxisChoice()
Sep 16, 2013
88bce87
Fixed 2 important bugs in TGeoXtru affecting DistFromOutside and Comp…
agheata Sep 17, 2013
624f644
TDirectoryFile::GetKey() hash list optimization
Aug 29, 2013
9391a2d
export MACOSXVERS which is needed in the Makefile.macosx* included in…
FonsRademakers Sep 17, 2013
3b5a128
Fix http://root.cern.ch/phpBB3/viewtopic.php?f=3&t=17062&hilit=unzoom
couet Sep 18, 2013
56d419f
New example demonstrating the canvas partitioning.
couet Sep 18, 2013
d5b122f
Fix in TGeoArb8::DistFromInside. Fix in TGeoShape::DistToPlane. Check…
agheata Sep 19, 2013
0057d52
Implement DrawLatexNDC
couet Sep 19, 2013
c52c94a
added compatibilty options for Reader in MethodBoost
helgevoss Sep 18, 2013
060d4c5
added compatibility options (for Reader) for options removed in Metho…
helgevoss Jun 18, 2013
62075ce
Curious to see what the changes here were ...
helgevoss Aug 29, 2013
fe2cdb1
all the changes since April
helgevoss Sep 19, 2013
ab026a7
all the changes since April
helgevoss Sep 19, 2013
65a0e30
Remove old files and update Module.mk
lmoneta Sep 19, 2013
74c3816
PROOF: check if single ds before tokenizing name
Sep 17, 2013
66c0e46
Minor PROOF cleanups
Sep 19, 2013
769863e
PROOF: check for unparsed AliEn dataset names
Sep 19, 2013
2ce6b86
PROOF: fixed issue with multi-ds and entry list
Sep 19, 2013
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions config/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ XPMLIB := @xpmlib@
XFTLIB := @enable_xft@

BUILDCOCOA := @buildcocoa@
MACOSXVERS := @macosxvers@
OSXSDK := @osxsdk@
IOSVERS := @iosvers@
IOSSDK := @iossdk@

CXX11 := @c++11@

Expand Down
10 changes: 0 additions & 10 deletions config/Makefile.ios
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,7 @@ NOOPT =
endif

# iOS version
ifeq ($(IPHONEOS_DEPLOYMENT_TARGET),)
IOSVERS = 5.1
else
IOSVERS = $(IPHONEOS_DEPLOYMENT_TARGET)
endif
XCODE_PATH := $(shell /usr/bin/xcode-select -print-path)
IOS_MAJOR := $(shell echo $(IOSVERS) | cut -d . -f 1)
IOSSDK := $(XCODE_PATH)/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS$(IOSVERS).sdk

# Compiler:
ifeq ($(subst $(IOS_MAJOR),,1234),1234)
Expand Down Expand Up @@ -100,7 +93,4 @@ showld:

showf77:
@echo "$(F77)"

showsdk:
@echo "$(IOSSDK)"
endif
10 changes: 0 additions & 10 deletions config/Makefile.iossim
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,7 @@ NOOPT =
endif

# iOS version
ifeq ($(IPHONEOS_DEPLOYMENT_TARGET),)
IOSVERS = 5.1
else
IOSVERS = $(IPHONEOS_DEPLOYMENT_TARGET)
endif
XCODE_PATH := $(shell /usr/bin/xcode-select -print-path)
IOS_MAJOR := $(shell echo $(IOSVERS) | cut -d . -f 1)
IOSSDK := $(XCODE_PATH)/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator$(IOSVERS).sdk

# Compiler:
ifeq ($(subst $(IOS_MAJOR),,1234),1234)
Expand Down Expand Up @@ -100,7 +93,4 @@ showld:

showf77:
@echo "$(F77)"

showsdk:
@echo "$(IOSSDK)"
endif
10 changes: 0 additions & 10 deletions config/Makefile.macosx
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,6 @@ endif
MACOSX_MINOR := $(shell sw_vers | sed -n 's/ProductVersion://p' | cut -d . -f 2)
MACOSX_CPU := $(shell uname -p)
FINK_DIR := $(shell which fink 2>&1 | sed -ne "s/\/bin\/fink//p")
ifeq ($(MACOSX_DEPLOYMENT_TARGET),)
MACOSXVERS = 10.$(MACOSX_MINOR)
else
MACOSXVERS = $(MACOSX_DEPLOYMENT_TARGET)
endif
XCODE_PATH := $(shell /usr/bin/xcode-select -print-path)
OSXSDK := $(XCODE_PATH)/Platforms/MacOSX.platform/Developer/SDKs/MacOSX$(MACOSXVERS).sdk

# Compiler:
# From "Apple clang version ... (based on LLVM 3.0svn)"
Expand Down Expand Up @@ -170,7 +163,4 @@ showld:

showf77:
@echo "$(F77ORG)"

showsdk:
@echo "$(OSXSDK)"
endif
10 changes: 0 additions & 10 deletions config/Makefile.macosx64
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,6 @@ endif
MACOSX_MINOR := $(shell sw_vers | sed -n 's/ProductVersion://p' | cut -d . -f 2)
MACOSX_CPU := $(shell uname -p)
FINK_DIR := $(shell which fink 2>&1 | sed -ne "s/\/bin\/fink//p")
ifeq ($(MACOSX_DEPLOYMENT_TARGET),)
MACOSXVERS = 10.$(MACOSX_MINOR)
else
MACOSXVERS = $(MACOSX_DEPLOYMENT_TARGET)
endif
XCODE_PATH := $(shell /usr/bin/xcode-select -print-path)
OSXSDK := $(XCODE_PATH)/Platforms/MacOSX.platform/Developer/SDKs/MacOSX$(MACOSXVERS).sdk

# Compiler:
# From "Apple clang version ... (based on LLVM 3.0svn)"
Expand Down Expand Up @@ -155,7 +148,4 @@ showld:

showf77:
@echo "$(F77ORG)"

showsdk:
@echo "$(OSXSDK)"
endif
10 changes: 0 additions & 10 deletions config/Makefile.macosxicc
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,6 @@ endif
MACOSX_MINOR := $(shell sw_vers | sed -n 's/ProductVersion://p' | cut -d . -f 2)
MACOSX_CPU := $(shell uname -p)
FINK_DIR := $(shell which fink 2>&1 | sed -ne "s/\/bin\/fink//p")
ifeq ($(MACOSX_DEPLOYMENT_TARGET),)
MACOSXVERS = 10.$(MACOSX_MINOR)
else
MACOSXVERS = $(MACOSX_DEPLOYMENT_TARGET)
endif
XCODE_PATH := $(shell /usr/bin/xcode-select -print-path)
OSXSDK := $(XCODE_PATH)/Platforms/MacOSX.platform/Developer/SDKs/MacOSX$(MACOSXVERS).sdk

# Compiler:
CXX = icc
Expand Down Expand Up @@ -170,7 +163,4 @@ showld:

showf77:
@echo "$(F77ORG)"

showsdk:
@echo "$(OSXSDK)"
endif
30 changes: 27 additions & 3 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -1609,6 +1609,7 @@ with options, prefix with --with-, enables corresponding support
globus-libdir Globus support, location of globus libraries
hdfs-incdir HDFS support, location of hdfs.h
hdfs-libdir HDFS support, location of libhdfs
iosvers iOS SDK version (6.1, 7.0), default will be latest SDK
jni-incdir HDFS support, location of JNI headers
jvm-libdir HDFS support, location of JVM library
krb5 Kerberos5 support, location of Kerberos distribution
Expand All @@ -1617,6 +1618,7 @@ with options, prefix with --with-, enables corresponding support
ldap-incdir LDAP support, location of ldap.h
ldap-libdir LDAP support, location of libldap
llvm-config LLVM/clang for cling, location of llvm-config script
macosxvers OS X SDK version (10.8, 10.9), default will be latest SDK
monalisa-incdir Monalisa support, location of ApMon.h
monalisa-libdir Monalisa support, location of libapmoncpp
mysql-incdir MySQL support, location of mysql.h
Expand Down Expand Up @@ -1773,15 +1775,29 @@ solaris64CC5)
checklib64="yes" ;;
macosx*)
logmsg "Will check for compatible libraries"
checklibcompat="yes" ;;
checklibcompat="yes"
if test "x$macosxvers" = "x"; then
# get most recent SDK version
macosxminor=`sw_vers | sed -n 's/ProductVersion://p' | cut -d . -f 2`
macosxvers=10.$macosxminor
# make available to conftest.mk scripts
export MACOSXVERS=$macosxvers
fi
;;
ios*)
logmsg "Will check iOS SDK libraries"
message "Checking for iOS SDK"
iossdk=`make -s -f ${ac_srcdir}/config/Makefile.$arch CONFIGURE=yes showsdk`
if test "x$iosvers" = "x"; then
# get most recent SDK version
iosvers=`xcodebuild -showsdks | sed -n '/iphoneos/s/.*iOS //p' | sed 's/ .*//'|awk 'END{print}'`
fi
xcodepath=`/usr/bin/xcode-select -print-path`
iossdk=$xcodepath/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS$iosvers.sdk
result "$iossdk"
if [ ! -d $iossdk ]; then
result "`basename $0`: no iOS SDK found at $iossdk"
result "Run "xcode-select" to update the developer directory path"
result "or make sure the desired SDK version is installed"
exit 1
fi
enable_cintex="no"
Expand Down Expand Up @@ -1953,6 +1969,7 @@ if test $# -gt 0 ; then
--with-gccxml=*) gccxml=$optarg ;;
--with-hdfs-incdir=*) hdfsincdir=$optarg ; enable_hdfs="yes" ;;
--with-hdfs-libdir=*) hdfslibdir=$optarg ; enable_hdfs="yes" ;;
--with-iosvers=*) iosvers=$optarg ;;
--with-jni-incdir=*) jniincdir=$optarg ;;
--with-jvm-libdir=*) jvmlibdir=$optarg ;;
--with-krb5=*) krb5dir=$optarg ; enable_krb5="yes" ;;
Expand All @@ -1961,6 +1978,7 @@ if test $# -gt 0 ; then
--with-ldap-incdir=*) ldapincdir=$optarg ; enable_ldap="yes" ;;
--with-ldap-libdir=*) ldaplibdir=$optarg ; enable_ldap="yes" ;;
--with-llvm-config=*) llvmconfig=$optarg ;; # require explicit --enable-cling
--with-macosxvers=*) macosxvers=$optarg ;;
--with-mysql-incdir=*) mysqlincdir=$optarg ; enable_mysql="yes" ;;
--with-mysql-libdir=*) mysqllibdir=$optarg ; enable_mysql="yes" ;;
--with-monalisa-incdir=*)monalisaincdir=$optarg; enable_monalisa="yes";;
Expand Down Expand Up @@ -2361,11 +2379,13 @@ if test "x$enable_cocoa" = "xyes"; then
enable_x11="no"
result "yes"
message "Checking for OSX SDK"
osxsdk=`make -s -f ${ac_srcdir}/config/Makefile.$arch CONFIGURE=yes showsdk`
xcodepath=`/usr/bin/xcode-select -print-path`
osxsdk=$xcodepath/Platforms/MacOSX.platform/Developer/SDKs/MacOSX$macosxvers.sdk
result "$osxsdk"
if [ ! -d $osxsdk ]; then
result "`basename $0`: no OSX SDK found at $osxsdk"
result "Run "xcode-select" to update the developer directory path"
result "or make sure the desired SDK version is installed"
exit 1
else
openglincdir=${osxsdk}/System/Library/Frameworks/OpenGL.framework/Headers
Expand Down Expand Up @@ -6708,6 +6728,8 @@ sed -e "s|@globusincdir@|$globusincdir|" \
-e "s|@hdfsincdir@|$hdfsincdir|" \
-e "s|@hdfslib@|$hdfslib|" \
-e "s|@hdfslibdir@|$hdfslibdir|" \
-e "s|@iossdk@|$iossdk|" \
-e "s|@iosvers@|$iosvers|" \
-e "s|@iconpath@|$iconpath|" \
-e "s|@incdir@|$incdir|" \
-e "s|@jniincdir@|$jniincdir|g" \
Expand All @@ -6724,6 +6746,7 @@ sed -e "s|@globusincdir@|$globusincdir|" \
-e "s|@ldflags@||" \
-e "s|@libdir@|$libdir|" \
-e "s|@llvmconfig@|$llvmconfig|" \
-e "s|@macosxvers@|$macosxvers|" \
-e "s|@macrodir@|$macrodir|" \
-e "s|@mandir@|$mandir|" \
-e "s|@mkliboption@|$mkliboption|" \
Expand Down Expand Up @@ -6754,6 +6777,7 @@ sed -e "s|@globusincdir@|$globusincdir|" \
-e "s|@oracleincdir@|$oracleincdir|" \
-e "s|@oraclelib@|$oraclelib|" \
-e "s|@oraclelibdir@|$oraclelibdir|" \
-e "s|@osxsdk@|$osxsdk|" \
-e "s|@pgsqlincdir@|$pgsqlincdir|" \
-e "s|@pgsqllib@|$pgsqllib|" \
-e "s|@pgsqllibdir@|$pgsqllibdir|" \
Expand Down
7 changes: 6 additions & 1 deletion core/base/inc/TStyle.h
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,12 @@ class TStyle : public TNamed, public TAttLine, public TAttFill, public TAttMarke
TStyle(const char *name, const char *title);
TStyle(const TStyle &style);
virtual ~TStyle();
Int_t AxisChoice(Option_t *axis) const;
inline Int_t AxisChoice(Option_t *axis) const {
// Return axis number (1 for X, 2 for Y, 3 for Z)
UChar_t a = *axis;
a -= (a >= 'x') ? 'x' : 'X'; // toupper and a-='X'; intentional underflow
return (a > 2) ? 0 : (Int_t)(a+1);
};
virtual void Browse(TBrowser *b);
static void BuildStyles();
virtual void Copy(TObject &style) const;
Expand Down
13 changes: 0 additions & 13 deletions core/base/src/TStyle.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -696,19 +696,6 @@ void TStyle::Reset(Option_t *opt)
}


//______________________________________________________________________________
Int_t TStyle::AxisChoice( Option_t *axis) const
{
// Return axis number.

char achoice = toupper(axis[0]);
if (achoice == 'X') return 1;
if (achoice == 'Y') return 2;
if (achoice == 'Z') return 3;
return 0;
}


//______________________________________________________________________________
Int_t TStyle::GetNdivisions( Option_t *axis) const
{
Expand Down
3 changes: 2 additions & 1 deletion core/meta/inc/TStreamerElement.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ class TStreamerElement : public TNamed {
kRepeat = BIT(10),
kRead = BIT(11),
kWrite = BIT(12),
kDoNotDelete = BIT(13)
kDoNotDelete = BIT(13),
kWholeObject = BIT(14)
};

TStreamerElement();
Expand Down
5 changes: 5 additions & 0 deletions core/meta/src/TStreamerElement.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,11 @@ void TStreamerElement::GetSequenceType(TString &sequenceType) const

sequenceType.Clear();
Bool_t first = kTRUE;
if (TestBit(TStreamerElement::kWholeObject)) {
if (!first) sequenceType += ",";
first = kFALSE;
sequenceType += "wholeObject";
}
if (TestBit(TStreamerElement::kCache)) {
first = kFALSE;
sequenceType += "cached";
Expand Down
3 changes: 2 additions & 1 deletion geom/geom/inc/TGeoBranchArray.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class TGeoBranchArray : public TObject
TObject *fClient; // Client object to notify

public:
TGeoBranchArray() : TObject(), fLevel(0), fMaxLevel(10), fArray(NULL), fMatrix(NULL), fClient(NULL) {}
TGeoBranchArray() : TObject(), fLevel(-1), fMaxLevel(10), fArray(NULL), fMatrix(NULL), fClient(NULL) {}
TGeoBranchArray(Int_t level);
virtual ~TGeoBranchArray();

Expand All @@ -64,6 +64,7 @@ class TGeoBranchArray : public TObject
void Init(TGeoNode **branch, TGeoMatrix *global, Int_t level);
void InitFromNavigator(TGeoNavigator *nav);
virtual Bool_t IsSortable() const {return kTRUE;}
Bool_t IsOutside() const {return (fLevel<0)?kTRUE:kFALSE;}
virtual Bool_t Notify() {return (fClient)?fClient->Notify():kFALSE;}
virtual void Print(Option_t *option="") const;
void SetClient(TObject *client) {fClient = client;}
Expand Down
1 change: 1 addition & 0 deletions geom/geom/inc/TGeoNavigator.h
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ public :
// void SetNormalChecked(Double_t norm) {fNormalChecked=norm;}
void SetCldirChecked(Double_t *dir) {memcpy(fCldirChecked, dir, 3*sizeof(Double_t));}
void SetLastSafetyForPoint(Double_t safe, const Double_t *point) {fLastSafety=safe; memcpy(fLastPoint,point,3*sizeof(Double_t));}
void SetLastSafetyForPoint(Double_t safe, Double_t x, Double_t y, Double_t z) {fLastSafety=safe; fLastPoint[0]=x; fLastPoint[1]=y, fLastPoint[2]=z;}

//--- point/vector reference frame conversion
void LocalToMaster(const Double_t *local, Double_t *master) const {fCache->LocalToMaster(local, master);}
Expand Down
34 changes: 19 additions & 15 deletions geom/geom/src/TGeoArb8.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -645,25 +645,29 @@ Double_t TGeoArb8::DistFromInside(const Double_t *point, const Double_t *dir, In
{
// Compute distance from inside point to surface of the shape.
Int_t i;
Double_t dist[6];
dist[0]=dist[1]=TGeoShape::Big();
Double_t distz = TGeoShape::Big();
Double_t distl = TGeoShape::Big();
Double_t dist;
Double_t pt[3] = {0.,0.,0.};
if (dir[2]<0) {
dist[0]=(-fDz-point[2])/dir[2];
distz=(-fDz-point[2])/dir[2];
pt[2] = -fDz;
} else {
if (dir[2]>0) dist[1]=(fDz-point[2])/dir[2];
if (dir[2]>0) distz=(fDz-point[2])/dir[2];
pt[2] = fDz;
}
for (i=0; i<4; i++) {
dist[i+2]=DistToPlane(point, dir, i, kTRUE);
}
Double_t distmin = dist[0];
for (i=1;i<6;i++) if (dist[i] < distmin) distmin = dist[i];
if (distmin<0) return 0.;
if (distmin>1E10) {
Error("DistFromInside", "Big value from point=(%19.16f, %19.16f, %19.16f) dir=(%19.16f, %19.16f, %19.16f)\n",
point[0],point[1],point[2],dir[0],dir[1],dir[2]);
}
return distmin;
dist=DistToPlane(point, dir, i, kTRUE);
if (dist<distl) distl = dist;
}
if (distz<distl) {
pt[0] = point[0]+distz*dir[0];
pt[1] = point[1]+distz*dir[1];
if (!Contains(pt)) distz = TGeoShape::Big();
}
dist = TMath::Min(distz, distl);
if (dist<0 || dist>1.E10) return 0.;
return dist;
#ifdef OLDALGORITHM
//#else
// compute distance to plane ipl :
Expand Down
4 changes: 3 additions & 1 deletion geom/geom/src/TGeoBranchArray.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ TGeoBranchArray& TGeoBranchArray::operator=(const TGeoBranchArray& other)
void TGeoBranchArray::AddLevel(Int_t dindex)
{
// Add and extra daughter to the current path array. No validity check performed !
if (!fLevel) {
if (fLevel<=0) {
Error("AddLevel", "You must initialize from navigator or copy from another branch array first.");
return;
}
Expand Down Expand Up @@ -251,6 +251,7 @@ void TGeoBranchArray::InitFromNavigator(TGeoNavigator *nav)
}
fLevel = level;
memcpy(fArray, branch, (fLevel+1)*sizeof(TGeoNode*));
if (nav->IsOutside()) fLevel = -1;
}

//______________________________________________________________________________
Expand Down Expand Up @@ -290,5 +291,6 @@ void TGeoBranchArray::UpdateNavigator(TGeoNavigator *nav) const
{
// Update the navigator to reflect the branch.
nav->CdTop();
if (fLevel<0) {nav->SetOutside(kTRUE); return;}
for (Int_t i=1; i<fLevel+1; i++) nav->CdDown(fArray[i]);
}
2 changes: 1 addition & 1 deletion geom/geom/src/TGeoShape.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ Double_t TGeoShape::SafetySeg(Double_t r, Double_t z, Double_t r1, Double_t z1,
crossp *= (outer) ? 1. : -1.;
// Positive crossp means point on the requested side of the (1,2) segment
if (crossp < 0) {
if (((z-z1)*(z2-z)) > 0) return 0;
if (((z-z1)*(z2-z)) > -1.E-10) return 0;
return TGeoShape::Big();
}
// Compute (1,P) dot (1,2)
Expand Down
Loading