Loading [MathJax]/extensions/tex2jax.js
ROOT
Version v6.26
master
v6.34
v6.32
v6.30
v6.28
v6.24
v6.22
v6.20
v6.18
v6.16
v6.14
v6.12
v6.10
v6.08
v6.06
Reference Guide
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
RooInt.cxx
Go to the documentation of this file.
1
/*****************************************************************************
2
* Project: RooFit *
3
* Package: RooFitCore *
4
* @(#)root/roofitcore:$Id$
5
* Authors: *
6
* WV, Wouter Verkerke, UC Santa Barbara, verkerke@slac.stanford.edu *
7
* DK, David Kirkby, UC Irvine, dkirkby@uci.edu *
8
* *
9
* Copyright (c) 2000-2005, Regents of the University of California *
10
* and Stanford University. All rights reserved. *
11
* *
12
* Redistribution and use in source and binary forms, *
13
* with or without modification, are permitted according to the terms *
14
* listed in LICENSE (http://roofit.sourceforge.net/license.txt) *
15
*****************************************************************************/
16
17
/**
18
\file RooInt.cxx
19
\class RooInt
20
\ingroup Roofitcore
21
22
RooInt is a minimal implementation of a TObject holding a Int_t
23
value.
24
**/
25
26
#include "
RooFit.h
"
27
28
#include "
RooInt.h
"
29
30
using namespace
std;
31
32
ClassImp
(
RooInt
);
33
;
34
35
36
37
////////////////////////////////////////////////////////////////////////////////
38
/// Facilitate sorting of RooInts in ROOT container classes
39
/// Return -1 or +1 if 'other' is a RooInt with value
40
/// greater or lesser than self. Return zero if other
41
/// object is not a RooInt
42
43
Int_t
RooInt::Compare
(
const
TObject
* other)
const
44
{
45
const
RooInt
* otherD =
dynamic_cast<
const
RooInt
*
>
(other) ;
46
if
(!otherD)
return
0 ;
47
return
(
_value
>otherD->
_value
) ? 1 : -1 ;
48
}
RooFit.h
RooInt.h
ClassImp
#define ClassImp(name)
Definition
Rtypes.h:364
RooInt
RooInt is a minimal implementation of a TObject holding a Int_t value.
Definition
RooInt.h:22
RooInt::_value
Int_t _value
Definition
RooInt.h:40
RooInt::Compare
Int_t Compare(const TObject *other) const
Facilitate sorting of RooInts in ROOT container classes Return -1 or +1 if 'other' is a RooInt with v...
Definition
RooInt.cxx:43
TObject
Mother of all ROOT objects.
Definition
TObject.h:41
int
roofit
roofitcore
src
RooInt.cxx
ROOT v6-26 - Reference Guide Generated on Mon Sep 11 2023 21:02:51 (GVA Time) using Doxygen 1.9.8