| Byteswap.h | | Byteswap.h | |
|
| /* @(#)root/base:$Id: Byteswap.h 29820 2009-08-19 14:12:40Z rdm $ */ | | /* @(#)root/base:$Id: Byteswap.h 47381 2012-11-16 20:50:59Z rdm $ */ | |
| | | | |
| /************************************************************************* | | /************************************************************************* | |
| * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * | | * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * | |
| * All rights reserved. * | | * All rights reserved. * | |
| * * | | * * | |
| * For the licensing terms see $ROOTSYS/LICENSE. * | | * For the licensing terms see $ROOTSYS/LICENSE. * | |
| * For the list of contributors see $ROOTSYS/README/CREDITS. * | | * For the list of contributors see $ROOTSYS/README/CREDITS. * | |
| *************************************************************************/ | | *************************************************************************/ | |
| | | | |
| #ifndef ROOT_Byteswap | | #ifndef ROOT_Byteswap | |
| | | | |
| skipping to change at line 32 | | skipping to change at line 32 | |
| The GNU C Library is distributed in the hope that it will be useful, | | The GNU C Library is distributed in the hope that it will be useful, | |
| but WITHOUT ANY WARRANTY; without even the implied warranty of | | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| Library General Public License for more details. | | Library General Public License for more details. | |
| | | | |
| You should have received a copy of the GNU Library General Public | | You should have received a copy of the GNU Library General Public | |
| License along with the GNU C Library; see the file COPYING.LIB. If not, | | License along with the GNU C Library; see the file COPYING.LIB. If not, | |
| write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330
, | | write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330
, | |
| Boston, MA 02111-1307, USA. */ | | Boston, MA 02111-1307, USA. */ | |
| | | | |
|
| | | #if (defined(__linux) || defined(__APPLE__)) && \ | |
| | | (defined(__i386__) || defined(__x86_64__)) && \ | |
| | | (defined(__GNUC__) && __GNUC__ >= 2) | |
| | | #ifndef R__USEASMSWAP | |
| | | #define R__USEASMSWAP | |
| | | #endif | |
| | | #endif | |
| | | | |
| /* Get the machine specific, optimized definitions. */ | | /* Get the machine specific, optimized definitions. */ | |
| /* The following is copied from <bits/byteswap.h> (only from RH6.0 and abov
e) */ | | /* The following is copied from <bits/byteswap.h> (only from RH6.0 and abov
e) */ | |
| | | | |
| /* Swap bytes in 16 bit value. */ | | /* Swap bytes in 16 bit value. */ | |
| #define R__bswap_constant_16(x) \ | | #define R__bswap_constant_16(x) \ | |
| ((((x) >> 8) & 0xff) | (((x) & 0xff) << 8)) | | ((((x) >> 8) & 0xff) | (((x) & 0xff) << 8)) | |
| | | | |
|
| #if defined __GNUC__ && __GNUC__ >= 2 | | #if defined R__USEASMSWAP | |
| # define R__bswap_16(x) \ | | # define R__bswap_16(x) \ | |
| (__extension__
\ | | (__extension__
\ | |
| ({ register unsigned short int __v;
\ | | ({ register unsigned short int __v;
\ | |
| if (__builtin_constant_p (x))
\ | | if (__builtin_constant_p (x))
\ | |
| __v = R__bswap_constant_16 (x);
\ | | __v = R__bswap_constant_16 (x);
\ | |
| else
\ | | else
\ | |
| __asm__ __volatile__ ("rorw $8, %w0"
\ | | __asm__ __volatile__ ("rorw $8, %w0"
\ | |
| : "=r" (__v)
\ | | : "=r" (__v)
\ | |
| : "0" ((unsigned short int) (x))
\ | | : "0" ((unsigned short int) (x))
\ | |
| : "cc");
\ | | : "cc");
\ | |
| | | | |
| skipping to change at line 61 | | skipping to change at line 69 | |
| #else | | #else | |
| /* This is better than nothing. */ | | /* This is better than nothing. */ | |
| # define R__bswap_16(x) R__bswap_constant_16 (x) | | # define R__bswap_16(x) R__bswap_constant_16 (x) | |
| #endif | | #endif | |
| | | | |
| /* Swap bytes in 32 bit value. */ | | /* Swap bytes in 32 bit value. */ | |
| #define R__bswap_constant_32(x) \ | | #define R__bswap_constant_32(x) \ | |
| ((((x) & 0xff000000) >> 24) | (((x) & 0x00ff0000) >> 8) |
\ | | ((((x) & 0xff000000) >> 24) | (((x) & 0x00ff0000) >> 8) |
\ | |
| (((x) & 0x0000ff00) << 8) | (((x) & 0x000000ff) << 24)) | | (((x) & 0x0000ff00) << 8) | (((x) & 0x000000ff) << 24)) | |
| | | | |
|
| #if defined __GNUC__ && __GNUC__ >= 2 | | #if defined R__USEASMSWAP | |
| /* To swap the bytes in a word the i486 processors and up provide the | | /* To swap the bytes in a word the i486 processors and up provide the | |
| `bswap' opcode. On i386 we have to use three instructions. */ | | `bswap' opcode. On i386 we have to use three instructions. */ | |
| # if !defined __i486__ && !defined __pentium__ && !defined __pentiumpro__ &
& \ | | # if !defined __i486__ && !defined __pentium__ && !defined __pentiumpro__ &
& \ | |
| !defined __pentium4__ && !defined __x86_64__ | | !defined __pentium4__ && !defined __x86_64__ | |
| # define R__bswap_32(x) \ | | # define R__bswap_32(x) \ | |
| (__extension__
\ | | (__extension__
\ | |
| ({ register unsigned int __v;
\ | | ({ register unsigned int __v;
\ | |
| if (__builtin_constant_p (x))
\ | | if (__builtin_constant_p (x))
\ | |
| __v = R__bswap_constant_32 (x);
\ | | __v = R__bswap_constant_32 (x);
\ | |
| else
\ | | else
\ | |
| | | | |
End of changes. 4 change blocks. |
| 3 lines changed or deleted | | 11 lines changed or added | |
|
| Channel.h | | Channel.h | |
|
| | | // @(#)root/roostats:$Id: Channel.h 47093 2012-11-07 10:30:12Z moneta $ | |
| | | // Author: George Lewis, Kyle Cranmer | |
| | | /************************************************************************* | |
| | | * Copyright (C) 1995-2008, Rene Brun and Fons Rademakers. * | |
| | | * All rights reserved. * | |
| | | * * | |
| | | * For the licensing terms see $ROOTSYS/LICENSE. * | |
| | | * For the list of contributors see $ROOTSYS/README/CREDITS. * | |
| | | *************************************************************************/ | |
| | | | |
| #ifndef HISTFACTORY_CHANNEL_H | | #ifndef HISTFACTORY_CHANNEL_H | |
| #define HISTFACTORY_CHANNEL_H | | #define HISTFACTORY_CHANNEL_H | |
| | | | |
| #include <string> | | #include <string> | |
| #include <fstream> | | #include <fstream> | |
| #include <iostream> | | #include <iostream> | |
| | | | |
| #include "RooStats/HistFactory/Data.h" | | #include "RooStats/HistFactory/Data.h" | |
| #include "RooStats/HistFactory/Sample.h" | | #include "RooStats/HistFactory/Sample.h" | |
| | | | |
| skipping to change at line 39 | | skipping to change at line 48 | |
| | | | |
| void SetHistoPath( const std::string& file ) { fHistoPath = file; } | | void SetHistoPath( const std::string& file ) { fHistoPath = file; } | |
| std::string GetHistoPath() { return fHistoPath; } | | std::string GetHistoPath() { return fHistoPath; } | |
| | | | |
| void SetData( const RooStats::HistFactory::Data& data ) { fData = data; } | | void SetData( const RooStats::HistFactory::Data& data ) { fData = data; } | |
| void SetData( std::string HistoName, std::string InputFile, std::string H
istoPath="" ); | | void SetData( std::string HistoName, std::string InputFile, std::string H
istoPath="" ); | |
| void SetData( double Val ); | | void SetData( double Val ); | |
| void SetData( TH1* hData ); | | void SetData( TH1* hData ); | |
| RooStats::HistFactory::Data& GetData() { return fData; } | | RooStats::HistFactory::Data& GetData() { return fData; } | |
| | | | |
|
| | | void AddAdditionalData( const RooStats::HistFactory::Data& data ) { fAddi | |
| | | tionalData.push_back(data); } | |
| | | std::vector<RooStats::HistFactory::Data>& GetAdditionalData() { return fA | |
| | | dditionalData; } | |
| | | | |
| void SetStatErrorConfig( double RelErrorThreshold, Constraint::Type Const
raintType ); | | void SetStatErrorConfig( double RelErrorThreshold, Constraint::Type Const
raintType ); | |
| void SetStatErrorConfig( double RelErrorThreshold, std::string Constraint
Type ); | | void SetStatErrorConfig( double RelErrorThreshold, std::string Constraint
Type ); | |
| void SetStatErrorConfig( RooStats::HistFactory::StatErrorConfig Config )
{ fStatErrorConfig = Config; } | | void SetStatErrorConfig( RooStats::HistFactory::StatErrorConfig Config )
{ fStatErrorConfig = Config; } | |
| HistFactory::StatErrorConfig& GetStatErrorConfig() { return fStatErrorCon
fig; } | | HistFactory::StatErrorConfig& GetStatErrorConfig() { return fStatErrorCon
fig; } | |
| | | | |
| void AddSample( RooStats::HistFactory::Sample sample ); | | void AddSample( RooStats::HistFactory::Sample sample ); | |
| std::vector< RooStats::HistFactory::Sample >& GetSamples() { return fSamp
les; } | | std::vector< RooStats::HistFactory::Sample >& GetSamples() { return fSamp
les; } | |
| | | | |
| void Print(std::ostream& = std::cout); | | void Print(std::ostream& = std::cout); | |
| void PrintXML( std::string Directory, std::string Prefix="" ); | | void PrintXML( std::string Directory, std::string Prefix="" ); | |
| | | | |
| skipping to change at line 61 | | skipping to change at line 73 | |
| bool CheckHistograms(); | | bool CheckHistograms(); | |
| | | | |
| protected: | | protected: | |
| | | | |
| std::string fName; | | std::string fName; | |
| std::string fInputFile; | | std::string fInputFile; | |
| std::string fHistoPath; | | std::string fHistoPath; | |
| | | | |
| HistFactory::Data fData; | | HistFactory::Data fData; | |
| | | | |
|
| | | // One can add additional datasets | |
| | | // These are simply added to the xml under a different name | |
| | | std::vector<RooStats::HistFactory::Data> fAdditionalData; | |
| | | | |
| HistFactory::StatErrorConfig fStatErrorConfig; | | HistFactory::StatErrorConfig fStatErrorConfig; | |
| | | | |
| std::vector< RooStats::HistFactory::Sample > fSamples; | | std::vector< RooStats::HistFactory::Sample > fSamples; | |
| | | | |
| // Open a file and copy a histogram | | // Open a file and copy a histogram | |
| TH1* GetHistogram( std::string InputFile, std::string HistoPath, std::str
ing HistoName ); | | TH1* GetHistogram( std::string InputFile, std::string HistoPath, std::str
ing HistoName ); | |
| | | | |
| }; | | }; | |
| | | | |
| extern Channel BadChannel; | | extern Channel BadChannel; | |
| | | | |
End of changes. 3 change blocks. |
| 0 lines changed or deleted | | 18 lines changed or added | |
|
| ConfigParser.h | | ConfigParser.h | |
|
| // @(#)root/roostats:$Id: ConfigParser.h 44376 2012-05-30 21:47:29Z moneta
$ | | // @(#)root/roostats:$Id: ConfigParser.h 47093 2012-11-07 10:30:12Z moneta
$ | |
| // Author: Kyle Cranmer, Akira Shibata | | // Author: Kyle Cranmer, Akira Shibata | |
| /************************************************************************* | | /************************************************************************* | |
| * Copyright (C) 1995-2008, Rene Brun and Fons Rademakers. * | | * Copyright (C) 1995-2008, Rene Brun and Fons Rademakers. * | |
| * All rights reserved. * | | * All rights reserved. * | |
| * * | | * * | |
| * For the licensing terms see $ROOTSYS/LICENSE. * | | * For the licensing terms see $ROOTSYS/LICENSE. * | |
| * For the list of contributors see $ROOTSYS/README/CREDITS. * | | * For the list of contributors see $ROOTSYS/README/CREDITS. * | |
| *************************************************************************/ | | *************************************************************************/ | |
| | | | |
| #ifndef ROOSTATS_CONFIGPARSER_h | | #ifndef ROOSTATS_CONFIGPARSER_h | |
| #define ROOSTATS_CONFIGPARSER_h | | #define ROOSTATS_CONFIGPARSER_h | |
| | | | |
| #include <cstdlib> | | #include <cstdlib> | |
| #include <string> | | #include <string> | |
| #include <TXMLNode.h> | | #include <TXMLNode.h> | |
| | | | |
| #include "TList.h" | | #include "TList.h" | |
| #include "TFile.h" | | #include "TFile.h" | |
| #include "TXMLAttr.h" | | #include "TXMLAttr.h" | |
| | | | |
|
| //#include "RooStats/HistFactory/EstimateSummary.h" | | | |
| | | | |
| #include "RooStats/HistFactory/Channel.h" | | #include "RooStats/HistFactory/Channel.h" | |
| #include "RooStats/HistFactory/Measurement.h" | | #include "RooStats/HistFactory/Measurement.h" | |
| #include "RooStats/HistFactory/Sample.h" | | #include "RooStats/HistFactory/Sample.h" | |
| | | | |
|
| //using namespace std; | | | |
| | | | |
| // KC: Should make this a class and have it do some of what is done in Make | | | |
| ModelAndMeasurements | | | |
| | | | |
| namespace RooStats{ | | namespace RooStats{ | |
| namespace HistFactory { | | namespace HistFactory { | |
| | | | |
| class ConfigParser { | | class ConfigParser { | |
| | | | |
| public: | | public: | |
| | | | |
| // The "main" method | | // The "main" method | |
| std::vector< RooStats::HistFactory::Measurement > GetMeasurementsFro
mXML(std::string input); | | std::vector< RooStats::HistFactory::Measurement > GetMeasurementsFro
mXML(std::string input); | |
|
| | | | |
| // Another alternet method | | | |
| // void FillMeasurementsAndChannelsFromXML(std::string input, | | | |
| // std::vector< RooStats::HistFa | | | |
| ctory::Measurement >&, | | | |
| // std::vector< RooStats::HistFa | | | |
| ctory::Channel >&); | | | |
| | | | |
| RooStats::HistFactory::Measurement CreateMeasurementFromDriverNode(
TXMLNode* node ); | | RooStats::HistFactory::Measurement CreateMeasurementFromDriverNode(
TXMLNode* node ); | |
| RooStats::HistFactory::Channel ParseChannelXMLFile( std::string file
n ); | | RooStats::HistFactory::Channel ParseChannelXMLFile( std::string file
n ); | |
| | | | |
| // Helpers used to process a channel | | // Helpers used to process a channel | |
| HistFactory::Data CreateDataElement( TXMLNode* node ); | | HistFactory::Data CreateDataElement( TXMLNode* node ); | |
| HistFactory::Sample CreateSampleElement( TXMLNode* node ); | | HistFactory::Sample CreateSampleElement( TXMLNode* node ); | |
| HistFactory::StatErrorConfig CreateStatErrorConfigElement( TXMLNode*
node ); | | HistFactory::StatErrorConfig CreateStatErrorConfigElement( TXMLNode*
node ); | |
| | | | |
| // Helpers used when processing a Sample | | // Helpers used when processing a Sample | |
| HistFactory::NormFactor MakeNormFactor( TXMLNode* node ); | | HistFactory::NormFactor MakeNormFactor( TXMLNode* node ); | |
| HistFactory::HistoSys MakeHistoSys( TXMLNode* node ); | | HistFactory::HistoSys MakeHistoSys( TXMLNode* node ); | |
| HistFactory::HistoFactor MakeHistoFactor( TXMLNode* node ); | | HistFactory::HistoFactor MakeHistoFactor( TXMLNode* node ); | |
| HistFactory::OverallSys MakeOverallSys( TXMLNode* node ); | | HistFactory::OverallSys MakeOverallSys( TXMLNode* node ); | |
| HistFactory::ShapeFactor MakeShapeFactor( TXMLNode* node ); | | HistFactory::ShapeFactor MakeShapeFactor( TXMLNode* node ); | |
| HistFactory::ShapeSys MakeShapeSys( TXMLNode* node ); | | HistFactory::ShapeSys MakeShapeSys( TXMLNode* node ); | |
| HistFactory::StatError ActivateStatError( TXMLNode* node ); | | HistFactory::StatError ActivateStatError( TXMLNode* node ); | |
| HistFactory::PreprocessFunction ParseFunctionConfig( TXMLNode* funct
ionNode ); | | HistFactory::PreprocessFunction ParseFunctionConfig( TXMLNode* funct
ionNode ); | |
| | | | |
|
| // To be deprecated | | | |
| /* | | | |
| typedef std::pair<double,double> UncertPair; | | | |
| void AddSystematic( RooStats::HistFactory::EstimateSummary &, TXMLNo | | | |
| de*, std::string, std::string,std::string); | | | |
| void ReadXmlConfig( std::string, std::vector<RooStats::HistFactory:: | | | |
| Channel>& , Double_t ); | | | |
| */ | | | |
| | | | |
| protected: | | protected: | |
| | | | |
| bool CheckTrueFalse( std::string val, std::string Name ); | | bool CheckTrueFalse( std::string val, std::string Name ); | |
| bool IsAcceptableNode( TXMLNode* functionNode ); | | bool IsAcceptableNode( TXMLNode* functionNode ); | |
| | | | |
| // To facilitate writing xml, when not | | // To facilitate writing xml, when not | |
| // specified, files and paths default | | // specified, files and paths default | |
| // to these cached values | | // to these cached values | |
| std::string m_currentInputFile; | | std::string m_currentInputFile; | |
| std::string m_currentChannel; | | std::string m_currentChannel; | |
|
| // std::string m_currentHistoName; | | | |
| std::string m_currentHistoPath; | | std::string m_currentHistoPath; | |
| | | | |
| }; | | }; | |
| } | | } | |
| } | | } | |
| | | | |
| #endif | | #endif | |
| | | | |
End of changes. 6 change blocks. |
| 26 lines changed or deleted | | 1 lines changed or added | |
|
| Factory.h | | Factory.h | |
|
| // @(#)root/mathcore:$Id: Factory.h 37448 2010-12-09 20:20:56Z moneta $ | | // @(#)root/tmva $Id: Factory.h 40005 2011-06-27 15:29:10Z stelzer $ | |
| // Author: L. Moneta Fri Dec 22 14:43:33 2006 | | // Author: Andreas Hoecker, Peter Speckmayer, Joerg Stelzer, Helge Voss, Ka | |
| | | i Voss, Eckhard von Toerne, Jan Therhaag | |
| | | | |
|
| /********************************************************************** | | /************************************************************************** | |
| * * | | ******** | |
| * Copyright (c) 2006 LCG ROOT Math Team, CERN/PH-SFT * | | * Project: TMVA - a Root-integrated toolkit for multivariate data analysis | |
| * * | | * | |
| * * | | * Package: TMVA | |
| **********************************************************************/ | | * | |
| | | * Class : Factory | |
| // Header file for class Factory | | * | |
| | | * Web : http://tmva.sourceforge.net | |
| #ifndef ROOT_Math_Factory | | * | |
| #define ROOT_Math_Factory | | * | |
| | | * | |
| | | * Description: | |
| | | * | |
| | | * This is the main MVA steering class: it creates (books) all MVA met | |
| | | hods, * | |
| | | * and guides them through the training, testing and evaluation phases | |
| | | . * | |
| | | * | |
| | | * | |
| | | * Authors (alphabetical): | |
| | | * | |
| | | * Andreas Hoecker <Andreas.Hocker@cern.ch> - CERN, Switzerland | |
| | | * | |
| | | * Joerg Stelzer <stelzer@cern.ch> - DESY, Germany | |
| | | * | |
| | | * Peter Speckmayer <peter.speckmayer@cern.ch> - CERN, Switzerland | |
| | | * | |
| | | * Jan Therhaag <Jan.Therhaag@cern.ch> - U of Bonn, Germany | |
| | | * | |
| | | * Eckhard v. Toerne <evt@uni-bonn.de> - U of Bonn, Germany | |
| | | * | |
| | | * Helge Voss <Helge.Voss@cern.ch> - MPI-K Heidelberg, German | |
| | | y * | |
| | | * Kai Voss <Kai.Voss@cern.ch> - U. of Victoria, Canada | |
| | | * | |
| | | * | |
| | | * | |
| | | * Copyright (c) 2005-2011: | |
| | | * | |
| | | * CERN, Switzerland | |
| | | * | |
| | | * U. of Victoria, Canada | |
| | | * | |
| | | * MPI-K Heidelberg, Germany | |
| | | * | |
| | | * U. of Bonn, Germany | |
| | | * | |
| | | * | |
| | | * | |
| | | * Redistribution and use in source and binary forms, with or without | |
| | | * | |
| | | * modification, are permitted according to the terms listed in LICENSE | |
| | | * | |
| | | * (http://tmva.sourceforge.net/LICENSE) | |
| | | * | |
| | | ************************************************************************** | |
| | | ********/ | |
| | | | |
| | | #ifndef ROOT_TMVA_Factory | |
| | | #define ROOT_TMVA_Factory | |
| | | | |
| | | ////////////////////////////////////////////////////////////////////////// | |
| | | // // | |
| | | // Factory // | |
| | | // // | |
| | | // This is the main MVA steering class: it creates all MVA methods, // | |
| | | // and guides them through the training, testing and evaluation // | |
| | | // phases // | |
| | | // // | |
| | | ////////////////////////////////////////////////////////////////////////// | |
| | | | |
| #include <string> | | #include <string> | |
|
| | | #include <vector> | |
| | | #include <map> | |
| | | #ifndef ROOT_TCut | |
| | | #include "TCut.h" | |
| | | #endif | |
| | | | |
| | | #ifndef ROOT_TMVA_Configurable | |
| | | #include "TMVA/Configurable.h" | |
| | | #endif | |
| | | #ifndef ROOT_TMVA_Types | |
| | | #include "TMVA/Types.h" | |
| | | #endif | |
| | | #ifndef ROOT_TMVA_DataSet | |
| | | #include "TMVA/DataSet.h" | |
| | | #endif | |
| | | | |
| | | class TFile; | |
| | | class TTree; | |
| | | class TDirectory; | |
| | | | |
| | | namespace TMVA { | |
| | | | |
| | | class IMethod; | |
| | | class MethodBase; | |
| | | class DataInputHandler; | |
| | | class DataSetInfo; | |
| | | class DataSetManager; | |
| | | class VariableTransformBase; | |
| | | | |
| | | class Factory : public Configurable { | |
| | | public: | |
| | | | |
| | | typedef std::vector<IMethod*> MVector; | |
| | | | |
| | | // no default constructor | |
| | | Factory( TString theJobName, TFile* theTargetFile, TString theOption | |
| | | = "" ); | |
| | | | |
| | | // default destructor | |
| | | virtual ~Factory(); | |
| | | | |
| | | virtual const char* GetName() const { return "Factory"; } | |
| | | | |
| | | // add events to training and testing trees | |
| | | void AddSignalTrainingEvent ( const std::vector<Double_t>& event, | |
| | | Double_t weight = 1.0 ); | |
| | | void AddBackgroundTrainingEvent( const std::vector<Double_t>& event, | |
| | | Double_t weight = 1.0 ); | |
| | | void AddSignalTestEvent ( const std::vector<Double_t>& event, | |
| | | Double_t weight = 1.0 ); | |
| | | void AddBackgroundTestEvent ( const std::vector<Double_t>& event, | |
| | | Double_t weight = 1.0 ); | |
| | | void AddTrainingEvent( const TString& className, const std::vector<Do | |
| | | uble_t>& event, Double_t weight ); | |
| | | void AddTestEvent ( const TString& className, const std::vector<Do | |
| | | uble_t>& event, Double_t weight ); | |
| | | void AddEvent ( const TString& className, Types::ETreeType tt, | |
| | | const std::vector<Double_t>& event, Double_t weight ); | |
| | | Bool_t UserAssignEvents(UInt_t clIndex); | |
| | | TTree* CreateEventAssignTrees( const TString& name ); | |
| | | | |
| | | DataSetInfo& AddDataSet( DataSetInfo& ); | |
| | | DataSetInfo& AddDataSet( const TString& ); | |
| | | | |
| | | // special case: signal/background | |
| | | | |
| | | // Data input related | |
| | | void SetInputTrees( const TString& signalFileName, const TString& bac | |
| | | kgroundFileName, | |
| | | Double_t signalWeight=1.0, Double_t backgroundWei | |
| | | ght=1.0 ); | |
| | | void SetInputTrees( TTree* inputTree, const TCut& SigCut, const TCut& | |
| | | BgCut ); | |
| | | // Set input trees at once | |
| | | void SetInputTrees( TTree* signal, TTree* background, | |
| | | Double_t signalWeight=1.0, Double_t backgroundWei | |
| | | ght=1.0) ; | |
| | | | |
| | | void AddSignalTree( TTree* signal, Double_t weight=1.0, Types::ETr | |
| | | eeType treetype = Types::kMaxTreeType ); | |
| | | void AddSignalTree( TString datFileS, Double_t weight=1.0, Types::ETr | |
| | | eeType treetype = Types::kMaxTreeType ); | |
| | | void AddSignalTree( TTree* signal, Double_t weight, const TString& tr | |
| | | eetype ); | |
| | | | |
| | | // ... depreciated, kept for backwards compatibility | |
| | | void SetSignalTree( TTree* signal, Double_t weight=1.0); | |
| | | | |
| | | void AddBackgroundTree( TTree* background, Double_t weight=1.0, Types | |
| | | ::ETreeType treetype = Types::kMaxTreeType ); | |
| | | void AddBackgroundTree( TString datFileB, Double_t weight=1.0, Types | |
| | | ::ETreeType treetype = Types::kMaxTreeType ); | |
| | | void AddBackgroundTree( TTree* background, Double_t weight, const TSt | |
| | | ring & treetype ); | |
| | | | |
| | | // ... depreciated, kept for backwards compatibility | |
| | | void SetBackgroundTree( TTree* background, Double_t weight=1.0 ); | |
| | | | |
| | | void SetSignalWeightExpression( const TString& variable ); | |
| | | void SetBackgroundWeightExpression( const TString& variable ); | |
| | | | |
| | | // special case: regression | |
| | | void AddRegressionTree( TTree* tree, Double_t weight = 1.0, | |
| | | Types::ETreeType treetype = Types::kMaxTreeTy | |
| | | pe ) { | |
| | | AddTree( tree, "Regression", weight, "", treetype ); | |
| | | } | |
| | | | |
| | | // general | |
| | | | |
| | | // Data input related | |
| | | void SetTree( TTree* tree, const TString& className, Double_t weight | |
| | | ); // depreciated | |
| | | void AddTree( TTree* tree, const TString& className, Double_t weight= | |
| | | 1.0, | |
| | | const TCut& cut = "", | |
| | | Types::ETreeType tt = Types::kMaxTreeType ); | |
| | | void AddTree( TTree* tree, const TString& className, Double_t weight, | |
| | | const TCut& cut, const TString& treeType ); | |
| | | | |
| | | // set input variable | |
| | | void SetInputVariables ( std::vector<TString>* theVariables ); // de | |
| | | preciated | |
| | | void AddVariable ( const TString& expression, const TString& t | |
| | | itle, const TString& unit, | |
| | | char type='F', Double_t min = 0, Double_t m | |
| | | ax = 0 ); | |
| | | void AddVariable ( const TString& expression, char type='F', | |
| | | Double_t min = 0, Double_t max = 0 ); | |
| | | void AddTarget ( const TString& expression, const TString& t | |
| | | itle = "", const TString& unit = "", | |
| | | Double_t min = 0, Double_t max = 0 ); | |
| | | void AddRegressionTarget( const TString& expression, const TString& t | |
| | | itle = "", const TString& unit = "", | |
| | | Double_t min = 0, Double_t max = 0 ) | |
| | | { | |
| | | AddTarget( expression, title, unit, min, max ); | |
| | | } | |
| | | void AddSpectator ( const TString& expression, const TString& | |
| | | title = "", const TString& unit = "", | |
| | | Double_t min = 0, Double_t max = 0 ); | |
| | | | |
| | | // set weight for class | |
| | | void SetWeightExpression( const TString& variable, const TString& cla | |
| | | ssName = "" ); | |
| | | | |
| | | // set cut for class | |
| | | void SetCut( const TString& cut, const TString& className = "" ); | |
| | | void SetCut( const TCut& cut, const TString& className = "" ); | |
| | | void AddCut( const TString& cut, const TString& className = "" ); | |
| | | void AddCut( const TCut& cut, const TString& className = "" ); | |
| | | | |
| | | // prepare input tree for training | |
| | | void PrepareTrainingAndTestTree( const TCut& cut, const TString& spli | |
| | | tOpt ); | |
| | | void PrepareTrainingAndTestTree( TCut sigcut, TCut bkgcut, const TStr | |
| | | ing& splitOpt ); | |
| | | | |
| | | // ... deprecated, kept for backwards compatibility | |
| | | void PrepareTrainingAndTestTree( const TCut& cut, Int_t Ntrain, Int_t | |
| | | Ntest = -1 ); | |
| | | | |
| | | void PrepareTrainingAndTestTree( const TCut& cut, Int_t NsigTrain, In | |
| | | t_t NbkgTrain, Int_t NsigTest, Int_t NbkgTest, | |
| | | const TString& otherOpt="SplitMode=R | |
| | | andom:!V" ); | |
| | | | |
| | | MethodBase* BookMethod( TString theMethodName, TString methodTitle, T | |
| | | String theOption = "" ); | |
| | | MethodBase* BookMethod( Types::EMVA theMethod, TString methodTitle, | |
| | | TString theOption = "" ); | |
| | | MethodBase* BookMethod( TMVA::Types::EMVA /*theMethod*/, | |
| | | TString /*methodTitle*/, | |
| | | TString /*methodOption*/, | |
| | | TMVA::Types::EMVA /*theCommittee*/, | |
| | | TString /*committeeOption = ""*/ ) { return 0 | |
| | | ; } | |
| | | | |
| | | // optimize all booked methods (well, if desired by the method) | |
| | | void OptimizeAllMethods (TString fomType="ROCIntegral | |
| | | ", TString fitType="FitGA"); | |
| | | void OptimizeAllMethodsForClassification(TString fomType="ROCIntegral | |
| | | ", TString fitType="FitGA") { OptimizeAllMethods(fomType,fitType); } | |
| | | void OptimizeAllMethodsForRegression (TString fomType="ROCIntegral | |
| | | ", TString fitType="FitGA") { OptimizeAllMethods(fomType,fitType); } | |
| | | | |
| | | // training for all booked methods | |
| | | void TrainAllMethods (); | |
| | | void TrainAllMethodsForClassification( void ) { TrainAllMethods(); } | |
| | | void TrainAllMethodsForRegression ( void ) { TrainAllMethods(); } | |
| | | | |
| | | // testing | |
| | | void TestAllMethods(); | |
| | | | |
| | | // performance evaluation | |
| | | void EvaluateAllMethods( void ); | |
| | | void EvaluateAllVariables( TString options = "" ); | |
| | | | |
| | | // delete all methods and reset the method vector | |
| | | void DeleteAllMethods( void ); | |
| | | | |
| | | // accessors | |
| | | IMethod* GetMethod( const TString& title ) const; | |
| | | | |
| | | Bool_t Verbose( void ) const { return fVerbose; } | |
| | | void SetVerbose( Bool_t v=kTRUE ); | |
| | | | |
| | | // make ROOT-independent C++ class for classifier response | |
| | | // (classifier-specific implementation) | |
| | | // If no classifier name is given, help messages for all booked | |
| | | // classifiers are printed | |
| | | virtual void MakeClass( const TString& methodTitle = "" ) const; | |
| | | | |
| | | // prints classifier-specific hepl messages, dedicated to | |
| | | // help with the optimisation and configuration options tuning. | |
| | | // If no classifier name is given, help messages for all booked | |
| | | // classifiers are printed | |
| | | void PrintHelpMessage( const TString& methodTitle = "" ) const; | |
| | | | |
| | | static TDirectory* RootBaseDir() { return (TDirectory*)fgTargetFile; | |
| | | } | |
| | | | |
| | | private: | |
| | | | |
| | | // the beautiful greeting message | |
| | | void Greetings(); | |
| | | | |
| | | void WriteDataInformation(); | |
| | | | |
| | | DataInputHandler& DataInput() { return *fDataInputHandler; } | |
| | | DataSetInfo& DefaultDataSetInfo(); | |
| | | void SetInputTreesFromEventAssignTrees(); | |
| | | | |
| | | private: | |
| | | | |
| | | // data members | |
| | | | |
| | | DataSetManager* fDataSetManager; // DSMTEST | |
| | | | |
| | | static TFile* fgTargetFile; //! ROOT | |
| | | output file | |
| | | | |
| | | DataInputHandler* fDataInputHandler; | |
| | | | |
| | | std::vector<TMVA::VariableTransformBase*> fDefaultTrfs; //! list | |
| | | of transformations on default DataSet | |
| | | | |
| | | // cd to local directory | |
| | | TString fOptions; //! optio | |
| | | n string given by construction (presently only "V") | |
| | | TString fTransformations; //! List | |
| | | of transformations to test | |
| | | Bool_t fVerbose; //! verbo | |
| | | se mode | |
| | | | |
| | | MVector fMethods; //! all M | |
| | | VA methods | |
| | | TString fJobName; //! jobna | |
| | | me, used as extension in weight file names | |
| | | | |
| | | // flag determining the way training and test data are assigned to Fa | |
| | | ctory | |
| | | enum DataAssignType { kUndefined = 0, | |
| | | kAssignTrees, | |
| | | kAssignEvents }; | |
| | | DataAssignType fDataAssignType; //! flags | |
| | | for data assigning | |
| | | std::vector<TTree*> fTrainAssignTree; //! for e | |
| | | ach class: tmp tree if user wants to assign the events directly | |
| | | std::vector<TTree*> fTestAssignTree; //! for e | |
| | | ach class: tmp tree if user wants to assign the events directly | |
| | | | |
| | | Int_t fATreeType; // typ | |
| | | e of event (=classIndex) | |
| | | Float_t fATreeWeight; // wei | |
| | | ght of the event | |
| | | Float_t* fATreeEvent; // eve | |
| | | nt variables | |
| | | | |
| | | Types::EAnalysisType fAnalysisType; //! the t | |
| | | raining type | |
| | | | |
|
| namespace ROOT { | | protected: | |
| | | | |
| namespace Math { | | | |
| | | | |
| class Minimizer; | | | |
| class DistSampler; | | | |
| | | | |
| //_________________________________________________________________________ | | | |
| __ | | | |
| /** | | | |
| Factory class holding static functions to create the interfaces like RO | | | |
| OT::Math::Minimizer | | | |
| via the Plugin Manager | | | |
| */ | | | |
| class Factory { | | | |
| public: | | | |
| | | | |
| /** | | | |
| static method to create the corrisponding Minimizer given the string | | | |
| Supported Minimizers types are: | | | |
| Minuit (TMinuit), Minuit2, GSLMultiMin, GSLMultiFit, GSLSimAn, Linear | | | |
| , Fumili, Genetic | | | |
| If no name is given use default values defined in MinimizerOptions | | | |
| */ | | | |
| static ROOT::Math::Minimizer * CreateMinimizer(const std::string & minim | | | |
| izerType = "", const std::string & algoType = ""); | | | |
| | | | |
| /** | | | |
| static method to create the distribution sampler class given a string | | | |
| specifying the type | | | |
| Supported sampler types are: | | | |
| Unuran, Foam | | | |
| If no name is given use default values defined in DistSamplerOptions | | | |
| */ | | | |
| static ROOT::Math::DistSampler * CreateDistSampler(const std::string & s | | | |
| amplerType =""); | | | |
| | | | |
| }; | | | |
| | | | |
|
| } // end namespace Fit | | ClassDef(Factory,0) // The factory creates all MVA methods, and perf | |
| | | orms their training and testing | |
| | | }; | |
| | | | |
|
| } // end namespace ROOT | | } // namespace TMVA | |
| | | | |
|
| #endif /* ROOT_Fit_MinimizerFactory */ | | #endif | |
| | | | |
End of changes. 7 change blocks. |
| 53 lines changed or deleted | | 360 lines changed or added | |
|
| HistFactoryNavigation.h | | HistFactoryNavigation.h | |
| | | | |
| skipping to change at line 18 | | skipping to change at line 18 | |
| | | | |
| #include "TCanvas.h" | | #include "TCanvas.h" | |
| #include "THStack.h" | | #include "THStack.h" | |
| #include "TLegend.h" | | #include "TLegend.h" | |
| | | | |
| #include "RooDataSet.h" | | #include "RooDataSet.h" | |
| #include "RooRealVar.h" | | #include "RooRealVar.h" | |
| #include "RooWorkspace.h" | | #include "RooWorkspace.h" | |
| #include "RooSimultaneous.h" | | #include "RooSimultaneous.h" | |
| #include "RooCategory.h" | | #include "RooCategory.h" | |
|
| | | #include "RooProduct.h" | |
| #include "RooRealSumPdf.h" | | #include "RooRealSumPdf.h" | |
| #include "RooStats/HistFactory/Measurement.h" | | #include "RooStats/HistFactory/Measurement.h" | |
| | | | |
| #include "RooStats/ModelConfig.h" | | #include "RooStats/ModelConfig.h" | |
| | | | |
| namespace RooStats { | | namespace RooStats { | |
| namespace HistFactory { | | namespace HistFactory { | |
| | | | |
| class HistFactoryNavigation { | | class HistFactoryNavigation { | |
| | | | |
| public: | | public: | |
| | | | |
| // Initialze based on an already-created HistFactory Model | | // Initialze based on an already-created HistFactory Model | |
| HistFactoryNavigation(ModelConfig* mc); | | HistFactoryNavigation(ModelConfig* mc); | |
|
| | | HistFactoryNavigation(const std::string& File, | |
| | | const std::string& WorkspaceName="combined", | |
| | | const std::string& ModelConfigName="ModelConfig" | |
| | | ); | |
| | | HistFactoryNavigation(RooAbsPdf* model, RooArgSet* observables); | |
| | | | |
| virtual ~HistFactoryNavigation() {} | | virtual ~HistFactoryNavigation() {} | |
| | | | |
|
| // Get the RooAbsReal function for a given sample in a given channel | | | |
| RooAbsReal* SampleFunction(const std::string& channel, const std::str | | | |
| ing& sample); | | | |
| | | | |
| // Get the set of observables for a given channel | | | |
| RooArgSet* GetObservableSet(const std::string& channel); | | | |
| | | | |
| // The (current) histogram for that sample | | | |
| // This includes all parameters and interpolation | | | |
| TH1* GetSampleHist(const std::string& channel, const std::string& sam | | | |
| ple, const std::string& name=""); | | | |
| | | | |
| // Get the total channel histogram for this channel | | | |
| TH1* GetChannelHist(const std::string& channel, const std::string& na | | | |
| me=""); | | | |
| | | | |
| // Get the constraint term for a given systematic (alpha or gamma) | | | |
| RooAbsReal* GetConstraintTerm(const std::string& parameter); | | | |
| | | | |
| // Get the uncertainty based on the constraint term for a given syste | | | |
| matic | | | |
| double GetConstraintUncertainty(const std::string& parameter); | | | |
| | | | |
| // Should pretty print all channels and the current values
 | | // Should pretty print all channels and the current values
 | |
| void PrintState(); | | void PrintState(); | |
| // Should pretty print this and the current values | | // Should pretty print this and the current values | |
| void PrintState(const std::string& channel); | | void PrintState(const std::string& channel); | |
| | | | |
| // Print the current values and errors of pdf parameters | | // Print the current values and errors of pdf parameters | |
| void PrintParameters(bool IncludeConstantParams=false); | | void PrintParameters(bool IncludeConstantParams=false); | |
| | | | |
|
| | | // Print parameters that effect a particular channel | |
| | | void PrintChannelParameters(const std::string& channel, | |
| | | bool IncludeConstantParams=false); | |
| | | | |
| | | // Print parameters that effect a particular sample | |
| | | void PrintSampleParameters(const std::string& channel, const std::str | |
| | | ing& sample, | |
| | | bool IncludeConstantParams=false); | |
| | | | |
| | | // Print the different components that make up a sample | |
| | | // (NormFactors, Statistical Uncertainties, Interpolation, etc) | |
| | | void PrintSampleComponents(const std::string& channel, const std::str | |
| | | ing& sample); | |
| | | | |
| // Print a "HistFactory style" RooDataSet in a readable way | | // Print a "HistFactory style" RooDataSet in a readable way | |
|
| static void PrintDataSet(RooDataSet* data, const std::string& channel
=""); | | static void PrintDataSet(RooDataSet* data, const std::string& channel
="", int max=-1); | |
| | | | |
| // Print the model and the data, comparing channel by channel | | // Print the model and the data, comparing channel by channel | |
| void PrintModelAndData(RooDataSet* data); | | void PrintModelAndData(RooDataSet* data); | |
| | | | |
| // The value of the ith bin for the total in that channel | | // The value of the ith bin for the total in that channel | |
| double GetBinValue(int bin, const std::string& channel); | | double GetBinValue(int bin, const std::string& channel); | |
| // The value of the ith bin for that sample and channel
 | | // The value of the ith bin for that sample and channel
 | |
| double GetBinValue(int bin, const std::string& channel, const std::st
ring& sample); | | double GetBinValue(int bin, const std::string& channel, const std::st
ring& sample); | |
| | | | |
|
| | | // The (current) histogram for that sample | |
| | | // This includes all parameters and interpolation | |
| | | TH1* GetSampleHist(const std::string& channel, | |
| | | const std::string& sample, const std::string& name= | |
| | | ""); | |
| | | | |
| | | // Get the total channel histogram for this channel | |
| | | TH1* GetChannelHist(const std::string& channel, const std::string& na | |
| | | me=""); | |
| | | | |
| | | // Get the RooAbsReal function for a given sample in a given channel | |
| | | RooAbsReal* SampleFunction(const std::string& channel, const std::str | |
| | | ing& sample); | |
| | | | |
| | | // Get the set of observables for a given channel | |
| | | RooArgSet* GetObservableSet(const std::string& channel); | |
| | | | |
| | | // Get the constraint term for a given systematic (alpha or gamma) | |
| | | RooAbsReal* GetConstraintTerm(const std::string& parameter); | |
| | | | |
| | | // Get the uncertainty based on the constraint term for a given syste | |
| | | matic | |
| | | double GetConstraintUncertainty(const std::string& parameter); | |
| | | | |
| | | // Find a node in the pdf and replace it with a new node | |
| | | // These nodes can be functions, pdf's, RooRealVar's, etc | |
| | | // Will do minimial checking to make sure the replacement makes sense | |
| | | void ReplaceNode(const std::string& ToReplace, RooAbsArg* ReplaceWith | |
| | | ); | |
| | | | |
| | | // Set any RooRealVar's const (or not const) if they match | |
| | | // the supplied regular expression | |
| | | void SetConstant(const std::string& regExpr=".*", bool constant=true) | |
| | | ; | |
| | | | |
| | | void SetNumBinsToPrint(int num) { _numBinsToPrint = num; } | |
| | | int GetNumBinsToPrint() const { return _numBinsToPrint; } | |
| | | | |
| | | // Get the model for this channel | |
| | | RooAbsPdf* GetModel() const { return fModel; } | |
| | | | |
| | | // | |
| | | RooAbsPdf* GetChannelPdf(const std::string& channel); | |
| | | | |
| | | // Return the RooRealVar by the same name used in the model | |
| | | // If not found, return NULL | |
| | | RooRealVar* var(const std::string& varName) const; | |
| | | | |
| | | /* | |
| | | // Add a channel to the pdf | |
| | | // Combine the data if it is provided | |
| | | void AddChannel(const std::string& channel, RooAbsPdf* pdf, RooDataSe | |
| | | t* data=NULL); | |
| | | */ | |
| | | | |
| | | /* | |
| | | // Add a constraint term to the pdf | |
| | | // This method requires that the pdf NOT be simultaneous | |
| | | void AddConstraintTerm(RooAbsArg* constraintTerm); | |
| | | | |
| | | // Add a constraint term to the pdf of a particular channel | |
| | | // This method requires that the pdf be simultaneous | |
| | | // OR that the channel string match the channel that the pdf represen | |
| | | ts | |
| | | void AddConstraintTerm(RooAbsArg* constraintTerm, const std::string& | |
| | | channel); | |
| | | */ | |
| | | | |
| protected: | | protected: | |
| | | | |
| // Fetch the node information for the pdf in question, and | | // Fetch the node information for the pdf in question, and | |
| // save it in the varous collections in this class | | // save it in the varous collections in this class | |
| void _GetNodes(ModelConfig* mc); | | void _GetNodes(ModelConfig* mc); | |
| void _GetNodes(RooAbsPdf* model, const RooArgSet* observables); | | void _GetNodes(RooAbsPdf* model, const RooArgSet* observables); | |
| | | | |
| // Print a histogram's contents to the screen | | // Print a histogram's contents to the screen | |
| // void PrettyPrintHistogram(TH1* hist); | | // void PrettyPrintHistogram(TH1* hist); | |
| | | | |
| | | | |
| skipping to change at line 98 | | skipping to change at line 155 | |
| std::map< std::string, RooAbsReal*> GetSampleFunctionMap(const std::s
tring& channel); | | std::map< std::string, RooAbsReal*> GetSampleFunctionMap(const std::s
tring& channel); | |
| | | | |
| private: | | private: | |
| | | | |
| // The HistFactory Pdf Pointer | | // The HistFactory Pdf Pointer | |
| RooAbsPdf* fModel; | | RooAbsPdf* fModel; | |
| | | | |
| // The observables | | // The observables | |
| RooArgSet* fObservables; | | RooArgSet* fObservables; | |
| | | | |
|
| | | int _numBinsToPrint; | |
| | | | |
| // The list of channels | | // The list of channels | |
| std::vector<std::string> fChannelNameVec; | | std::vector<std::string> fChannelNameVec; | |
| | | | |
| // Map of channel names to their full pdf's | | // Map of channel names to their full pdf's | |
| std::map< std::string, RooAbsPdf* > fChannelPdfMap; | | std::map< std::string, RooAbsPdf* > fChannelPdfMap; | |
| | | | |
| // Map of channel names to pdf without constraint | | // Map of channel names to pdf without constraint | |
| std::map< std::string, RooAbsPdf* > fChannelSumNodeMap; | | std::map< std::string, RooAbsPdf* > fChannelSumNodeMap; | |
| | | | |
| // Map of channel names to their set of ovservables | | // Map of channel names to their set of ovservables | |
| std::map< std::string, RooArgSet*> fChannelObservMap; | | std::map< std::string, RooArgSet*> fChannelObservMap; | |
| | | | |
| // Map of Map of Channel, Sample names to Function Nodes | | // Map of Map of Channel, Sample names to Function Nodes | |
| // Used by doing: fChannelSampleFunctionMap["MyChannel"]["MySample"] | | // Used by doing: fChannelSampleFunctionMap["MyChannel"]["MySample"] | |
| std::map< std::string, std::map< std::string, RooAbsReal*> > fChannel
SampleFunctionMap; | | std::map< std::string, std::map< std::string, RooAbsReal*> > fChannel
SampleFunctionMap; | |
| | | | |
| // Internal method implementation of finding a daughter node | | // Internal method implementation of finding a daughter node | |
| // from a parent node (looping over all generations) | | // from a parent node (looping over all generations) | |
|
| RooAbsReal* findChild(const std::string& name, RooAbsReal* parent); | | RooAbsArg* findChild(const std::string& name, RooAbsReal* parent) con | |
| | | st; | |
| | | | |
| | | // Recursively get all products of products | |
| | | RooArgSet _GetAllProducts(RooProduct* node); | |
| | | | |
| protected: | | protected: | |
| ClassDef(RooStats::HistFactory::HistFactoryNavigation,2) | | ClassDef(RooStats::HistFactory::HistFactoryNavigation,2) | |
| | | | |
| }; | | }; | |
| | | | |
| } | | } | |
| } | | } | |
| | | | |
End of changes. 8 change blocks. |
| 25 lines changed or deleted | | 96 lines changed or added | |
|
| HistoToWorkspaceFactoryFast.h | | HistoToWorkspaceFactoryFast.h | |
| | | | |
| skipping to change at line 30 | | skipping to change at line 30 | |
| #include <RooPlot.h> | | #include <RooPlot.h> | |
| #include <RooArgSet.h> | | #include <RooArgSet.h> | |
| #include <RooFitResult.h> | | #include <RooFitResult.h> | |
| #include <RooAbsReal.h> | | #include <RooAbsReal.h> | |
| #include <RooRealVar.h> | | #include <RooRealVar.h> | |
| #include <RooWorkspace.h> | | #include <RooWorkspace.h> | |
| #include <TObject.h> | | #include <TObject.h> | |
| #include <TH1.h> | | #include <TH1.h> | |
| #include <TDirectory.h> | | #include <TDirectory.h> | |
| | | | |
|
| #include "RooStats/HistFactory/EstimateSummary.h" | | #include "RooStats/HistFactory/Systematics.h" | |
| #include "RooStats/HistFactory/Measurement.h" | | | |
| | | | |
| class ParamHistFunc; | | class ParamHistFunc; | |
| | | | |
| namespace RooStats{ | | namespace RooStats{ | |
|
| namespace HistFactory{ | | namespace HistFactory{ | |
| class HistoToWorkspaceFactoryFast: public TObject { | | | |
| | | | |
|
| public: | | // Forward Declarations FTW | |
| typedef std::map<std::string, double> param_map; | | class Measurement; | |
| HistoToWorkspaceFactoryFast( std::string, std::string , std::vector<st | | class Channel; | |
| d::string> , double =200, double =20, int =0, int =6, TFile* =NULL, param_m | | class Sample; | |
| ap = param_map() ); | | | |
| HistoToWorkspaceFactoryFast( RooStats::HistFactory::Measurement& Meas | | | |
| ); | | | |
| static void ConfigureWorkspaceForMeasurement( const std::string& ModelN | | | |
| ame, RooWorkspace* ws_single, Measurement& measurement ); | | | |
| | | | |
|
| HistoToWorkspaceFactoryFast(); | | class HistoToWorkspaceFactoryFast: public TObject { | |
| virtual ~HistoToWorkspaceFactoryFast(); | | | |
| | | | |
|
| RooWorkspace* MakeSingleChannelModel( Measurement& measurement, Channel | | public: | |
| & channel ); | | | |
| static RooWorkspace* MakeCombinedModel( Measurement& measurement ); | | | |
| | | | |
|
| void SetFunctionsToPreprocess(std::vector<std::string> lines){ fPreproc | | HistoToWorkspaceFactoryFast(); | |
| essFunctions = lines; } | | HistoToWorkspaceFactoryFast( RooStats::HistFactory::Measurement& Mea | |
| | | s ); | |
| | | virtual ~HistoToWorkspaceFactoryFast(); | |
| | | | |
|
| //ES// | | static void ConfigureWorkspaceForMeasurement( const std::string& Mode | |
| /* | | lName, | |
| void AddEfficiencyTerms(RooWorkspace* proto, std::string prefix, std::s | | RooWorkspace* ws_single, | |
| tring interpName, | | Measurement& measurement | |
| std::map<std::string,std::pair<double,double> > | | ); | |
| systMap, | | | |
| std::vector<std::string>& likelihoodTermNames, s | | | |
| td::vector<std::string>& totSystTermNames); | | | |
| */ | | | |
| void AddEfficiencyTerms(RooWorkspace* proto, std::string prefix, std::s | | | |
| tring interpName, | | | |
| std::vector<OverallSys>& systList, | | | |
| std::vector<std::string>& likelihoodTermNames, s | | | |
| td::vector<std::string>& totSystTermNames); | | | |
| | | | |
|
| //ES// std::string AddNormFactor(RooWorkspace *, std::string & , std::s | | RooWorkspace* MakeSingleChannelModel( Measurement& measurement, Chann | |
| tring & , EstimateSummary & , bool ); | | el& channel ); | |
| std::string AddNormFactor(RooWorkspace* proto, std::string& channel, st | | RooWorkspace* MakeCombinedModel(std::vector<std::string>, std::vecto | |
| d::string& sigmaEpsilon, Sample& sample, bool doRatio); | | r<RooWorkspace*>); | |
| | | | |
|
| void AddMultiVarGaussConstraint(RooWorkspace* proto, std::string prefix | | static RooWorkspace* MakeCombinedModel( Measurement& measurement ); | |
| ,int lowBin, int highBin, std::vector<std::string>& likelihoodTermNames); | | static void PrintCovarianceMatrix(RooFitResult* result, RooArgSet* pa | |
| | | rams, | |
| | | std::string filename); | |
| | | | |
|
| void AddPoissonTerms(RooWorkspace* proto, std::string prefix, std::stri | | void SetFunctionsToPreprocess(std::vector<std::string> lines) { fPrep | |
| ng obsPrefix, std::string expPrefix, int lowBin, int highBin, | | rocessFunctions=lines; } | |
| std::vector<std::string>& likelihoodTermNames); | | | |
| | | | |
|
| //void Combine_old(); | | protected: | |
| | | | |
|
| RooWorkspace * MakeCombinedModel(std::vector<std::string>, std::vector | | void AddEfficiencyTerms(RooWorkspace* proto, std::string prefix, std: | |
| <RooWorkspace*>); | | :string interpName, | |
| | | std::vector<OverallSys>& systList, | |
| | | std::vector<std::string>& likelihoodTermNames, | |
| | | std::vector<std::string>& totSystTermNames); | |
| | | | |
|
| //void Combine_ratio(std::vector<std::string> , std::vector<RooWorkspac | | std::string AddNormFactor(RooWorkspace* proto, std::string& channel, | |
| e*>); | | std::string& sigmaEpsilon, Sample& sample, b | |
| | | ool doRatio); | |
| | | | |
|
| void Customize(RooWorkspace* proto, const char* pdfNameChar, std::map<s | | void AddMultiVarGaussConstraint(RooWorkspace* proto, std::string pref | |
| td::string,std::string> renameMap); | | ix, | |
| | | int lowBin, int highBin, | |
| | | std::vector<std::string>& likelihoodTe | |
| | | rmNames); | |
| | | | |
|
| static void EditSyst(RooWorkspace* proto, const char* pdfNameChar, | | void AddPoissonTerms(RooWorkspace* proto, std::string prefix, std::st | |
| std::map<std::string,double> gammaSyst, std::map<st | | ring obsPrefix, | |
| d::string,double> uniformSyst, std::map<std::string,double> logNormSyst, st | | std::string expPrefix, int lowBin, int highBin, | |
| d::map<std::string,double> noSyst); | | std::vector<std::string>& likelihoodTermNames); | |
| | | | |
|
| //void FormatFrameForLikelihood(RooPlot* frame, std::string XTitle=std: | | static void EditSyst(RooWorkspace* proto, const char* pdfNameChar, | |
| :string("#sigma / #sigma_{SM}"), std::string YTitle=std::string("-log likel | | std::map<std::string,double> gammaSyst, | |
| ihood")); | | std::map<std::string,double> uniformSyst, | |
| | | std::map<std::string,double> logNormSyst, | |
| | | std::map<std::string,double> noSyst); | |
| | | | |
|
| //ES// void LinInterpWithConstraint(RooWorkspace* proto, TH1* nominal, | | void LinInterpWithConstraint(RooWorkspace* proto, TH1* nominal, std:: | |
| std::vector<TH1*> lowHist, std::vector<TH1*> highHist, | | vector<HistoSys>, | |
| //ES// std::vector<std::string> sourceName | | std::string prefix, std::string productPr | |
| , std::string prefix, std::string productPrefix, std::string systTerm, | | efix, | |
| //ES// int lowBin, int highBin, std::vecto | | std::string systTerm, | |
| r<std::string>& likelihoodTermNames); | | std::vector<std::string>& likelihoodTermN | |
| void LinInterpWithConstraint(RooWorkspace* proto, TH1* nominal, std::ve | | ames); | |
| ctor<HistoSys>, std::string prefix, std::string productPrefix, std::string | | | |
| systTerm, | | | |
| int lowBin, int highBin, std::vector<std::s | | | |
| tring>& likelihoodTermNames); | | | |
| | | | |
|
| TDirectory* Makedirs( TDirectory* file, std::vector<std::string> names
); | | RooWorkspace* MakeSingleChannelWorkspace(Measurement& measurement, Ch
annel& channel); | |
| | | | |
|
| //ES// RooWorkspace* MakeSingleChannelModel(std::vector<RooStats::HistF | | void MakeTotalExpected(RooWorkspace* proto, std::string totName, | |
| actory::EstimateSummary> summary, std::vector<std::string> systToFix, bool | | std::vector<std::string>& syst_x_expectedPrefix | |
| doRatio=false); | | Names, | |
| // GHL: Renaming to "MakeSingleChannelWorkspace" | | std::vector<std::string>& normByNames); | |
| RooWorkspace* MakeSingleChannelWorkspace(Measurement& measurement, Chan | | | |
| nel& channel); | | | |
| | | | |
|
| void MakeTotalExpected(RooWorkspace* proto, std::string totName, std:: | | RooDataSet* MergeDataSets(RooWorkspace* combined, | |
| string /**/, std::string /**/, | | std::vector<RooWorkspace*> wspace_vec, | |
| int lowBin, int highBin, std::vector<std::string | | std::vector<std::string> channel_names, | |
| >& syst_x_expectedPrefixNames, | | std::string dataSetName, | |
| std::vector<std::string>& normByNames); | | RooArgList obsList, | |
| | | RooCategory* channelCat); | |
| | | | |
|
| TDirectory* Mkdir( TDirectory * file, std::string name ); | | void ProcessExpectedHisto(TH1* hist, RooWorkspace* proto, std::string | |
| | | prefix, | |
| | | std::string productPrefix, std::string systT | |
| | | erm ); | |
| | | | |
|
| static void PrintCovarianceMatrix(RooFitResult* result, RooArgSet* para | | void SetObsToExpected(RooWorkspace* proto, std::string obsPrefix, std | |
| ms, std::string filename); | | ::string expPrefix, | |
| void ProcessExpectedHisto(TH1* hist,RooWorkspace* proto, std::string pr | | int lowBin, int highBin); | |
| efix, std::string productPrefix, std::string systTerm, double low, double h | | | |
| igh, int lowBin, int highBin); | | | |
| void SetObsToExpected(RooWorkspace* proto, std::string obsPrefix, std:: | | | |
| string expPrefix, int lowBin, int highBin); | | | |
| //void FitModel(const std::string& FileNamePrefix, RooWorkspace *, std: | | | |
| :string, std::string, TFile*, FILE*); | | | |
| //std::string FilePrefixStr(std::string); | | | |
| | | | |
|
| TH1* MakeScaledUncertaintyHist( const std::string& Name, std::vector< s | | TH1* MakeScaledUncertaintyHist(const std::string& Name, | |
| td::pair<TH1*,TH1*> > HistVec ); | | std::vector< std::pair<TH1*, TH1*> > Hi | |
| TH1* MakeAbsolUncertaintyHist( const std::string& Name, const TH1* Hist | | stVec ); | |
| ); | | | |
| RooArgList createStatConstraintTerms( RooWorkspace* proto, std::vector< | | | |
| std::string>& constraintTerms, ParamHistFunc& paramHist, TH1* uncertHist, | | | |
| EstimateSummary::ConstraintType ty | | | |
| pe, Double_t minSigma ); | | | |
| | | | |
|
| inline void SetObsNameVec(const std::vector<std::string>& obsNameVec) { | | TH1* MakeAbsolUncertaintyHist( const std::string& Name, const TH1* Hi | |
| fObsNameVec = obsNameVec; } | | st ); | |
| inline void SetObsName(const std::string& obsName) { fObsNameVec.clear( | | | |
| ); fObsNameVec.push_back(obsName); fObsName = obsName; } | | | |
| inline void AddObsName(const std::string& obsName) { fObsNameVec.push_b | | | |
| ack(obsName); } | | | |
| | | | |
|
| //string fFileNamePrefix; | | RooArgList createStatConstraintTerms( RooWorkspace* proto, | |
| //string fRowTitle; | | std::vector<std::string>& constr | |
| std::vector<std::string> fSystToFix; | | aintTerms, | |
| std::map<std::string, double> fParamValues; | | ParamHistFunc& paramHist, TH1* u | |
| double fNomLumi, fLumiError; | | ncertHist, | |
| int fLowBin, fHighBin; | | Constraint::Type type, Double_t | |
| //std::stringstream fResultsPrefixStr; | | minSigma ); | |
| //TFile * fOut_f; | | | |
| // FILE * pFile; | | | |
| | | | |
|
| private: | | void ConfigureHistFactoryDataset(RooDataSet* obsData, TH1* nominal, R | |
| | | ooWorkspace* proto, | |
| | | std::vector<std::string> obsNameVec); | |
| | | | |
|
| void GuessObsNameVec(TH1* hist); | | std::vector<std::string> fSystToFix; | |
| | | std::map<std::string, double> fParamValues; | |
| | | double fNomLumi; | |
| | | double fLumiError; | |
| | | int fLowBin; | |
| | | int fHighBin; | |
| | | | |
|
| std::vector<std::string> fObsNameVec; | | private: | |
| std::string fObsName; | | | |
| std::vector<std::string> fPreprocessFunctions; | | | |
| | | | |
|
| ClassDef(RooStats::HistFactory::HistoToWorkspaceFactoryFast,3) | | void GuessObsNameVec(TH1* hist); | |
| }; | | | |
| | | | |
|
| } | | std::vector<std::string> fObsNameVec; | |
| | | std::string fObsName; | |
| | | std::vector<std::string> fPreprocessFunctions; | |
| | | | |
| | | ClassDef(RooStats::HistFactory::HistoToWorkspaceFactoryFast,3) | |
| | | }; | |
| | | | |
| | | } | |
| } | | } | |
| | | | |
| #endif | | #endif | |
| | | | |
End of changes. 30 change blocks. |
| 123 lines changed or deleted | | 106 lines changed or added | |
|
| Measurement.h | | Measurement.h | |
|
| | | // @(#)root/roostats:$Id: Measurement.h 47093 2012-11-07 10:30:12Z moneta $ | |
| | | // Author: George Lewis, Kyle Cranmer | |
| | | /************************************************************************* | |
| | | * Copyright (C) 1995-2008, Rene Brun and Fons Rademakers. * | |
| | | * All rights reserved. * | |
| | | * * | |
| | | * For the licensing terms see $ROOTSYS/LICENSE. * | |
| | | * For the list of contributors see $ROOTSYS/README/CREDITS. * | |
| | | *************************************************************************/ | |
| | | | |
| #ifndef HISTFACTORY_MEASUREMENT_H | | #ifndef HISTFACTORY_MEASUREMENT_H | |
| #define HISTFACTORY_MEASUREMENT_H | | #define HISTFACTORY_MEASUREMENT_H | |
| | | | |
| #include <string> | | #include <string> | |
| #include <map> | | #include <map> | |
| #include <fstream> | | #include <fstream> | |
| #include <iostream> | | #include <iostream> | |
| | | | |
| #include "TObject.h" | | #include "TObject.h" | |
| #include "TFile.h" | | #include "TFile.h" | |
| | | | |
| #include "PreprocessFunction.h" | | #include "PreprocessFunction.h" | |
| #include "RooStats/HistFactory/Channel.h" | | #include "RooStats/HistFactory/Channel.h" | |
|
| | | #include "RooStats/HistFactory/Asimov.h" | |
| | | | |
| namespace RooStats{ | | namespace RooStats{ | |
| namespace HistFactory { | | namespace HistFactory { | |
| | | | |
| class Measurement : public TNamed { | | class Measurement : public TNamed { | |
| | | | |
| public: | | public: | |
| | | | |
| Measurement(); | | Measurement(); | |
| // Measurement( const Measurement& other ); // Copy | | // Measurement( const Measurement& other ); // Copy | |
| | | | |
| skipping to change at line 55 | | skipping to change at line 65 | |
| void SetParamValue( const std::string& param, double value); | | void SetParamValue( const std::string& param, double value); | |
| std::map<std::string, double>& GetParamValues() { return fParamValues; } | | std::map<std::string, double>& GetParamValues() { return fParamValues; } | |
| void ClearParamValues() { fParamValues.clear(); } | | void ClearParamValues() { fParamValues.clear(); } | |
| | | | |
| void AddPreprocessFunction( std::string name, std::string expression, std
::string dependencies ); | | void AddPreprocessFunction( std::string name, std::string expression, std
::string dependencies ); | |
| void AddFunctionObject( const RooStats::HistFactory::PreprocessFunction f
unction) { fFunctionObjects.push_back( function ); } | | void AddFunctionObject( const RooStats::HistFactory::PreprocessFunction f
unction) { fFunctionObjects.push_back( function ); } | |
| void SetFunctionObjects( std::vector< RooStats::HistFactory::PreprocessFu
nction > objects ) { fFunctionObjects = objects; } | | void SetFunctionObjects( std::vector< RooStats::HistFactory::PreprocessFu
nction > objects ) { fFunctionObjects = objects; } | |
| std::vector< RooStats::HistFactory::PreprocessFunction >& GetFunctionObje
cts() { return fFunctionObjects; } | | std::vector< RooStats::HistFactory::PreprocessFunction >& GetFunctionObje
cts() { return fFunctionObjects; } | |
| std::vector< std::string > GetPreprocessFunctions(); | | std::vector< std::string > GetPreprocessFunctions(); | |
| | | | |
|
| // Make these dynamically from the list of preprocess functions | | // Get and set Asimov Datasets | |
| // instead of storing them | | std::vector< RooStats::HistFactory::Asimov >& GetAsimovDatasets() { retur | |
| // void AddPreprocessFunction( const std::string& function ) { fPreproces | | n fAsimovDatasets; } | |
| sFunctions.push_back( function ); } | | void AddAsimovDataset( RooStats::HistFactory::Asimov dataset ) { fAsimovD | |
| // void SetPreprocessFunctions( std::vector< std::string > functions ) { | | atasets.push_back(dataset); } | |
| fPreprocessFunctions = functions; } | | | |
| // std::vector< std::string >& GetPreprocessFunctions() { return fPrepro | | | |
| cessFunctions; } | | | |
| // void ClearPreprocessFunctions() { fPreprocessFunctions.clear(); } | | | |
| | | | |
| /* | | | |
| <ParamSetting Const=\"True\" Val=\"%g\">%s</ParamSetting>\n" % (setting | | | |
| [1],param) | | | |
| <ConstraintTerm Type=\"%s\" RelativeUncertainty=\"%g\">%s</ConstraintTe | | | |
| rm>\n" % (constraint[0],constraint[1],param) | | | |
| */ | | | |
| | | | |
| void SetLumi(double Lumi ) { fLumi = Lumi; } | | void SetLumi(double Lumi ) { fLumi = Lumi; } | |
| void SetLumiRelErr( double RelErr ) { fLumiRelErr = RelErr; } | | void SetLumiRelErr( double RelErr ) { fLumiRelErr = RelErr; } | |
| double GetLumi() { return fLumi; } | | double GetLumi() { return fLumi; } | |
| double GetLumiRelErr() { return fLumiRelErr; } | | double GetLumiRelErr() { return fLumiRelErr; } | |
| | | | |
| void SetBinLow( int BinLow ) { fBinLow = BinLow; } | | void SetBinLow( int BinLow ) { fBinLow = BinLow; } | |
| void SetBinHigh ( int BinHigh ) { fBinHigh = BinHigh; } | | void SetBinHigh ( int BinHigh ) { fBinHigh = BinHigh; } | |
| int GetBinLow() { return fBinLow; } | | int GetBinLow() { return fBinLow; } | |
| int GetBinHigh() { return fBinHigh; } | | int GetBinHigh() { return fBinHigh; } | |
| | | | |
| skipping to change at line 125 | | skipping to change at line 127 | |
| std::vector< RooStats::HistFactory::Channel > fChannels; | | std::vector< RooStats::HistFactory::Channel > fChannels; | |
| | | | |
| // List of Parameters to be set constant | | // List of Parameters to be set constant | |
| std::vector< std::string > fConstantParams; | | std::vector< std::string > fConstantParams; | |
| | | | |
| // Map of parameter names to inital values to be set | | // Map of parameter names to inital values to be set | |
| std::map< std::string, double > fParamValues; | | std::map< std::string, double > fParamValues; | |
| | | | |
| // List of Preprocess Function objects | | // List of Preprocess Function objects | |
| std::vector< RooStats::HistFactory::PreprocessFunction > fFunctionObjects
; | | std::vector< RooStats::HistFactory::PreprocessFunction > fFunctionObjects
; | |
|
| // std::vector< std::string > fPreprocessFunctions; | | | |
| | | // List of Asimov datasets to generate | |
| | | std::vector< RooStats::HistFactory::Asimov > fAsimovDatasets; | |
| | | | |
| // List of Alternate constraint terms | | // List of Alternate constraint terms | |
| std::map< std::string, double > fGammaSyst; | | std::map< std::string, double > fGammaSyst; | |
| std::map< std::string, double > fUniformSyst; | | std::map< std::string, double > fUniformSyst; | |
| std::map< std::string, double > fLogNormSyst; | | std::map< std::string, double > fLogNormSyst; | |
| std::map< std::string, double > fNoSyst; | | std::map< std::string, double > fNoSyst; | |
| | | | |
| std::string GetDirPath( TDirectory* dir ); | | std::string GetDirPath( TDirectory* dir ); | |
| | | | |
| ClassDef(RooStats::HistFactory::Measurement, 1); | | ClassDef(RooStats::HistFactory::Measurement, 1); | |
| | | | |
End of changes. 4 change blocks. |
| 17 lines changed or deleted | | 18 lines changed or added | |
|
| RooAbsPdf.h | | RooAbsPdf.h | |
| | | | |
| skipping to change at line 59 | | skipping to change at line 59 | |
| virtual ~RooAbsPdf(); | | virtual ~RooAbsPdf(); | |
| | | | |
| // Toy MC generation | | // Toy MC generation | |
| RooDataSet *generate(const RooArgSet &whatVars, Int_t nEvents, const RooC
mdArg& arg1, | | RooDataSet *generate(const RooArgSet &whatVars, Int_t nEvents, const RooC
mdArg& arg1, | |
| const RooCmdArg& arg2=RooCmdArg::none(), const RooCm
dArg& arg3=RooCmdArg::none(), | | const RooCmdArg& arg2=RooCmdArg::none(), const RooCm
dArg& arg3=RooCmdArg::none(), | |
| const RooCmdArg& arg4=RooCmdArg::none(), const RooCm
dArg& arg5=RooCmdArg::none()) ; | | const RooCmdArg& arg4=RooCmdArg::none(), const RooCm
dArg& arg5=RooCmdArg::none()) ; | |
| RooDataSet *generate(const RooArgSet &whatVars, | | RooDataSet *generate(const RooArgSet &whatVars, | |
| const RooCmdArg& arg1=RooCmdArg::none(),const RooCmd
Arg& arg2=RooCmdArg::none(), | | const RooCmdArg& arg1=RooCmdArg::none(),const RooCmd
Arg& arg2=RooCmdArg::none(), | |
| const RooCmdArg& arg3=RooCmdArg::none(),const RooCmd
Arg& arg4=RooCmdArg::none(), | | const RooCmdArg& arg3=RooCmdArg::none(),const RooCmd
Arg& arg4=RooCmdArg::none(), | |
| const RooCmdArg& arg5=RooCmdArg::none(),const RooCmd
Arg& arg6=RooCmdArg::none()) ; | | const RooCmdArg& arg5=RooCmdArg::none(),const RooCmd
Arg& arg6=RooCmdArg::none()) ; | |
|
| RooDataSet *generate(const RooArgSet &whatVars, Int_t nEvents = 0, Bool_t
verbose=kFALSE, Bool_t autoBinned=kTRUE, | | RooDataSet *generate(const RooArgSet &whatVars, Double_t nEvents = 0, Boo
l_t verbose=kFALSE, Bool_t autoBinned=kTRUE, | |
| const char* binnedTag="", Bool_t expectedData=kFALSE,
Bool_t extended = kFALSE) const; | | const char* binnedTag="", Bool_t expectedData=kFALSE,
Bool_t extended = kFALSE) const; | |
| RooDataSet *generate(const RooArgSet &whatVars, const RooDataSet &prototy
pe, Int_t nEvents= 0, | | RooDataSet *generate(const RooArgSet &whatVars, const RooDataSet &prototy
pe, Int_t nEvents= 0, | |
| Bool_t verbose=kFALSE, Bool_t randProtoOrder=kFALSE,
Bool_t resampleProto=kFALSE) const; | | Bool_t verbose=kFALSE, Bool_t randProtoOrder=kFALSE,
Bool_t resampleProto=kFALSE) const; | |
| | | | |
| class GenSpec { | | class GenSpec { | |
| public: | | public: | |
| virtual ~GenSpec() ; | | virtual ~GenSpec() ; | |
| GenSpec() { _genContext = 0 ; _protoData = 0 ; _init = kFALSE ; _extend
ed=kFALSE, _nGen=0 ; _randProto = kFALSE ; _resampleProto=kFALSE ; } | | GenSpec() { _genContext = 0 ; _protoData = 0 ; _init = kFALSE ; _extend
ed=kFALSE, _nGen=0 ; _randProto = kFALSE ; _resampleProto=kFALSE ; } | |
| private: | | private: | |
| GenSpec(RooAbsGenContext* context, const RooArgSet& whatVars, RooDataSe
t* protoData, Int_t nGen, Bool_t extended, | | GenSpec(RooAbsGenContext* context, const RooArgSet& whatVars, RooDataSe
t* protoData, Int_t nGen, Bool_t extended, | |
| | | | |
| skipping to change at line 182 | | skipping to change at line 182 | |
| const RooCmdArg& arg3=RooCmdArg::none(), const RooCm
dArg& arg4=RooCmdArg::none(), | | const RooCmdArg& arg3=RooCmdArg::none(), const RooCm
dArg& arg4=RooCmdArg::none(), | |
| const RooCmdArg& arg5=RooCmdArg::none(), const RooCm
dArg& arg6=RooCmdArg::none(), | | const RooCmdArg& arg5=RooCmdArg::none(), const RooCm
dArg& arg6=RooCmdArg::none(), | |
| const RooCmdArg& arg7=RooCmdArg::none(), const RooCm
dArg& arg8=RooCmdArg::none()) ; | | const RooCmdArg& arg7=RooCmdArg::none(), const RooCm
dArg& arg8=RooCmdArg::none()) ; | |
| RooAbsReal* createScanCdf(const RooArgSet& iset, const RooArgSet& nset, I
nt_t numScanBins, Int_t intOrder) ; | | RooAbsReal* createScanCdf(const RooArgSet& iset, const RooArgSet& nset, I
nt_t numScanBins, Int_t intOrder) ; | |
| | | | |
| // Function evaluation support | | // Function evaluation support | |
| virtual Bool_t traceEvalHook(Double_t value) const ; | | virtual Bool_t traceEvalHook(Double_t value) const ; | |
| virtual Double_t getValV(const RooArgSet* set=0) const ; | | virtual Double_t getValV(const RooArgSet* set=0) const ; | |
| virtual Double_t getLogVal(const RooArgSet* set=0) const ; | | virtual Double_t getLogVal(const RooArgSet* set=0) const ; | |
| | | | |
|
| void setNormValueCaching(Int_t minNumIntDim, Int_t ipOrder=2) ; | | | |
| Int_t minDimNormValueCaching() const { return _minDimNormValueCache ; } | | | |
| Int_t intOrderNormValueCaching() const { return _valueCacheIntOrder ; } | | | |
| | | | |
| Double_t getNorm(const RooArgSet& nset) const { | | Double_t getNorm(const RooArgSet& nset) const { | |
| // Get p.d.f normalization term needed for observables 'nset' | | // Get p.d.f normalization term needed for observables 'nset' | |
| return getNorm(&nset) ; | | return getNorm(&nset) ; | |
| } | | } | |
| virtual Double_t getNorm(const RooArgSet* set=0) const ; | | virtual Double_t getNorm(const RooArgSet* set=0) const ; | |
| | | | |
| virtual void resetErrorCounters(Int_t resetValue=10) ; | | virtual void resetErrorCounters(Int_t resetValue=10) ; | |
| void setTraceCounter(Int_t value, Bool_t allNodes=kFALSE) ; | | void setTraceCounter(Int_t value, Bool_t allNodes=kFALSE) ; | |
| Bool_t traceEvalPdf(Double_t value) const ; | | Bool_t traceEvalPdf(Double_t value) const ; | |
| | | | |
| | | | |
| skipping to change at line 244 | | skipping to change at line 240 | |
| | | | |
| static void clearEvalError() ; | | static void clearEvalError() ; | |
| static Bool_t evalError() ; | | static Bool_t evalError() ; | |
| | | | |
| void setNormRange(const char* rangeName) ; | | void setNormRange(const char* rangeName) ; | |
| const char* normRange() const { | | const char* normRange() const { | |
| return _normRange.Length()>0 ? _normRange.Data() : 0 ; | | return _normRange.Length()>0 ? _normRange.Data() : 0 ; | |
| } | | } | |
| void setNormRangeOverride(const char* rangeName) ; | | void setNormRangeOverride(const char* rangeName) ; | |
| | | | |
|
| | | const RooAbsReal* getNormIntegral(const RooArgSet& nset) const { return g | |
| | | etNormObj(0,&nset,0) ; } | |
| | | | |
| protected: | | protected: | |
| | | | |
| public: | | public: | |
| virtual const RooAbsReal* getNormObj(const RooArgSet* set, const RooArgSe
t* iset, const TNamed* rangeName=0) const ; | | virtual const RooAbsReal* getNormObj(const RooArgSet* set, const RooArgSe
t* iset, const TNamed* rangeName=0) const ; | |
| protected: | | protected: | |
| | | | |
| RooDataSet *generate(RooAbsGenContext& context, const RooArgSet& whatVars
, const RooDataSet* prototype, | | RooDataSet *generate(RooAbsGenContext& context, const RooArgSet& whatVars
, const RooDataSet* prototype, | |
|
| Int_t nEvents, Bool_t verbose, Bool_t randProtoOrder,
Bool_t resampleProto, Bool_t skipInit=kFALSE, | | Double_t nEvents, Bool_t verbose, Bool_t randProtoOrd
er, Bool_t resampleProto, Bool_t skipInit=kFALSE, | |
| Bool_t extended=kFALSE) const ; | | Bool_t extended=kFALSE) const ; | |
| | | | |
| // Implementation version | | // Implementation version | |
| virtual RooPlot* paramOn(RooPlot* frame, const RooArgSet& params, Bool_t
showConstants=kFALSE, | | virtual RooPlot* paramOn(RooPlot* frame, const RooArgSet& params, Bool_t
showConstants=kFALSE, | |
| const char *label= "", Int_t sigDigits = 2, Opti
on_t *options = "NELU", Double_t xmin=0.65, | | const char *label= "", Int_t sigDigits = 2, Opti
on_t *options = "NELU", Double_t xmin=0.65, | |
| Double_t xmax= 0.99,Double_t ymax=0.95, const Roo
CmdArg* formatCmd=0) ; | | Double_t xmax= 0.99,Double_t ymax=0.95, const Roo
CmdArg* formatCmd=0) ; | |
| | | | |
| virtual RooPlot* plotOn(RooPlot* frame, RooLinkedList& cmdList) const ; | | virtual RooPlot* plotOn(RooPlot* frame, RooLinkedList& cmdList) const ; | |
| void plotOnCompSelect(RooArgSet* selNodes) const ; | | void plotOnCompSelect(RooArgSet* selNodes) const ; | |
| | | | |
| | | | |
| skipping to change at line 298 | | skipping to change at line 296 | |
| | | | |
| friend class RooRealIntegral ; | | friend class RooRealIntegral ; | |
| static Int_t _verboseEval ; | | static Int_t _verboseEval ; | |
| | | | |
| virtual Bool_t syncNormalization(const RooArgSet* dset, Bool_t adjustProx
ies=kTRUE) const ; | | virtual Bool_t syncNormalization(const RooArgSet* dset, Bool_t adjustProx
ies=kTRUE) const ; | |
| | | | |
| friend class RooAbsAnaConvPdf ; | | friend class RooAbsAnaConvPdf ; | |
| mutable Double_t _rawValue ; | | mutable Double_t _rawValue ; | |
| mutable RooAbsReal* _norm ; //! Normalization integral (owned by _
normMgr) | | mutable RooAbsReal* _norm ; //! Normalization integral (owned by _
normMgr) | |
| mutable RooArgSet* _normSet ; //! Normalization set with for above i
ntegral | | mutable RooArgSet* _normSet ; //! Normalization set with for above i
ntegral | |
|
| Int_t _minDimNormValueCache ; // Minimum number of numerically integ | | | |
| rated dimensions to activate normalization value caching | | | |
| Int_t _valueCacheIntOrder ; // Interpolation order for numeric int | | | |
| egral value cache | | | |
| | | | |
| class CacheElem : public RooAbsCacheElement { | | class CacheElem : public RooAbsCacheElement { | |
| public: | | public: | |
| CacheElem(RooAbsReal& norm) : _norm(&norm) {} ; | | CacheElem(RooAbsReal& norm) : _norm(&norm) {} ; | |
| void operModeHook(RooAbsArg::OperMode) ; | | void operModeHook(RooAbsArg::OperMode) ; | |
| virtual ~CacheElem() ; | | virtual ~CacheElem() ; | |
| virtual RooArgList containedArgs(Action) { return RooArgList(*_norm) ;
} | | virtual RooArgList containedArgs(Action) { return RooArgList(*_norm) ;
} | |
| RooAbsReal* _norm ; | | RooAbsReal* _norm ; | |
| } ; | | } ; | |
| mutable RooObjCacheManager _normMgr ; // The cache manager | | mutable RooObjCacheManager _normMgr ; // The cache manager | |
| | | | |
| skipping to change at line 338 | | skipping to change at line 334 | |
| | | | |
| static void raiseEvalError() ; | | static void raiseEvalError() ; | |
| | | | |
| static Bool_t _evalError ; | | static Bool_t _evalError ; | |
| | | | |
| RooNumGenConfig* _specGeneratorConfig ; //! MC generator configuration sp
ecific for this object | | RooNumGenConfig* _specGeneratorConfig ; //! MC generator configuration sp
ecific for this object | |
| | | | |
| TString _normRange ; // Normalization range | | TString _normRange ; // Normalization range | |
| static TString _normRangeOverride ; | | static TString _normRangeOverride ; | |
| | | | |
|
| ClassDef(RooAbsPdf,3) // Abstract PDF with normalization support | | ClassDef(RooAbsPdf,4) // Abstract PDF with normalization support | |
| }; | | }; | |
| | | | |
| #endif | | #endif | |
| | | | |
End of changes. 6 change blocks. |
| 11 lines changed or deleted | | 6 lines changed or added | |
|
| RooAbsReal.h | | RooAbsReal.h | |
| | | | |
| skipping to change at line 295 | | skipping to change at line 295 | |
| | | | |
| RooMoment* mean(RooRealVar& obs) { return moment(obs,1,kFALSE,kFALSE) ; } | | RooMoment* mean(RooRealVar& obs) { return moment(obs,1,kFALSE,kFALSE) ; } | |
| RooMoment* mean(RooRealVar& obs, const RooArgSet& nset) { return moment(o
bs,nset,1,kFALSE,kFALSE,kTRUE) ; } | | RooMoment* mean(RooRealVar& obs, const RooArgSet& nset) { return moment(o
bs,nset,1,kFALSE,kFALSE,kTRUE) ; } | |
| RooMoment* sigma(RooRealVar& obs) { return moment(obs,2,kTRUE,kTRUE) ; } | | RooMoment* sigma(RooRealVar& obs) { return moment(obs,2,kTRUE,kTRUE) ; } | |
| RooMoment* sigma(RooRealVar& obs, const RooArgSet& nset) { return moment(
obs,nset,2,kTRUE,kTRUE,kTRUE) ; } | | RooMoment* sigma(RooRealVar& obs, const RooArgSet& nset) { return moment(
obs,nset,2,kTRUE,kTRUE,kTRUE) ; } | |
| | | | |
| Double_t findRoot(RooRealVar& x, Double_t xmin, Double_t xmax, Double_t y
val) ; | | Double_t findRoot(RooRealVar& x, Double_t xmin, Double_t xmax, Double_t y
val) ; | |
| | | | |
| virtual Bool_t setData(RooAbsData& /*data*/, Bool_t /*cloneData*/=kTRUE)
{ return kTRUE ; } | | virtual Bool_t setData(RooAbsData& /*data*/, Bool_t /*cloneData*/=kTRUE)
{ return kTRUE ; } | |
| | | | |
|
| | | virtual void enableOffsetting(Bool_t) {} ; | |
| | | virtual Bool_t isOffsetting() const { return kFALSE ; } | |
| | | virtual Double_t offset() const { return 0 ; } | |
| | | | |
| | | static void setHideOffset(Bool_t flag); | |
| | | static Bool_t hideOffset() ; | |
| | | | |
| protected: | | protected: | |
| | | | |
| // PlotOn with command list | | // PlotOn with command list | |
| virtual RooPlot* plotOn(RooPlot* frame, RooLinkedList& cmdList) const ; | | virtual RooPlot* plotOn(RooPlot* frame, RooLinkedList& cmdList) const ; | |
| | | | |
| // Hook for objects with normalization-dependent parameters interperetati
on | | // Hook for objects with normalization-dependent parameters interperetati
on | |
| virtual void selectNormalization(const RooArgSet* depSet=0, Bool_t force=
kFALSE) ; | | virtual void selectNormalization(const RooArgSet* depSet=0, Bool_t force=
kFALSE) ; | |
| virtual void selectNormalizationRange(const char* rangeName=0, Bool_t for
ce=kFALSE) ; | | virtual void selectNormalizationRange(const char* rangeName=0, Bool_t for
ce=kFALSE) ; | |
| | | | |
| // Helper functions for plotting | | // Helper functions for plotting | |
| | | | |
| skipping to change at line 453 | | skipping to change at line 460 | |
| friend class RooAddModel ; | | friend class RooAddModel ; | |
| void selectComp(Bool_t flag) { | | void selectComp(Bool_t flag) { | |
| // If flag is true, only selected component will be included in evaluat
es of RooAddPdf components | | // If flag is true, only selected component will be included in evaluat
es of RooAddPdf components | |
| _selectComp = flag ; | | _selectComp = flag ; | |
| } | | } | |
| static void globalSelectComp(Bool_t flag) ; | | static void globalSelectComp(Bool_t flag) ; | |
| Bool_t _selectComp ; //! Component selection flag for RooAb
sPdf::plotCompOn | | Bool_t _selectComp ; //! Component selection flag for RooAb
sPdf::plotCompOn | |
| static Bool_t _globalSelectComp ; // Global activation switch for compon
ent selection | | static Bool_t _globalSelectComp ; // Global activation switch for compon
ent selection | |
| | | | |
| mutable RooArgSet* _lastNSet ; //! | | mutable RooArgSet* _lastNSet ; //! | |
|
| | | static Bool_t _hideOffset ; // Offset hiding flag | |
| | | | |
| ClassDef(RooAbsReal,2) // Abstract real-valued variable | | ClassDef(RooAbsReal,2) // Abstract real-valued variable | |
| }; | | }; | |
| | | | |
| #endif | | #endif | |
| | | | |
End of changes. 2 change blocks. |
| 0 lines changed or deleted | | 8 lines changed or added | |
|
| RootFinder.h | | RootFinder.h | |
|
| // @(#)root/mathmore:$Id: RootFinder.h 33942 2010-06-16 13:12:17Z moneta $ | | // @(#)root/tmva $Id: RootFinder.h 40005 2011-06-27 15:29:10Z stelzer $ | |
| // Authors: L. Moneta, A. Zsenei 08/2005 | | // Author: Andreas Hoecker, Joerg Stelzer, Helge Voss, Kai Voss | |
| | | | |
|
| /********************************************************************** | | /************************************************************************** | |
| * * | | ******** | |
| * Copyright (c) 2004 ROOT Foundation, CERN/PH-SFT * | | * Project: TMVA - a Root-integrated toolkit for multivariate data analysis | |
| * * | | * | |
| * This library is free software; you can redistribute it and/or * | | * Package: TMVA | |
| * modify it under the terms of the GNU General Public License * | | * | |
| * as published by the Free Software Foundation; either version 2 * | | * Class : RootFinder | |
| * of the License, or (at your option) any later version. * | | * | |
| * * | | * Web : http://tmva.sourceforge.net | |
| * This library is distributed in the hope that it will be useful, * | | * | |
| * but WITHOUT ANY WARRANTY; without even the implied warranty of * | | * | |
| * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * | | * | |
| * General Public License for more details. * | | * Description: | |
| * * | | * | |
| * You should have received a copy of the GNU General Public License * | | * Root finding using Brents algorithm | |
| * along with this library (see file COPYING); if not, write * | | * | |
| * to the Free Software Foundation, Inc., 59 Temple Place, Suite * | | * (translated from CERNLIB function RZERO) | |
| * 330, Boston, MA 02111-1307 USA, or contact the author. * | | * | |
| * * | | * | |
| **********************************************************************/ | | * | |
| | | * Authors (alphabetical): | |
| // Header file for class RootFinder | | * | |
| // | | * Andreas Hoecker <Andreas.Hocker@cern.ch> - CERN, Switzerland | |
| // Created by: moneta at Sun Nov 14 16:59:55 2004 | | * | |
| // | | * Helge Voss <Helge.Voss@cern.ch> - MPI-K Heidelberg, German | |
| // Last update: Sun Nov 14 16:59:55 2004 | | y * | |
| // | | * Kai Voss <Kai.Voss@cern.ch> - U. of Victoria, Canada | |
| #ifndef ROOT_Math_RootFinder | | * | |
| #define ROOT_Math_RootFinder | | * | |
| | | * | |
| | | * Copyright (c) 2005: | |
| | | * | |
| | | * CERN, Switzerland | |
| | | * | |
| | | * U. of Victoria, Canada | |
| | | * | |
| | | * MPI-K Heidelberg, Germany | |
| | | * | |
| | | * | |
| | | * | |
| | | * Redistribution and use in source and binary forms, with or without | |
| | | * | |
| | | * modification, are permitted according to the terms listed in LICENSE | |
| | | * | |
| | | * (http://tmva.sourceforge.net/LICENSE) | |
| | | * | |
| | | ************************************************************************** | |
| | | ********/ | |
| | | | |
| | | #ifndef ROOT_TMVA_RootFinder | |
| | | #define ROOT_TMVA_RootFinder | |
| | | | |
| | | ////////////////////////////////////////////////////////////////////////// | |
| | | // // | |
| | | // RootFinder // | |
| | | // // | |
| | | // Root finding using Brents algorithm // | |
| | | // (translated from CERNLIB function RZERO) // | |
| | | // // | |
| | | ////////////////////////////////////////////////////////////////////////// | |
| | | | |
|
| #ifndef ROOT_Math_IFunctionfwd | | #ifndef ROOT_TObject | |
| #include "Math/IFunctionfwd.h" | | #include "TObject.h" | |
| #endif | | #endif | |
| | | | |
|
| #ifndef ROOT_Math_IRootFinderMethod | | namespace TMVA { | |
| #include "Math/IRootFinderMethod.h" | | | |
| #endif | | | |
| | | | |
|
| /** | | class MsgLogger; | |
| @defgroup RootFinders One-dimensional Root-Finding algorithms | | | |
| Various implementation esists in MathCore and MathMore | | | |
| The user interacts with a proxy class ROOT::Math::RootFinder which creat | | | |
| es behing | | | |
| the choosen algorithms which are implemented using the ROOT::Math::IRoot | | | |
| FinderMethod interface | | | |
| | | | |
| @ingroup NumAlgo | | | |
| */ | | | |
| | | | |
| namespace ROOT { | | | |
| namespace Math { | | | |
| | | | |
| //_________________________________________________________________________ | | | |
| ____________ | | | |
| /** | | | |
| User Class to find the Root of one dimensional functions. | | | |
| The GSL Methods are implemented in MathMore and they are loaded au | | | |
| tomatically | | | |
| via the plug-in manager | | | |
| | | | |
| The possible types of Root-finding algorithms are: | | | |
| <ul> | | | |
| <li>Root Bracketing Algorithms which do not require function deriv | | | |
| atives | | | |
| <ol> | | | |
| <li>RootFinder::kBRENT (default method implemented in MathCore) | | | |
| <li>RootFinder::kGSL_BISECTION | | | |
| <li>RootFinder::kGSL_FALSE_POS | | | |
| <li>RootFinder::kGSL_BRENT | | | |
| </ol> | | | |
| <li>Root Finding Algorithms using Derivatives | | | |
| <ol> | | | |
| <li>RootFinder::kGSL_NEWTON | | | |
| <li>RootFinder::kGSL_SECANT | | | |
| <li>RootFinder::kGSL_STEFFENSON | | | |
| </ol> | | | |
| </ul> | | | |
| | | | |
| This class does not cupport copying | | | |
| | | | |
| @ingroup RootFinders | | | |
| | | | |
| */ | | | |
| | | | |
| class RootFinder { | | | |
| | | | |
| public: | | | |
| | | | |
| enum EType { kBRENT, // Methods | | | |
| from MathCore | | | |
| kGSL_BISECTION, kGSL_FALSE_POS, kGSL_BRENT, // GSL Nor | | | |
| mal | | | |
| kGSL_NEWTON, kGSL_SECANT, kGSL_STEFFENSON // GSL Der | | | |
| ivatives | | | |
| }; | | | |
| | | | |
| /** | | | |
| Construct a Root-Finder algorithm | | | |
| */ | | | |
| RootFinder(RootFinder::EType type = RootFinder::kBRENT); | | | |
| virtual ~RootFinder(); | | | |
| | | | |
| private: | | | |
| // usually copying is non trivial, so we make this unaccessible | | | |
| RootFinder(const RootFinder & ) {} | | | |
| RootFinder & operator = (const RootFinder & rhs) | | | |
| { | | | |
| if (this == &rhs) return *this; // time saving self-test | | | |
| return *this; | | | |
| } | | | |
| | | | |
| public: | | | |
| | | | |
| bool SetMethod(RootFinder::EType type = RootFinder::kBRENT); | | | |
| | | | |
| /** | | | |
| Provide to the solver the function and the initial search inter | | | |
| val [xlow, xup] | | | |
| for algorithms not using derivatives (bracketing algorithms) | | | |
| The templated function f must be of a type implementing the \a | | | |
| operator() method, | | | |
| <em> double operator() ( double x ) </em> | | | |
| Returns non zero if interval is not valid (i.e. does not contai | | | |
| ns a root) | | | |
| */ | | | |
| | | | |
| bool SetFunction( const IGenFunction & f, double xlow, double xup) | | | |
| { | | | |
| return fSolver->SetFunction( f, xlow, xup); | | | |
| } | | | |
| | | | |
| /** | | | |
| Provide to the solver the function and an initial estimate of t | | | |
| he root, | | | |
| for algorithms using derivatives. | | | |
| The templated function f must be of a type implementing the \a | | | |
| operator() | | | |
| and the \a Gradient() methods. | | | |
| <em> double operator() ( double x ) </em> | | | |
| Returns non zero if starting point is not valid | | | |
| */ | | | |
| | | | |
| bool SetFunction( const IGradFunction & f, double xstart) { | | | |
| return fSolver->SetFunction( f, xstart); | | | |
| } | | | |
| | | | |
| template<class Function, class Derivative> | | | |
| bool Solve(Function &f, Derivative &d, double start, | | | |
| int maxIter = 100, double absTol = 1E-8, double relTol = | | | |
| 1E-10); | | | |
| | | | |
| template<class Function> | | | |
| bool Solve(Function &f, double min, double max, | | | |
| int maxIter = 100, double absTol = 1E-8, double relTol = | | | |
| 1E-10); | | | |
| | | | |
| /** | | | |
| Compute the roots iterating until the estimate of the Root is | | | |
| within the required tolerance returning | | | |
| the iteration Status | | | |
| */ | | | |
| bool Solve( int maxIter = 100, double absTol = 1E-8, double relTol | | | |
| = 1E-10) { | | | |
| return fSolver->Solve( maxIter, absTol, relTol ); | | | |
| } | | | |
| | | | |
| /** | | | |
| Return the number of iteration performed to find the Root. | | | |
| */ | | | |
| int Iterations() const { | | | |
| return fSolver->Iterations(); | | | |
| } | | | |
| | | | |
| /** | | | |
| Perform a single iteration and return the Status | | | |
| */ | | | |
| int Iterate() { | | | |
| return fSolver->Iterate(); | | | |
| } | | | |
| | | | |
| /** | | | |
| Return the current and latest estimate of the Root | | | |
| */ | | | |
| double Root() const { | | | |
| return fSolver->Root(); | | | |
| } | | | |
| | | | |
| /** | | | |
| Return the status of the last estimate of the Root | | | |
| = 0 OK, not zero failure | | | |
| */ | | | |
| int Status() const { | | | |
| return fSolver->Status(); | | | |
| } | | | |
| | | | |
| /** | | | |
| Return the current and latest estimate of the lower value of th | | | |
| e Root-finding interval (for bracketing algorithms) | | | |
| */ | | | |
| /* double XLower() const { */ | | | |
| /* return fSolver->XLower(); */ | | | |
| /* } */ | | | |
| | | | |
| /** | | | |
| Return the current and latest estimate of the upper value of th | | | |
| e Root-finding interval (for bracketing algorithms) | | | |
| */ | | | |
| /* double XUpper() const { */ | | | |
| /* return fSolver->XUpper(); */ | | | |
| /* } */ | | | |
| | | | |
| /** | | | |
| Get Name of the Root-finding solver algorithm | | | |
| */ | | | |
| const char * Name() const { | | | |
| return fSolver->Name(); | | | |
| } | | | |
| | | | |
| protected: | | | |
| | | | |
| private: | | | |
| | | | |
| IRootFinderMethod* fSolver; // type of algorithm to be used | | | |
| | | | |
|
| }; | | class RootFinder : public TObject { | |
| | | | |
|
| } // namespace Math | | public: | |
| } // namespace ROOT | | | |
| | | | |
|
| #ifndef ROOT_Math_WrappedFunction | | RootFinder( Double_t (*rootVal)( Double_t ), | |
| #include "Math/WrappedFunction.h" | | Double_t rootMin, Double_t rootMax, | |
| #endif | | Int_t maxIterations = 100, | |
| | | Double_t absTolerance = 0.0 ); | |
| | | virtual ~RootFinder( void ); | |
| | | | |
|
| #ifndef ROOT_Math_Functor | | // returns the root of the function | |
| #include "Math/Functor.h" | | Double_t Root( Double_t refValue ); | |
| #endif | | | |
| | | private: | |
| | | | |
| | | Double_t fRootMin; // minimum root value | |
| | | Double_t fRootMax; // maximum root value | |
| | | Int_t fMaxIter; // maximum number of iterations | |
| | | Double_t fAbsTol; // absolute tolerance deviation | |
| | | | |
|
| template<class Function, class Derivative> | | // function pointer | |
| bool ROOT::Math::RootFinder::Solve(Function &f, Derivative &d, double start | | Double_t (*fGetRootVal)( Double_t ); | |
| , | | | |
| int maxIter, double absTol, double relTol | | | |
| ) | | | |
| { | | | |
| if (!fSolver) return false; | | | |
| ROOT::Math::GradFunctor1D wf(f, d); | | | |
| bool ret = fSolver->SetFunction(wf, start); | | | |
| if (!ret) return false; | | | |
| return Solve(maxIter, absTol, relTol); | | | |
| } | | | |
| | | | |
| template<class Function> | | | |
| bool ROOT::Math::RootFinder::Solve(Function &f, double min, double max, | | | |
| int maxIter, double absTol, double relTol | | | |
| ) | | | |
| { | | | |
| if (!fSolver) return false; | | | |
| ROOT::Math::WrappedFunction<Function &> wf(f); | | | |
| bool ret = fSolver->SetFunction(wf, min, max); | | | |
| if (!ret) return false; | | | |
| return Solve(maxIter, absTol, relTol); | | | |
| } | | | |
| | | | |
|
| #endif /* ROOT_Math_RootFinder */ | | mutable MsgLogger* fLogger; //! message logger | |
| | | MsgLogger& Log() const { return *fLogger; } | |
| | | | |
| | | ClassDef(RootFinder,0) // Root finding using Brents algorithm | |
| | | }; | |
| | | | |
| | | } // namespace TMVA | |
| | | | |
| | | #endif | |
| | | | |
End of changes. 11 change blocks. |
| 254 lines changed or deleted | | 84 lines changed or added | |
|
| TDataSetManagerFile.h | | TDataSetManagerFile.h | |
|
| // @(#)root/proof:$Id: TDataSetManagerFile.h 33357 2010-05-04 06:56:18Z gan
is $ | | // @(#)root/proof:$Id: TDataSetManagerFile.h 48061 2012-12-15 19:46:14Z gan
is $ | |
| // Author: Jan Fiete Grosse-Oetringhaus, 08.08.07 | | // Author: Jan Fiete Grosse-Oetringhaus, 08.08.07 | |
| | | | |
| /************************************************************************* | | /************************************************************************* | |
| * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * | | * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * | |
| * All rights reserved. * | | * All rights reserved. * | |
| * * | | * * | |
| * For the licensing terms see $ROOTSYS/LICENSE. * | | * For the licensing terms see $ROOTSYS/LICENSE. * | |
| * For the list of contributors see $ROOTSYS/README/CREDITS. * | | * For the list of contributors see $ROOTSYS/README/CREDITS. * | |
| *************************************************************************/ | | *************************************************************************/ | |
| | | | |
| #ifndef ROOT_TDataSetManagerFile | | #ifndef ROOT_TDataSetManagerFile | |
| #define ROOT_TDataSetManagerFile | | #define ROOT_TDataSetManagerFile | |
| | | | |
| ////////////////////////////////////////////////////////////////////////// | | ////////////////////////////////////////////////////////////////////////// | |
| // // | | // // | |
|
| // TDataSetManagerFile // | | // TDataSetManagerFile // | |
| // // | | // // | |
|
| // Implementation of TDataSetManager handling datasets from root // | | // Implementation of TDataSetManager handling datasets from root // | |
| // files under a specific directory path // | | // files under a specific directory path // | |
| // // | | // // | |
| ////////////////////////////////////////////////////////////////////////// | | ////////////////////////////////////////////////////////////////////////// | |
| | | | |
| #ifndef ROOT_TDataSetManager | | #ifndef ROOT_TDataSetManager | |
| #include "TDataSetManager.h" | | #include "TDataSetManager.h" | |
| #endif | | #endif | |
| | | | |
| const char* const kDataSet_LocalCache = "dataset.cache"; // default cache
subdirectory | | const char* const kDataSet_LocalCache = "dataset.cache"; // default cache
subdirectory | |
| const char* const kDataSet_DataSetList = "dataset.list"; // file with inf
o about all datasets | | const char* const kDataSet_DataSetList = "dataset.list"; // file with inf
o about all datasets | |
| | | | |
| skipping to change at line 45 | | skipping to change at line 45 | |
| TString fDataSetDir; // Location of datasets | | TString fDataSetDir; // Location of datasets | |
| TString fMSSUrl; // URL for the Mass Storage System | | TString fMSSUrl; // URL for the Mass Storage System | |
| TString fStageOpts; // Option string to be used in issuing stagi
ng requests | | TString fStageOpts; // Option string to be used in issuing stagi
ng requests | |
| TString fDataSetLockFile; // Dataset lock file | | TString fDataSetLockFile; // Dataset lock file | |
| Int_t fLockFileTimeLimit; // Limit in seconds after a lock automatical
ly expires | | Int_t fLockFileTimeLimit; // Limit in seconds after a lock automatical
ly expires | |
| TString fListFile; // File to check repository updates | | TString fListFile; // File to check repository updates | |
| Bool_t fIsRemote; // True if the repository is remote | | Bool_t fIsRemote; // True if the repository is remote | |
| Bool_t fUseCache; // True if the cache is used for browsing re
mote repositories | | Bool_t fUseCache; // True if the cache is used for browsing re
mote repositories | |
| TString fLocalCacheDir; // Local cache when the repository is remote | | TString fLocalCacheDir; // Local cache when the repository is remote | |
| Int_t fCacheUpdatePeriod; // Period for checking for new updated infor
mation | | Int_t fCacheUpdatePeriod; // Period for checking for new updated infor
mation | |
|
| | | Bool_t fOpenPerms; // True if file permissions must be open | |
| | | | |
| // Local cache handling | | // Local cache handling | |
| void InitLocalCache(); | | void InitLocalCache(); | |
| Int_t CheckLocalCache(const char *group, const char *user, const char
*dsName = "ls", UInt_t option = 0); | | Int_t CheckLocalCache(const char *group, const char *user, const char
*dsName = "ls", UInt_t option = 0); | |
| | | | |
| protected: | | protected: | |
| const char *GetDataSetPath(const char *group, const char *user, const ch
ar *dsName); | | const char *GetDataSetPath(const char *group, const char *user, const ch
ar *dsName); | |
| const char *GetDataSetPath(const char *group, const char *user, const ch
ar *dsName, | | const char *GetDataSetPath(const char *group, const char *user, const ch
ar *dsName, | |
| TString &md5path, Bool_t local = kFALSE); | | TString &md5path, Bool_t local = kFALSE); | |
| void Init(); | | void Init(); | |
| | | | |
| skipping to change at line 99 | | skipping to change at line 100 | |
| | | | |
| // These should / could be private but they are used directly by the ext
ernal daemon | | // These should / could be private but they are used directly by the ext
ernal daemon | |
| TFileCollection *GetDataSet(const char *group, const char *user, const c
har *dsName, | | TFileCollection *GetDataSet(const char *group, const char *user, const c
har *dsName, | |
| UInt_t option = 0, TMD5 **checksum = 0); | | UInt_t option = 0, TMD5 **checksum = 0); | |
| TMap *GetDataSets(const char *group, const char *user, const
char *dsName = 0, | | TMap *GetDataSets(const char *group, const char *user, const
char *dsName = 0, | |
| UInt_t option = 0); | | UInt_t option = 0); | |
| const char *GetMSSUrl() const { return fMSSUrl; } | | const char *GetMSSUrl() const { return fMSSUrl; } | |
| const char *GetStageOpts() const { return fStageOpts; } | | const char *GetStageOpts() const { return fStageOpts; } | |
| Int_t WriteDataSet(const char *group, const char *user, const
char *dsName, | | Int_t WriteDataSet(const char *group, const char *user, const
char *dsName, | |
| TFileCollection *dataset, UInt_t option =
0, TMD5 *checksum = 0); | | TFileCollection *dataset, UInt_t option =
0, TMD5 *checksum = 0); | |
|
| | | Long_t GetModTime(const char *uri); | |
| | | | |
| ClassDef(TDataSetManagerFile, 0) // DataSet manager for files | | ClassDef(TDataSetManagerFile, 0) // DataSet manager for files | |
| }; | | }; | |
| | | | |
| #endif | | #endif | |
| | | | |
End of changes. 5 change blocks. |
| 3 lines changed or deleted | | 5 lines changed or added | |
|
| TGLUtil.h | | TGLUtil.h | |
|
| // @(#)root/gl:$Id: TGLUtil.h 46586 2012-10-16 20:43:26Z matevz $ | | // @(#)root/gl:$Id: TGLUtil.h 47130 2012-11-09 03:05:52Z matevz $ | |
| // Author: Richard Maunder 25/05/2005 | | // Author: Richard Maunder 25/05/2005 | |
| | | | |
| /************************************************************************* | | /************************************************************************* | |
| * Copyright (C) 1995-2004, Rene Brun and Fons Rademakers. * | | * Copyright (C) 1995-2004, Rene Brun and Fons Rademakers. * | |
| * All rights reserved. * | | * All rights reserved. * | |
| * * | | * * | |
| * For the licensing terms see $ROOTSYS/LICENSE. * | | * For the licensing terms see $ROOTSYS/LICENSE. * | |
| * For the list of contributors see $ROOTSYS/README/CREDITS. * | | * For the list of contributors see $ROOTSYS/README/CREDITS. * | |
| *************************************************************************/ | | *************************************************************************/ | |
| | | | |
| | | | |
| skipping to change at line 924 | | skipping to change at line 924 | |
| static UInt_t fgDefaultDrawQuality; | | static UInt_t fgDefaultDrawQuality; | |
| static UInt_t fgDrawQuality; | | static UInt_t fgDrawQuality; | |
| | | | |
| static UInt_t fgColorLockCount; | | static UInt_t fgColorLockCount; | |
| | | | |
| static Float_t fgPointSize; | | static Float_t fgPointSize; | |
| static Float_t fgLineWidth; | | static Float_t fgLineWidth; | |
| static Float_t fgPointSizeScale; | | static Float_t fgPointSizeScale; | |
| static Float_t fgLineWidthScale; | | static Float_t fgLineWidthScale; | |
| | | | |
|
| | | static Float_t fgScreenScalingFactor; | |
| | | static Float_t fgPointLineScalingFactor; | |
| | | static Int_t fgPickingRadius; | |
| | | | |
| TGLUtil(const TGLUtil&); // Not implemented. | | TGLUtil(const TGLUtil&); // Not implemented. | |
| TGLUtil& operator=(const TGLUtil&); // Not implemented. | | TGLUtil& operator=(const TGLUtil&); // Not implemented. | |
| | | | |
| public: | | public: | |
| virtual ~TGLUtil() {} | | virtual ~TGLUtil() {} | |
|
| | | static void InitializeIfNeeded(); | |
| | | | |
| // Error checking | | // Error checking | |
| static Int_t CheckError(const char * loc); | | static Int_t CheckError(const char * loc); | |
| | | | |
| // Polygon tesselator for direct drawing | | // Polygon tesselator for direct drawing | |
| static GLUtesselator* GetDrawTesselator3fv(); | | static GLUtesselator* GetDrawTesselator3fv(); | |
| static GLUtesselator* GetDrawTesselator4fv(); | | static GLUtesselator* GetDrawTesselator4fv(); | |
| static GLUtesselator* GetDrawTesselator3dv(); | | static GLUtesselator* GetDrawTesselator3dv(); | |
| static GLUtesselator* GetDrawTesselator4dv(); | | static GLUtesselator* GetDrawTesselator4dv(); | |
| | | | |
| | | | |
| skipping to change at line 967 | | skipping to change at line 972 | |
| static void ColorTransparency(Color_t color_index, Char_t transparency=0
); | | static void ColorTransparency(Color_t color_index, Char_t transparency=0
); | |
| static void Color3ub(UChar_t r, UChar_t g, UChar_t b); | | static void Color3ub(UChar_t r, UChar_t g, UChar_t b); | |
| static void Color4ub(UChar_t r, UChar_t g, UChar_t b, UChar_t a); | | static void Color4ub(UChar_t r, UChar_t g, UChar_t b, UChar_t a); | |
| static void Color3ubv(const UChar_t* rgb); | | static void Color3ubv(const UChar_t* rgb); | |
| static void Color4ubv(const UChar_t* rgba); | | static void Color4ubv(const UChar_t* rgba); | |
| static void Color3f(Float_t r, Float_t g, Float_t b); | | static void Color3f(Float_t r, Float_t g, Float_t b); | |
| static void Color4f(Float_t r, Float_t g, Float_t b, Float_t a); | | static void Color4f(Float_t r, Float_t g, Float_t b, Float_t a); | |
| static void Color3fv(const Float_t* rgb); | | static void Color3fv(const Float_t* rgb); | |
| static void Color4fv(const Float_t* rgba); | | static void Color4fv(const Float_t* rgba); | |
| | | | |
|
| | | // Coordinate conversion and extra scaling (needed for osx retina) | |
| | | static void PointToViewport(Int_t& x, Int_t& y); | |
| | | static void PointToViewport(Int_t& x, Int_t& y, Int_t& w, Int_t& h); | |
| | | static Float_t GetScreenScalingFactor(); | |
| | | static Float_t GetPointLineScalingFactor(); | |
| | | static Int_t GetPickingRadius(); | |
| | | | |
| static Float_t GetPointSizeScale(); | | static Float_t GetPointSizeScale(); | |
| static void SetPointSizeScale(Float_t scale); | | static void SetPointSizeScale(Float_t scale); | |
| static Float_t GetLineWidthScale(); | | static Float_t GetLineWidthScale(); | |
| static void SetLineWidthScale(Float_t scale); | | static void SetLineWidthScale(Float_t scale); | |
| | | | |
| static void PointSize(Float_t point_size); | | static void PointSize(Float_t point_size); | |
| static void LineWidth(Float_t line_width); | | static void LineWidth(Float_t line_width); | |
| | | | |
| static Float_t PointSize(); | | static Float_t PointSize(); | |
| static Float_t LineWidth(); | | static Float_t LineWidth(); | |
| | | | |
End of changes. 4 change blocks. |
| 1 lines changed or deleted | | 13 lines changed or added | |
|
| TGX11.h | | TGX11.h | |
|
| // @(#)root/x11:$Id: TGX11.h 37734 2011-01-07 09:53:54Z rdm $ | | // @(#)root/x11:$Id: TGX11.h 47117 2012-11-08 16:14:55Z couet $ | |
| // Author: Rene Brun, Olivier Couet, Fons Rademakers 28/11/94 | | // Author: Rene Brun, Olivier Couet, Fons Rademakers 28/11/94 | |
| | | | |
| /************************************************************************* | | /************************************************************************* | |
| * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * | | * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * | |
| * All rights reserved. * | | * All rights reserved. * | |
| * * | | * * | |
| * For the licensing terms see $ROOTSYS/LICENSE. * | | * For the licensing terms see $ROOTSYS/LICENSE. * | |
| * For the list of contributors see $ROOTSYS/README/CREDITS. * | | * For the list of contributors see $ROOTSYS/README/CREDITS. * | |
| *************************************************************************/ | | *************************************************************************/ | |
| | | | |
| | | | |
| skipping to change at line 192 | | skipping to change at line 192 | |
| void ClosePixmap(); | | void ClosePixmap(); | |
| void CloseWindow(); | | void CloseWindow(); | |
| void CopyPixmap(Int_t wid, Int_t xpos, Int_t ypos); | | void CopyPixmap(Int_t wid, Int_t xpos, Int_t ypos); | |
| void DrawBox(Int_t x1, Int_t y1, Int_t x2, Int_t y2, EBoxMode mode)
; | | void DrawBox(Int_t x1, Int_t y1, Int_t x2, Int_t y2, EBoxMode mode)
; | |
| void DrawCellArray(Int_t x1, Int_t y1, Int_t x2, Int_t y2, Int_t nx
, Int_t ny, Int_t *ic); | | void DrawCellArray(Int_t x1, Int_t y1, Int_t x2, Int_t y2, Int_t nx
, Int_t ny, Int_t *ic); | |
| void DrawFillArea(Int_t n, TPoint *xy); | | void DrawFillArea(Int_t n, TPoint *xy); | |
| void DrawLine(Int_t x1, Int_t y1, Int_t x2, Int_t y2); | | void DrawLine(Int_t x1, Int_t y1, Int_t x2, Int_t y2); | |
| void DrawPolyLine(Int_t n, TPoint *xy); | | void DrawPolyLine(Int_t n, TPoint *xy); | |
| void DrawPolyMarker(Int_t n, TPoint *xy); | | void DrawPolyMarker(Int_t n, TPoint *xy); | |
| virtual void DrawText(Int_t x, Int_t y, Float_t angle, Float_t mgn, cons
t char *text, ETextMode mode); | | virtual void DrawText(Int_t x, Int_t y, Float_t angle, Float_t mgn, cons
t char *text, ETextMode mode); | |
|
| | | virtual void DrawText(Int_t, Int_t, Float_t, Float_t, const wchar_t *, E
TextMode) {} | |
| void GetCharacterUp(Float_t &chupx, Float_t &chupy); | | void GetCharacterUp(Float_t &chupx, Float_t &chupy); | |
| Int_t GetDoubleBuffer(Int_t wid); | | Int_t GetDoubleBuffer(Int_t wid); | |
| void GetGeometry(Int_t wid, Int_t &x, Int_t &y, UInt_t &w, UInt_t &
h); | | void GetGeometry(Int_t wid, Int_t &x, Int_t &y, UInt_t &w, UInt_t &
h); | |
| const char *DisplayName(const char *dpyName = 0); | | const char *DisplayName(const char *dpyName = 0); | |
| Handle_t GetNativeEvent() const { return (Handle_t) fXEvent; } | | Handle_t GetNativeEvent() const { return (Handle_t) fXEvent; } | |
| ULong_t GetPixel(Color_t cindex); | | ULong_t GetPixel(Color_t cindex); | |
| void GetPlanes(Int_t &nplanes); | | void GetPlanes(Int_t &nplanes); | |
| void GetRGB(Int_t index, Float_t &r, Float_t &g, Float_t &b); | | void GetRGB(Int_t index, Float_t &r, Float_t &g, Float_t &b); | |
| virtual void GetTextExtent(UInt_t &w, UInt_t &h, char *mess); | | virtual void GetTextExtent(UInt_t &w, UInt_t &h, char *mess); | |
|
| | | virtual void GetTextExtent(UInt_t &, UInt_t &, wchar_t *){} | |
| Float_t GetTextMagnitude() { return fTextMagnitude; } | | Float_t GetTextMagnitude() { return fTextMagnitude; } | |
| Window_t GetWindowID(Int_t wid); | | Window_t GetWindowID(Int_t wid); | |
| Bool_t HasTTFonts() const { return fHasTTFonts; } | | Bool_t HasTTFonts() const { return fHasTTFonts; } | |
| Int_t InitWindow(ULong_t window); | | Int_t InitWindow(ULong_t window); | |
| Int_t AddWindow(ULong_t qwid, UInt_t w, UInt_t h); | | Int_t AddWindow(ULong_t qwid, UInt_t w, UInt_t h); | |
| Int_t AddPixmap(ULong_t pixid, UInt_t w, UInt_t h); | | Int_t AddPixmap(ULong_t pixid, UInt_t w, UInt_t h); | |
| void RemoveWindow(ULong_t qwid); | | void RemoveWindow(ULong_t qwid); | |
| void MoveWindow(Int_t wid, Int_t x, Int_t y); | | void MoveWindow(Int_t wid, Int_t x, Int_t y); | |
| Int_t OpenDisplay(Display *display); | | Int_t OpenDisplay(Display *display); | |
| Int_t OpenPixmap(UInt_t w, UInt_t h); | | Int_t OpenPixmap(UInt_t w, UInt_t h); | |
| | | | |
End of changes. 3 change blocks. |
| 1 lines changed or deleted | | 3 lines changed or added | |
|
| TGeoPcon.h | | TGeoPcon.h | |
|
| // @(#)root/geom:$Id: TGeoPcon.h 24879 2008-07-18 08:04:40Z brun $ | | // @(#)root/geom:$Id: TGeoPcon.h 47063 2012-11-06 15:45:17Z agheata $ | |
| // Author: Andrei Gheata 24/10/01 | | // Author: Andrei Gheata 24/10/01 | |
| | | | |
| /************************************************************************* | | /************************************************************************* | |
| * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * | | * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * | |
| * All rights reserved. * | | * All rights reserved. * | |
| * * | | * * | |
| * For the licensing terms see $ROOTSYS/LICENSE. * | | * For the licensing terms see $ROOTSYS/LICENSE. * | |
| * For the list of contributors see $ROOTSYS/README/CREDITS. * | | * For the list of contributors see $ROOTSYS/README/CREDITS. * | |
| *************************************************************************/ | | *************************************************************************/ | |
| | | | |
| | | | |
| skipping to change at line 34 | | skipping to change at line 34 | |
| // - the number of z planes (at least two) where the inner/outer
// | | // - the number of z planes (at least two) where the inner/outer
// | |
| // radii are changing;
// | | // radii are changing;
// | |
| // - z coordinate, inner and outer radius for each z plane
// | | // - z coordinate, inner and outer radius for each z plane
// | |
| //
// | | //
// | |
| ///////////////////////////////////////////////////////////////////////////
/// | | ///////////////////////////////////////////////////////////////////////////
/// | |
| | | | |
| class TGeoPcon : public TGeoBBox | | class TGeoPcon : public TGeoBBox | |
| { | | { | |
| protected: | | protected: | |
| // data members | | // data members | |
|
| Int_t fNz; // number of z planes (at least two) | | Int_t fNz; // number of z planes (at least two) | |
| Double_t fPhi1; // lower phi limit | | Double_t fPhi1; // lower phi limit (converted to [0,2*pi | |
| Double_t fDphi; // phi range | | ) | |
| Double_t *fRmin; //[fNz] pointer to array of inner radii | | Double_t fDphi; // phi range | |
| Double_t *fRmax; //[fNz] pointer to array of outer radii | | Double_t *fRmin; //[fNz] pointer to array of inner radii | |
| Double_t *fZ; //[fNz] pointer to array of Z planes posit | | Double_t *fRmax; //[fNz] pointer to array of outer radii | |
| ions | | Double_t *fZ; //[fNz] pointer to array of Z planes pos | |
| | | itions | |
| | | Bool_t fFullPhi; //! Full phi range flag | |
| | | Double_t fC1; //! Cosine of phi1 | |
| | | Double_t fS1; //! Sine of phi1 | |
| | | Double_t fC2; //! Cosine of phi1+dphi | |
| | | Double_t fS2; //! Sine of phi1+dphi | |
| | | Double_t fCm; //! Cosine of (phi1+phi2)/2 | |
| | | Double_t fSm; //! Sine of (phi1+phi2)/2 | |
| | | Double_t fCdphi; //! Cosine of dphi | |
| | | | |
| // methods | | // methods | |
| TGeoPcon(const TGeoPcon&); | | TGeoPcon(const TGeoPcon&); | |
| TGeoPcon& operator=(const TGeoPcon&); | | TGeoPcon& operator=(const TGeoPcon&); | |
| | | | |
| public: | | public: | |
| // constructors | | // constructors | |
| TGeoPcon(); | | TGeoPcon(); | |
| TGeoPcon(Double_t phi, Double_t dphi, Int_t nz); | | TGeoPcon(Double_t phi, Double_t dphi, Int_t nz); | |
| TGeoPcon(const char *name, Double_t phi, Double_t dphi, Int_t nz); | | TGeoPcon(const char *name, Double_t phi, Double_t dphi, Int_t nz); | |
| | | | |
| skipping to change at line 63 | | skipping to change at line 71 | |
| // methods | | // methods | |
| virtual Double_t Capacity() const; | | virtual Double_t Capacity() const; | |
| virtual void ComputeBBox(); | | virtual void ComputeBBox(); | |
| virtual void ComputeNormal(Double_t *point, Double_t *dir, Doub
le_t *norm); | | virtual void ComputeNormal(Double_t *point, Double_t *dir, Doub
le_t *norm); | |
| virtual Bool_t Contains(Double_t *point) const; | | virtual Bool_t Contains(Double_t *point) const; | |
| virtual void DefineSection(Int_t snum, Double_t z, Double_t rmi
n, Double_t rmax); | | virtual void DefineSection(Int_t snum, Double_t z, Double_t rmi
n, Double_t rmax); | |
| virtual Double_t DistFromInside(Double_t *point, Double_t *dir, Int
_t iact=1, | | virtual Double_t DistFromInside(Double_t *point, Double_t *dir, Int
_t iact=1, | |
| Double_t step=TGeoShape::Big(), Double_t
*safe=0) const; | | Double_t step=TGeoShape::Big(), Double_t
*safe=0) const; | |
| virtual Double_t DistFromOutside(Double_t *point, Double_t *dir, In
t_t iact=1, | | virtual Double_t DistFromOutside(Double_t *point, Double_t *dir, In
t_t iact=1, | |
| Double_t step=TGeoShape::Big(), Double_t
*safe=0) const; | | Double_t step=TGeoShape::Big(), Double_t
*safe=0) const; | |
|
| Double_t DistToSegZ(Double_t *point, Double_t *dir, Int_t & | | Double_t DistToSegZ(Double_t *point, Double_t *dir, Int_t & | |
| iz, Double_t c1, Double_t s1, | | iz) const; | |
| Double_t c2, Double_t s2, Double_t cfio | | | |
| , Double_t sfio, Double_t cdfi) const; | | | |
| virtual Int_t DistancetoPrimitive(Int_t px, Int_t py); | | virtual Int_t DistancetoPrimitive(Int_t px, Int_t py); | |
| virtual TGeoVolume *Divide(TGeoVolume *voldiv, const char *divname, In
t_t iaxis, Int_t ndiv, | | virtual TGeoVolume *Divide(TGeoVolume *voldiv, const char *divname, In
t_t iaxis, Int_t ndiv, | |
| Double_t start, Double_t step); | | Double_t start, Double_t step); | |
| virtual const char *GetAxisName(Int_t iaxis) const; | | virtual const char *GetAxisName(Int_t iaxis) const; | |
| virtual Double_t GetAxisRange(Int_t iaxis, Double_t &xlo, Double_t
&xhi) const; | | virtual Double_t GetAxisRange(Int_t iaxis, Double_t &xlo, Double_t
&xhi) const; | |
| virtual void GetBoundingCylinder(Double_t *param) const; | | virtual void GetBoundingCylinder(Double_t *param) const; | |
| virtual const TBuffer3D &GetBuffer3D(Int_t reqSections, Bool_t localFram
e) const; | | virtual const TBuffer3D &GetBuffer3D(Int_t reqSections, Bool_t localFram
e) const; | |
| virtual Int_t GetByteCount() const {return 60+12*fNz;} | | virtual Int_t GetByteCount() const {return 60+12*fNz;} | |
| Double_t GetPhi1() const {return fPhi1;} | | Double_t GetPhi1() const {return fPhi1;} | |
| Double_t GetDphi() const {return fDphi;} | | Double_t GetDphi() const {return fDphi;} | |
| | | | |
End of changes. 3 change blocks. |
| 12 lines changed or deleted | | 19 lines changed or added | |
|
| TPad.h | | TPad.h | |
|
| // @(#)root/gpad:$Id: TPad.h 43408 2012-03-20 13:02:53Z couet $ | | // @(#)root/gpad:$Id: TPad.h 47117 2012-11-08 16:14:55Z couet $ | |
| // Author: Rene Brun 12/12/94 | | // Author: Rene Brun 12/12/94 | |
| | | | |
| /************************************************************************* | | /************************************************************************* | |
| * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * | | * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * | |
| * All rights reserved. * | | * All rights reserved. * | |
| * * | | * * | |
| * For the licensing terms see $ROOTSYS/LICENSE. * | | * For the licensing terms see $ROOTSYS/LICENSE. * | |
| * For the list of contributors see $ROOTSYS/README/CREDITS. * | | * For the list of contributors see $ROOTSYS/README/CREDITS. * | |
| *************************************************************************/ | | *************************************************************************/ | |
| | | | |
| | | | |
| skipping to change at line 129 | | skipping to change at line 129 | |
| // 3D Viewer support | | // 3D Viewer support | |
| TVirtualViewer3D *fViewer3D; //! Current 3D viewer | | TVirtualViewer3D *fViewer3D; //! Current 3D viewer | |
| | | | |
| void DestroyExternalViewer3D(); | | void DestroyExternalViewer3D(); | |
| virtual Int_t DistancetoPrimitive(Int_t px, Int_t py); | | virtual Int_t DistancetoPrimitive(Int_t px, Int_t py); | |
| virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py); | | virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py); | |
| virtual void HideToolTip(Int_t event); | | virtual void HideToolTip(Int_t event); | |
| void PaintBorder(Color_t color, Bool_t tops); | | void PaintBorder(Color_t color, Bool_t tops); | |
| virtual void PaintBorderPS(Double_t xl,Double_t yl,Double_t xt,Double_t
yt,Int_t bmode,Int_t bsize,Int_t dark,Int_t light); | | virtual void PaintBorderPS(Double_t xl,Double_t yl,Double_t xt,Double_t
yt,Int_t bmode,Int_t bsize,Int_t dark,Int_t light); | |
| void PaintDate(); | | void PaintDate(); | |
|
| virtual void SavePrimitive(ostream &out, Option_t *option = ""); | | virtual void SavePrimitive(std::ostream &out, Option_t *option = ""); | |
| virtual void SetBatch(Bool_t batch=kTRUE); | | virtual void SetBatch(Bool_t batch=kTRUE); | |
| | | | |
| private: | | private: | |
| TPad(const TPad &pad); // cannot copy pads, use TObject::Clone() | | TPad(const TPad &pad); // cannot copy pads, use TObject::Clone() | |
| TPad &operator=(const TPad &rhs); // idem | | TPad &operator=(const TPad &rhs); // idem | |
| | | | |
| void CopyBackgroundPixmap(Int_t x, Int_t y); | | void CopyBackgroundPixmap(Int_t x, Int_t y); | |
| void CopyBackgroundPixmaps(TPad *start, TPad *stop, Int_t x, Int_t y); | | void CopyBackgroundPixmaps(TPad *start, TPad *stop, Int_t x, Int_t y); | |
| | | | |
| public: | | public: | |
| | | | |
| skipping to change at line 286 | | skipping to change at line 286 | |
| void PaintLine3D(Float_t *p1, Float_t *p2); | | void PaintLine3D(Float_t *p1, Float_t *p2); | |
| void PaintLine3D(Double_t *p1, Double_t *p2); | | void PaintLine3D(Double_t *p1, Double_t *p2); | |
| void PaintPolyLine(Int_t n, Float_t *x, Float_t *y, Option_
t *option=""); | | void PaintPolyLine(Int_t n, Float_t *x, Float_t *y, Option_
t *option=""); | |
| void PaintPolyLine(Int_t n, Double_t *x, Double_t *y, Optio
n_t *option=""); | | void PaintPolyLine(Int_t n, Double_t *x, Double_t *y, Optio
n_t *option=""); | |
| void PaintPolyLine3D(Int_t n, Double_t *p); | | void PaintPolyLine3D(Int_t n, Double_t *p); | |
| void PaintPolyLineNDC(Int_t n, Double_t *x, Double_t *y, Op
tion_t *option=""); | | void PaintPolyLineNDC(Int_t n, Double_t *x, Double_t *y, Op
tion_t *option=""); | |
| void PaintPolyMarker(Int_t n, Float_t *x, Float_t *y, Optio
n_t *option=""); | | void PaintPolyMarker(Int_t n, Float_t *x, Float_t *y, Optio
n_t *option=""); | |
| void PaintPolyMarker(Int_t n, Double_t *x, Double_t *y, Opt
ion_t *option=""); | | void PaintPolyMarker(Int_t n, Double_t *x, Double_t *y, Opt
ion_t *option=""); | |
| virtual void PaintModified(); | | virtual void PaintModified(); | |
| void PaintText(Double_t x, Double_t y, const char *text); | | void PaintText(Double_t x, Double_t y, const char *text); | |
|
| | | void PaintText(Double_t x, Double_t y, const wchar_t *text)
; | |
| void PaintTextNDC(Double_t u, Double_t v, const char *text)
; | | void PaintTextNDC(Double_t u, Double_t v, const char *text)
; | |
|
| | | void PaintTextNDC(Double_t u, Double_t v, const wchar_t *te
xt); | |
| virtual TPad *Pick(Int_t px, Int_t py, TObjLink *&pickobj); | | virtual TPad *Pick(Int_t px, Int_t py, TObjLink *&pickobj); | |
| Double_t PixeltoX(Int_t px); | | Double_t PixeltoX(Int_t px); | |
| Double_t PixeltoY(Int_t py); | | Double_t PixeltoY(Int_t py); | |
| virtual void PixeltoXY(Int_t xpixel, Int_t ypixel, Double_t &x, Dou
ble_t &y); | | virtual void PixeltoXY(Int_t xpixel, Int_t ypixel, Double_t &x, Dou
ble_t &y); | |
| virtual void Pop(); // *MENU* | | virtual void Pop(); // *MENU* | |
| virtual void Print(const char *filename="") const; | | virtual void Print(const char *filename="") const; | |
| virtual void Print(const char *filename, Option_t *option); | | virtual void Print(const char *filename, Option_t *option); | |
| virtual void Range(Double_t x1, Double_t y1, Double_t x2, Double_t
y2); // *MENU* *ARGS={x1=>fX1,y1=>fY1,x2=>fX2,y2=>fY2} | | virtual void Range(Double_t x1, Double_t y1, Double_t x2, Double_t
y2); // *MENU* *ARGS={x1=>fX1,y1=>fY1,x2=>fX2,y2=>fY2} | |
| virtual void RangeChanged() { Emit("RangeChanged()"); } // *SIGNAL* | | virtual void RangeChanged() { Emit("RangeChanged()"); } // *SIGNAL* | |
| virtual void RangeAxis(Double_t xmin, Double_t ymin, Double_t xmax,
Double_t ymax); | | virtual void RangeAxis(Double_t xmin, Double_t ymin, Double_t xmax,
Double_t ymax); | |
| | | | |
End of changes. 4 change blocks. |
| 2 lines changed or deleted | | 4 lines changed or added | |
|
| TPostScript.h | | TPostScript.h | |
|
| // @(#)root/postscript:$Id: TPostScript.h 23936 2008-05-20 16:00:26Z couet
$ | | // @(#)root/postscript:$Id: TPostScript.h 47117 2012-11-08 16:14:55Z couet
$ | |
| // Author: O.Couet 16/07/99 | | // Author: O.Couet 16/07/99 | |
| | | | |
| /************************************************************************* | | /************************************************************************* | |
| * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * | | * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * | |
| * All rights reserved. * | | * All rights reserved. * | |
| * * | | * * | |
| * For the licensing terms see $ROOTSYS/LICENSE. * | | * For the licensing terms see $ROOTSYS/LICENSE. * | |
| * For the list of contributors see $ROOTSYS/README/CREDITS. * | | * For the list of contributors see $ROOTSYS/README/CREDITS. * | |
| *************************************************************************/ | | *************************************************************************/ | |
| | | | |
| | | | |
| skipping to change at line 87 | | skipping to change at line 87 | |
| Bool_t fZone; //Zone indicator | | Bool_t fZone; //Zone indicator | |
| char fPatterns[32]; //Indicate if pattern n is defined | | char fPatterns[32]; //Indicate if pattern n is defined | |
| Int_t fNbinCT; //Number of entries in the current Cell Array | | Int_t fNbinCT; //Number of entries in the current Cell Array | |
| Int_t fNbCellW; //Number of boxes per line | | Int_t fNbCellW; //Number of boxes per line | |
| Int_t fNbCellLine; //Number of boxes in the current line | | Int_t fNbCellLine; //Number of boxes in the current line | |
| Int_t fMaxLines; //Maximum number of lines in a PS array | | Int_t fMaxLines; //Maximum number of lines in a PS array | |
| Int_t fLastCellRed; //Last red value | | Int_t fLastCellRed; //Last red value | |
| Int_t fLastCellGreen; //Last green value | | Int_t fLastCellGreen; //Last green value | |
| Int_t fLastCellBlue; //Last blue value | | Int_t fLastCellBlue; //Last blue value | |
| Int_t fNBSameColorCell; //Number of boxes with the same color | | Int_t fNBSameColorCell; //Number of boxes with the same color | |
|
| | | TString fFileName; //PS file name | |
| | | Bool_t fFontEmbed; //True is FontEmbed has been called | |
| | | | |
| static Int_t fgLineJoin; //Appearance of joining lines | | static Int_t fgLineJoin; //Appearance of joining lines | |
| | | | |
| public: | | public: | |
| TPostScript(); | | TPostScript(); | |
| TPostScript(const char *filename, Int_t type=-111); | | TPostScript(const char *filename, Int_t type=-111); | |
| virtual ~TPostScript(); | | virtual ~TPostScript(); | |
| | | | |
| void CellArrayBegin(Int_t W, Int_t H, Double_t x1, Double_t x2, | | void CellArrayBegin(Int_t W, Int_t H, Double_t x1, Double_t x2, | |
| Double_t y1, Double_t y2); | | Double_t y1, Double_t y2); | |
| | | | |
| skipping to change at line 115 | | skipping to change at line 117 | |
| void DrawHatch(Float_t dy, Float_t angle, Int_t n, Float_t *x, | | void DrawHatch(Float_t dy, Float_t angle, Int_t n, Float_t *x, | |
| Float_t *y); | | Float_t *y); | |
| void DrawHatch(Float_t dy, Float_t angle, Int_t n, Double_t *x, | | void DrawHatch(Float_t dy, Float_t angle, Int_t n, Double_t *x, | |
| Double_t *y); | | Double_t *y); | |
| void DrawPolyLine(Int_t n, TPoints *xy); | | void DrawPolyLine(Int_t n, TPoints *xy); | |
| void DrawPolyLineNDC(Int_t n, TPoints *uv); | | void DrawPolyLineNDC(Int_t n, TPoints *uv); | |
| void DrawPolyMarker(Int_t n, Float_t *x, Float_t *y); | | void DrawPolyMarker(Int_t n, Float_t *x, Float_t *y); | |
| void DrawPolyMarker(Int_t n, Double_t *x, Double_t *y); | | void DrawPolyMarker(Int_t n, Double_t *x, Double_t *y); | |
| void DrawPS(Int_t n, Float_t *xw, Float_t *yw); | | void DrawPS(Int_t n, Float_t *xw, Float_t *yw); | |
| void DrawPS(Int_t n, Double_t *xw, Double_t *yw); | | void DrawPS(Int_t n, Double_t *xw, Double_t *yw); | |
|
| | | bool FontEmbedType1(const char *filename); | |
| | | bool FontEmbedType2(const char *filename); | |
| | | bool FontEmbedType42(const char *filename); | |
| | | void FontEmbed(); | |
| void FontEncode(); | | void FontEncode(); | |
| void Initialize(); | | void Initialize(); | |
| void NewPage(); | | void NewPage(); | |
| void Off(); | | void Off(); | |
| void On(); | | void On(); | |
| void Open(const char *filename, Int_t type=-111); | | void Open(const char *filename, Int_t type=-111); | |
| void SaveRestore(Int_t flag); | | void SaveRestore(Int_t flag); | |
| void SetFillColor( Color_t cindex=1); | | void SetFillColor( Color_t cindex=1); | |
| void SetFillPatterns(Int_t ipat, Int_t color); | | void SetFillPatterns(Int_t ipat, Int_t color); | |
| void SetLineColor( Color_t cindex=1); | | void SetLineColor( Color_t cindex=1); | |
| | | | |
| skipping to change at line 136 | | skipping to change at line 142 | |
| void SetLineStyle(Style_t linestyle = 1); | | void SetLineStyle(Style_t linestyle = 1); | |
| void SetLineWidth(Width_t linewidth = 1); | | void SetLineWidth(Width_t linewidth = 1); | |
| void SetLineScale(Float_t scale=3) {fLineScale = scale;} | | void SetLineScale(Float_t scale=3) {fLineScale = scale;} | |
| void SetMarkerColor( Color_t cindex=1); | | void SetMarkerColor( Color_t cindex=1); | |
| void SetTextColor( Color_t cindex=1); | | void SetTextColor( Color_t cindex=1); | |
| void MovePS(Int_t x, Int_t y); | | void MovePS(Int_t x, Int_t y); | |
| void Range(Float_t xrange, Float_t yrange); | | void Range(Float_t xrange, Float_t yrange); | |
| void SetColor(Int_t color = 1); | | void SetColor(Int_t color = 1); | |
| void SetColor(Float_t r, Float_t g, Float_t b); | | void SetColor(Float_t r, Float_t g, Float_t b); | |
| void Text(Double_t x, Double_t y, const char *string); | | void Text(Double_t x, Double_t y, const char *string); | |
|
| | | void Text(Double_t x, Double_t y, const wchar_t *string); | |
| void TextNDC(Double_t u, Double_t v, const char *string); | | void TextNDC(Double_t u, Double_t v, const char *string); | |
|
| | | void TextNDC(Double_t u, Double_t v, const wchar_t *string); | |
| Int_t UtoPS(Double_t u); | | Int_t UtoPS(Double_t u); | |
| Int_t VtoPS(Double_t v); | | Int_t VtoPS(Double_t v); | |
| Int_t XtoPS(Double_t x); | | Int_t XtoPS(Double_t x); | |
| Int_t YtoPS(Double_t y); | | Int_t YtoPS(Double_t y); | |
| void Zone(); | | void Zone(); | |
| | | | |
| ClassDef(TPostScript,0) //PostScript driver | | ClassDef(TPostScript,0) //PostScript driver | |
| }; | | }; | |
| | | | |
| #endif | | #endif | |
| | | | |
End of changes. 5 change blocks. |
| 1 lines changed or deleted | | 9 lines changed or added | |
|
| TProof.h | | TProof.h | |
|
| // @(#)root/proof:$Id: TProof.h 45751 2012-08-30 10:28:19Z ganis $ | | // @(#)root/proof:$Id: TProof.h 48061 2012-12-15 19:46:14Z ganis $ | |
| // Author: Fons Rademakers 13/02/97 | | // Author: Fons Rademakers 13/02/97 | |
| | | | |
| /************************************************************************* | | /************************************************************************* | |
| * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * | | * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * | |
| * All rights reserved. * | | * All rights reserved. * | |
| * * | | * * | |
| * For the licensing terms see $ROOTSYS/LICENSE. * | | * For the licensing terms see $ROOTSYS/LICENSE. * | |
| * For the list of contributors see $ROOTSYS/README/CREDITS. * | | * For the list of contributors see $ROOTSYS/README/CREDITS. * | |
| *************************************************************************/ | | *************************************************************************/ | |
| | | | |
| | | | |
| skipping to change at line 99 | | skipping to change at line 99 | |
| class TQueryResult; | | class TQueryResult; | |
| class TSignalHandler; | | class TSignalHandler; | |
| class TSlave; | | class TSlave; | |
| class TSemaphore; | | class TSemaphore; | |
| class TSocket; | | class TSocket; | |
| class TTree; | | class TTree; | |
| class TVirtualMutex; | | class TVirtualMutex; | |
| class TFileCollection; | | class TFileCollection; | |
| class TMap; | | class TMap; | |
| class TDataSetManager; | | class TDataSetManager; | |
|
| | | class TDataSetManagerFile; | |
| class TMacro; | | class TMacro; | |
| class TSelector; | | class TSelector; | |
| | | | |
| // protocol changes: | | // protocol changes: | |
| // 1 -> 2: new arguments for Process() command, option added | | // 1 -> 2: new arguments for Process() command, option added | |
| // 2 -> 3: package manager enabling protocol changed | | // 2 -> 3: package manager enabling protocol changed | |
| // 3 -> 4: introduction of multi-level-master support | | // 3 -> 4: introduction of multi-level-master support | |
| // 4 -> 5: added friends support | | // 4 -> 5: added friends support | |
| // 5 -> 6: drop TFTP, support for asynchronous queries | | // 5 -> 6: drop TFTP, support for asynchronous queries | |
| // 6 -> 7: support for multisessions, archieve, retrieve, ... | | // 6 -> 7: support for multisessions, archieve, retrieve, ... | |
| | | | |
| skipping to change at line 138 | | skipping to change at line 139 | |
| // 25 -> 26: Use new TProofProgressInfo class | | // 25 -> 26: Use new TProofProgressInfo class | |
| // 26 -> 27: Use new file for updating the session status | | // 26 -> 27: Use new file for updating the session status | |
| // 27 -> 28: Support for multi-datasets, fix global pack dirs, fix AskStati
stics, | | // 27 -> 28: Support for multi-datasets, fix global pack dirs, fix AskStati
stics, | |
| // package download, dataset caching | | // package download, dataset caching | |
| // 28 -> 29: Support for config parameters in EnablePackage, idle-timeout | | // 28 -> 29: Support for config parameters in EnablePackage, idle-timeout | |
| // 29 -> 30: Add information about data dir in TSlaveInfo | | // 29 -> 30: Add information about data dir in TSlaveInfo | |
| // 30 -> 31: Development cycle 5.29 | | // 30 -> 31: Development cycle 5.29 | |
| // 31 -> 32: New log path trasmission | | // 31 -> 32: New log path trasmission | |
| // 32 -> 33: Development cycle 5.29/04 (fixed worker activation, new startu
p technology, ...) | | // 32 -> 33: Development cycle 5.29/04 (fixed worker activation, new startu
p technology, ...) | |
| // 33 -> 34: Development cycle 5.33/02 (fix load issue, ...) | | // 33 -> 34: Development cycle 5.33/02 (fix load issue, ...) | |
|
| | | // 34 -> 35: Development cycle 5.99/01 (PLite on workers, staging requests
in separate dsmgr...) | |
| | | | |
| // PROOF magic constants | | // PROOF magic constants | |
| const Int_t kPROOF_Protocol = 34; // protocol versi
on number | | const Int_t kPROOF_Protocol = 34; // protocol versi
on number | |
| const Int_t kPROOF_Port = 1093; // IANA registere
d PROOF port | | const Int_t kPROOF_Port = 1093; // IANA registere
d PROOF port | |
| const char* const kPROOF_ConfFile = "proof.conf"; // default config
file | | const char* const kPROOF_ConfFile = "proof.conf"; // default config
file | |
| const char* const kPROOF_ConfDir = "/usr/local/root"; // default c
onfig dir | | const char* const kPROOF_ConfDir = "/usr/local/root"; // default c
onfig dir | |
| const char* const kPROOF_WorkDir = ".proof"; // default workin
g directory | | const char* const kPROOF_WorkDir = ".proof"; // default workin
g directory | |
| const char* const kPROOF_CacheDir = "cache"; // file cache dir
, under WorkDir | | const char* const kPROOF_CacheDir = "cache"; // file cache dir
, under WorkDir | |
| const char* const kPROOF_PackDir = "packages"; // package dir, u
nder WorkDir | | const char* const kPROOF_PackDir = "packages"; // package dir, u
nder WorkDir | |
| const char* const kPROOF_PackDownloadDir = "downloaded"; // subdir with do
wnloaded PARs, under PackDir | | const char* const kPROOF_PackDownloadDir = "downloaded"; // subdir with do
wnloaded PARs, under PackDir | |
| | | | |
| skipping to change at line 318 | | skipping to change at line 320 | |
| | | | |
| ClassDef(TMergerInfo,0) // Basic info on merger, i.e. worker se
rving as merger | | ClassDef(TMergerInfo,0) // Basic info on merger, i.e. worker se
rving as merger | |
| }; | | }; | |
| | | | |
| // Small auxilliary class for merging progress notification | | // Small auxilliary class for merging progress notification | |
| class TProofMergePrg { | | class TProofMergePrg { | |
| private: | | private: | |
| TString fExp; | | TString fExp; | |
| Int_t fIdx; | | Int_t fIdx; | |
| Int_t fNWrks; | | Int_t fNWrks; | |
|
| | | Int_t fLastNWrks; | |
| static char fgCr[4]; | | static char fgCr[4]; | |
| public: | | public: | |
|
| TProofMergePrg() : fExp(), fIdx(-1), fNWrks(-1) { } | | TProofMergePrg() : fExp(), fIdx(-1), fNWrks(-1), fLastNWrks(-1) { } | |
| | | | |
|
| const char *Export() { fExp.Form("%c (%d workers still sending) ", fg | | const char *Export(Bool_t &changed) { | |
| Cr[fIdx], fNWrks); | | fExp.Form("%c (%d workers still sending) ", fgCr[fIdx], | |
| return fExp.Data(); } | | fNWrks); | |
| | | changed = (fLastNWrks != fNWrks || fLastNWrks == -1) ? kT | |
| | | RUE : kFALSE; | |
| | | fLastNWrks = fNWrks; | |
| | | return fExp.Data(); } | |
| void DecreaseNWrks() { fNWrks--; } | | void DecreaseNWrks() { fNWrks--; } | |
| void IncreaseNWrks() { fNWrks++; } | | void IncreaseNWrks() { fNWrks++; } | |
| void IncreaseIdx() { fIdx++; if (fIdx == 4) fIdx = 0; } | | void IncreaseIdx() { fIdx++; if (fIdx == 4) fIdx = 0; } | |
| void Reset(Int_t n = -1) { fIdx = -1; SetNWrks(n); } | | void Reset(Int_t n = -1) { fIdx = -1; SetNWrks(n); } | |
| void SetNWrks(Int_t n) { fNWrks = n; } | | void SetNWrks(Int_t n) { fNWrks = n; } | |
| }; | | }; | |
| | | | |
| class TProof : public TNamed, public TQObject { | | class TProof : public TNamed, public TQObject { | |
| | | | |
| friend class TPacketizer; | | friend class TPacketizer; | |
| | | | |
| skipping to change at line 456 | | skipping to change at line 462 | |
| kGetDataSets = 3, //List datasets saved on the master node | | kGetDataSets = 3, //List datasets saved on the master node | |
| kRegisterDataSet = 4, //Save a TList object as a dataset | | kRegisterDataSet = 4, //Save a TList object as a dataset | |
| kGetDataSet = 5, //Get a TFileCollection of TFileInfo objec
ts | | kGetDataSet = 5, //Get a TFileCollection of TFileInfo objec
ts | |
| kVerifyDataSet = 6, //Try open all files from a dataset and re
port results | | kVerifyDataSet = 6, //Try open all files from a dataset and re
port results | |
| kRemoveDataSet = 7, //Remove a dataset but leave files belongi
ng to it | | kRemoveDataSet = 7, //Remove a dataset but leave files belongi
ng to it | |
| kMergeDataSet = 8, //Add new files to an existing dataset | | kMergeDataSet = 8, //Add new files to an existing dataset | |
| kShowDataSets = 9, //Shows datasets, returns formatted output | | kShowDataSets = 9, //Shows datasets, returns formatted output | |
| kGetQuota = 10, //Get quota info per group | | kGetQuota = 10, //Get quota info per group | |
| kShowQuota = 11, //Show quotas | | kShowQuota = 11, //Show quotas | |
| kSetDefaultTreeName = 12, //Set the default tree name | | kSetDefaultTreeName = 12, //Set the default tree name | |
|
| kCache = 13 //Show/clear cache | | kCache = 13, //Show/clear cache | |
| | | kRequestStaging = 14, //Request staging of a dataset | |
| | | kStagingStatus = 15 //Obtain staging status for the given data | |
| | | set | |
| }; | | }; | |
| enum ESendFileOpt { | | enum ESendFileOpt { | |
| kAscii = 0x0, | | kAscii = 0x0, | |
| kBinary = 0x1, | | kBinary = 0x1, | |
| kForce = 0x2, | | kForce = 0x2, | |
| kForward = 0x4, | | kForward = 0x4, | |
| kCpBin = 0x8, | | kCpBin = 0x8, | |
| kCp = 0x10 | | kCp = 0x10 | |
| }; | | }; | |
| enum EProofWrkListAction { | | enum EProofWrkListAction { | |
| kActivateWorker = 1, | | kActivateWorker = 1, | |
| kDeactivateWorker = 2 | | kDeactivateWorker = 2 | |
| }; | | }; | |
| enum EBuildPackageOpt { | | enum EBuildPackageOpt { | |
| kDontBuildOnClient = -2, | | kDontBuildOnClient = -2, | |
| kBuildOnSlavesNoWait = -1, | | kBuildOnSlavesNoWait = -1, | |
| kBuildAll = 0, | | kBuildAll = 0, | |
| kCollectBuildResults = 1 | | kCollectBuildResults = 1 | |
| }; | | }; | |
|
| | | enum EParCheckVersionOpt { | |
| | | kDontCheck = 0, | |
| | | kCheckROOT = 1, | |
| | | kCheckSVN = 2 | |
| | | }; | |
| enum EProofShowQuotaOpt { | | enum EProofShowQuotaOpt { | |
| kPerGroup = 0x1, | | kPerGroup = 0x1, | |
| kPerUser = 0x2 | | kPerUser = 0x2 | |
| }; | | }; | |
| | | | |
| Bool_t fValid; //is this a valid proof object | | Bool_t fValid; //is this a valid proof object | |
|
| | | Bool_t fTty; //TRUE if connected to a terminal | |
| TString fMaster; //master server ("" if a master); used
in the browser | | TString fMaster; //master server ("" if a master); used
in the browser | |
| TString fWorkDir; //current work directory on remote ser
vers | | TString fWorkDir; //current work directory on remote ser
vers | |
| TString fGroup; //PROOF group of this user | | TString fGroup; //PROOF group of this user | |
| Int_t fLogLevel; //server debug logging level | | Int_t fLogLevel; //server debug logging level | |
| Int_t fStatus; //remote return status (part of kPROOF
_LOGDONE) | | Int_t fStatus; //remote return status (part of kPROOF
_LOGDONE) | |
| Int_t fCheckFileStatus; //remote return status after kPROOF_CH
ECKFILE | | Int_t fCheckFileStatus; //remote return status after kPROOF_CH
ECKFILE | |
| TList *fRecvMessages; //Messages received during collect not
yet processed | | TList *fRecvMessages; //Messages received during collect not
yet processed | |
| TList *fSlaveInfo; //!list returned by kPROOF_GETSLAVEINF
O | | TList *fSlaveInfo; //!list returned by kPROOF_GETSLAVEINF
O | |
| Bool_t fSendGroupView; //if true send new group view | | Bool_t fSendGroupView; //if true send new group view | |
| TList *fActiveSlaves; //list of active slaves (subset of all
slaves) | | TList *fActiveSlaves; //list of active slaves (subset of all
slaves) | |
| | | | |
| skipping to change at line 630 | | skipping to change at line 644 | |
| Int_t SendInitialState(); | | Int_t SendInitialState(); | |
| Int_t SendPrint(Option_t *option=""); | | Int_t SendPrint(Option_t *option=""); | |
| Int_t Ping(ESlaves list); | | Int_t Ping(ESlaves list); | |
| void Interrupt(EUrgent type, ESlaves list = kActive); | | void Interrupt(EUrgent type, ESlaves list = kActive); | |
| void AskStatistics(); | | void AskStatistics(); | |
| void AskParallel(); | | void AskParallel(); | |
| Int_t GoParallel(Int_t nodes, Bool_t accept = kFALSE, Bool_t random =
kFALSE); | | Int_t GoParallel(Int_t nodes, Bool_t accept = kFALSE, Bool_t random =
kFALSE); | |
| Int_t SetParallelSilent(Int_t nodes, Bool_t random = kFALSE); | | Int_t SetParallelSilent(Int_t nodes, Bool_t random = kFALSE); | |
| void RecvLogFile(TSocket *s, Int_t size); | | void RecvLogFile(TSocket *s, Int_t size); | |
| void NotifyLogMsg(const char *msg, const char *sfx = "\n"); | | void NotifyLogMsg(const char *msg, const char *sfx = "\n"); | |
|
| Int_t BuildPackage(const char *package, EBuildPackageOpt opt = kBuild | | Int_t BuildPackage(const char *package, EBuildPackageOpt opt = kBuild | |
| All); | | All, Int_t chkveropt = 2); | |
| Int_t BuildPackageOnClient(const char *package, Int_t opt = 0, TStrin | | Int_t BuildPackageOnClient(const char *package, Int_t opt = 0, TStrin | |
| g *path = 0); | | g *path = 0, Int_t chkveropt = 2); | |
| Int_t LoadPackage(const char *package, Bool_t notOnClient = kFALSE, T
List *loadopts = 0); | | Int_t LoadPackage(const char *package, Bool_t notOnClient = kFALSE, T
List *loadopts = 0); | |
| Int_t LoadPackageOnClient(const char *package, TList *loadopts = 0); | | Int_t LoadPackageOnClient(const char *package, TList *loadopts = 0); | |
| Int_t UnloadPackage(const char *package); | | Int_t UnloadPackage(const char *package); | |
| Int_t UnloadPackageOnClient(const char *package); | | Int_t UnloadPackageOnClient(const char *package); | |
| Int_t UnloadPackages(); | | Int_t UnloadPackages(); | |
| Int_t UploadPackageOnClient(const char *package, EUploadPackageOpt op
t, TMD5 *md5); | | Int_t UploadPackageOnClient(const char *package, EUploadPackageOpt op
t, TMD5 *md5); | |
| Int_t DisablePackage(const char *package); | | Int_t DisablePackage(const char *package); | |
| Int_t DisablePackageOnClient(const char *package); | | Int_t DisablePackageOnClient(const char *package); | |
| Int_t DisablePackages(); | | Int_t DisablePackages(); | |
| | | | |
| | | | |
| skipping to change at line 890 | | skipping to change at line 904 | |
| Int_t UploadDataSetFromFile(const char *, const char *, const char
* = 0, Int_t = 0, TList * = 0); | | Int_t UploadDataSetFromFile(const char *, const char *, const char
* = 0, Int_t = 0, TList * = 0); | |
| virtual Bool_t RegisterDataSet(const char *name, | | virtual Bool_t RegisterDataSet(const char *name, | |
| TFileCollection *dataset, const char* optStr
= ""); | | TFileCollection *dataset, const char* optStr
= ""); | |
| virtual TMap *GetDataSets(const char *uri = "", const char* optStr = "")
; | | virtual TMap *GetDataSets(const char *uri = "", const char* optStr = "")
; | |
| virtual void ShowDataSets(const char *uri = "", const char* optStr = ""
); | | virtual void ShowDataSets(const char *uri = "", const char* optStr = ""
); | |
| | | | |
| TMap *GetDataSetQuota(const char* optStr = ""); | | TMap *GetDataSetQuota(const char* optStr = ""); | |
| void ShowDataSetQuota(Option_t* opt = 0); | | void ShowDataSetQuota(Option_t* opt = 0); | |
| | | | |
| virtual Bool_t ExistsDataSet(const char *dataset); | | virtual Bool_t ExistsDataSet(const char *dataset); | |
|
| void ShowDataSet(const char *dataset = "", const char* opt = "
M"); | | void ShowDataSet(const char *dataset = "", const char* opt = "
filter:SsCc"); | |
| virtual Int_t RemoveDataSet(const char *dataset, const char* optStr = "
"); | | virtual Int_t RemoveDataSet(const char *dataset, const char* optStr = "
"); | |
| virtual Int_t VerifyDataSet(const char *dataset, const char* optStr = "
"); | | virtual Int_t VerifyDataSet(const char *dataset, const char* optStr = "
"); | |
| virtual TFileCollection *GetDataSet(const char *dataset, const char* opt
Str = ""); | | virtual TFileCollection *GetDataSet(const char *dataset, const char* opt
Str = ""); | |
| TList *FindDataSets(const char *searchString, const char* optStr
= ""); | | TList *FindDataSets(const char *searchString, const char* optStr
= ""); | |
|
| | | virtual Bool_t RequestStagingDataSet(const char *dataset); | |
| | | virtual TFileCollection *GetStagingStatusDataSet(const char *dataset); | |
| | | virtual void ShowStagingStatusDataSet(const char *dataset, const char | |
| | | *optStr = "filter:SsCc"); | |
| | | | |
| virtual Int_t SetDataSetTreeName( const char *dataset, const char *treen
ame); | | virtual Int_t SetDataSetTreeName( const char *dataset, const char *treen
ame); | |
| | | | |
| virtual void ShowDataSetCache(const char *dataset = 0); | | virtual void ShowDataSetCache(const char *dataset = 0); | |
| virtual void ClearDataSetCache(const char *dataset = 0); | | virtual void ClearDataSetCache(const char *dataset = 0); | |
| | | | |
|
| void ShowData(); | | virtual void ShowData(); | |
| void ClearData(UInt_t what = kUnregistered, const char *dsname =
0); | | void ClearData(UInt_t what = kUnregistered, const char *dsname =
0); | |
| | | | |
| const char *GetMaster() const { return fMaster; } | | const char *GetMaster() const { return fMaster; } | |
| const char *GetConfDir() const { return fConfDir; } | | const char *GetConfDir() const { return fConfDir; } | |
| const char *GetConfFile() const { return fConfFile; } | | const char *GetConfFile() const { return fConfFile; } | |
| const char *GetUser() const { return fUrl.GetUser(); } | | const char *GetUser() const { return fUrl.GetUser(); } | |
| const char *GetGroup() const { return fGroup; } | | const char *GetGroup() const { return fGroup; } | |
| const char *GetWorkDir() const { return fWorkDir; } | | const char *GetWorkDir() const { return fWorkDir; } | |
| const char *GetSessionTag() const { return GetName(); } | | const char *GetSessionTag() const { return GetName(); } | |
| const char *GetImage() const { return fImage; } | | const char *GetImage() const { return fImage; } | |
| | | | |
| skipping to change at line 934 | | skipping to change at line 951 | |
| EQueryMode GetQueryMode(Option_t *mode = 0) const; | | EQueryMode GetQueryMode(Option_t *mode = 0) const; | |
| void SetQueryMode(EQueryMode mode); | | void SetQueryMode(EQueryMode mode); | |
| | | | |
| void SetRealTimeLog(Bool_t on = kTRUE); | | void SetRealTimeLog(Bool_t on = kTRUE); | |
| | | | |
| void GetStatistics(Bool_t verbose = kFALSE); | | void GetStatistics(Bool_t verbose = kFALSE); | |
| Long64_t GetBytesRead() const { return fBytesRead; } | | Long64_t GetBytesRead() const { return fBytesRead; } | |
| Float_t GetRealTime() const { return fRealTime; } | | Float_t GetRealTime() const { return fRealTime; } | |
| Float_t GetCpuTime() const { return fCpuTime; } | | Float_t GetCpuTime() const { return fCpuTime; } | |
| | | | |
|
| Bool_t IsLite() const { return (fServType == TProofMgr::kProofLite) | | Bool_t IsLite() const { return (fServType == TProofMgr::kProofLite) | |
| ; } | | ? kTRUE : kFALSE; } | |
| Bool_t IsProofd() const { return (fServType == TProofMgr::kProofd); | | Bool_t IsProofd() const { return (fServType == TProofMgr::kProofd) | |
| } | | ? kTRUE : kFALSE; } | |
| Bool_t IsFolder() const { return kTRUE; } | | Bool_t IsFolder() const { return kTRUE; } | |
| Bool_t IsMaster() const { return fMasterServ; } | | Bool_t IsMaster() const { return fMasterServ; } | |
| Bool_t IsValid() const { return fValid; } | | Bool_t IsValid() const { return fValid; } | |
|
| | | Bool_t IsTty() const { return fTty; } | |
| Bool_t IsParallel() const { return GetParallel() > 0 ? kTRUE : kFAL
SE; } | | Bool_t IsParallel() const { return GetParallel() > 0 ? kTRUE : kFAL
SE; } | |
| Bool_t IsIdle() const { return (fNotIdle <= 0) ? kTRUE : kFALSE; } | | Bool_t IsIdle() const { return (fNotIdle <= 0) ? kTRUE : kFALSE; } | |
| Bool_t IsWaiting() const { return fIsWaiting; } | | Bool_t IsWaiting() const { return fIsWaiting; } | |
| | | | |
| ERunStatus GetRunStatus() const { return fRunStatus; } | | ERunStatus GetRunStatus() const { return fRunStatus; } | |
| TList *GetLoadedMacros() const { return fLoadedMacros; } | | TList *GetLoadedMacros() const { return fLoadedMacros; } | |
| | | | |
| //-- input list parameter handling | | //-- input list parameter handling | |
| void SetParameter(const char *par, const char *value); | | void SetParameter(const char *par, const char *value); | |
| void SetParameter(const char *par, Int_t value); | | void SetParameter(const char *par, Int_t value); | |
| | | | |
End of changes. 15 change blocks. |
| 16 lines changed or deleted | | 37 lines changed or added | |
|
| TProofLite.h | | TProofLite.h | |
|
| // @(#)root/proof:$Id: TProofLite.h 45751 2012-08-30 10:28:19Z ganis $ | | // @(#)root/proof:$Id: TProofLite.h 47252 2012-11-14 11:03:46Z ganis $ | |
| /************************************************************************* | | /************************************************************************* | |
| * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * | | * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * | |
| * All rights reserved. * | | * All rights reserved. * | |
| * * | | * * | |
| * For the licensing terms see $ROOTSYS/LICENSE. * | | * For the licensing terms see $ROOTSYS/LICENSE. * | |
| * For the list of contributors see $ROOTSYS/README/CREDITS. * | | * For the list of contributors see $ROOTSYS/README/CREDITS. * | |
| *************************************************************************/ | | *************************************************************************/ | |
| | | | |
| #ifndef ROOT_TProofLite | | #ifndef ROOT_TProofLite | |
| #define ROOT_TProofLite | | #define ROOT_TProofLite | |
| | | | |
| skipping to change at line 75 | | skipping to change at line 75 | |
| | | | |
| Int_t CleanupSandbox(); | | Int_t CleanupSandbox(); | |
| Int_t CreateSandbox(); | | Int_t CreateSandbox(); | |
| void FindUniqueSlaves(); | | void FindUniqueSlaves(); | |
| void NotifyStartUp(const char *action, Int_t done, Int_t tot); | | void NotifyStartUp(const char *action, Int_t done, Int_t tot); | |
| Int_t SetProofServEnv(const char *ord); | | Int_t SetProofServEnv(const char *ord); | |
| Int_t InitDataSetManager(); | | Int_t InitDataSetManager(); | |
| | | | |
| void ResolveKeywords(TString &s, const char *logfile); | | void ResolveKeywords(TString &s, const char *logfile); | |
| | | | |
|
| void SendInputDataFile(); | | void SendInputDataFile(); | |
| | | void ShowDataDir(const char *dirname); | |
| | | | |
| protected: | | protected: | |
| TProofLite() : TProof() { } // For derived classes to use | | TProofLite() : TProof() { } // For derived classes to use | |
| | | | |
| Int_t CreateSymLinks(TList *files); | | Int_t CreateSymLinks(TList *files); | |
| Int_t Init(const char *masterurl, const char *conffile, | | Int_t Init(const char *masterurl, const char *conffile, | |
| const char *confdir, Int_t loglevel, | | const char *confdir, Int_t loglevel, | |
| const char *alias = 0); | | const char *alias = 0); | |
| TProofQueryResult *MakeQueryResult(Long64_t nent, const char *opt, | | TProofQueryResult *MakeQueryResult(Long64_t nent, const char *opt, | |
| Long64_t fst, TDSet *dset, | | Long64_t fst, TDSet *dset, | |
| | | | |
| skipping to change at line 133 | | skipping to change at line 134 | |
| { return TProof::Process(dsname, sel, o, nent, fst, enl
); } | | { return TProof::Process(dsname, sel, o, nent, fst, enl
); } | |
| Long64_t Process(TSelector* sel, Long64_t nent, Option_t *o = "") | | Long64_t Process(TSelector* sel, Long64_t nent, Option_t *o = "") | |
| { return TProof::Process(sel, nent, o); } | | { return TProof::Process(sel, nent, o); } | |
| | | | |
| // Cache management | | // Cache management | |
| void ShowCache(Bool_t all = kFALSE); | | void ShowCache(Bool_t all = kFALSE); | |
| void ClearCache(const char *file = 0); | | void ClearCache(const char *file = 0); | |
| Int_t Load(const char *macro, Bool_t notOnClient = kFALSE, Bool_t unique
Only = kTRUE, | | Int_t Load(const char *macro, Bool_t notOnClient = kFALSE, Bool_t unique
Only = kTRUE, | |
| TList *wrks = 0); | | TList *wrks = 0); | |
| | | | |
|
| | | // Data management | |
| | | void ShowData(); | |
| | | | |
| // Query management | | // Query management | |
| TList *GetListOfQueries(Option_t *opt = ""); | | TList *GetListOfQueries(Option_t *opt = ""); | |
| Int_t Remove(const char *ref, Bool_t all); | | Int_t Remove(const char *ref, Bool_t all); | |
| | | | |
| // Dataset handling | | // Dataset handling | |
| Bool_t RegisterDataSet(const char *dsName, TFileCollection *ds, const
char *opt = ""); | | Bool_t RegisterDataSet(const char *dsName, TFileCollection *ds, const
char *opt = ""); | |
| Bool_t ExistsDataSet(const char *uri); | | Bool_t ExistsDataSet(const char *uri); | |
| TMap *GetDataSets(const char *uri = "", const char * = 0); | | TMap *GetDataSets(const char *uri = "", const char * = 0); | |
| void ShowDataSets(const char *uri = "", const char * = 0); | | void ShowDataSets(const char *uri = "", const char * = 0); | |
| TFileCollection *GetDataSet(const char *uri, const char * = 0); | | TFileCollection *GetDataSet(const char *uri, const char * = 0); | |
| | | | |
End of changes. 3 change blocks. |
| 2 lines changed or deleted | | 6 lines changed or added | |
|
| TProofMgr.h | | TProofMgr.h | |
|
| // @(#)root/proof:$Id: TProofMgr.h 42858 2012-02-03 11:34:05Z ganis $ | | // @(#)root/proof:$Id: TProofMgr.h 47252 2012-11-14 11:03:46Z ganis $ | |
| /************************************************************************* | | /************************************************************************* | |
| * Copyright (C) 1995-2005, Rene Brun and Fons Rademakers. * | | * Copyright (C) 1995-2005, Rene Brun and Fons Rademakers. * | |
| * All rights reserved. * | | * All rights reserved. * | |
| * * | | * * | |
| * For the licensing terms see $ROOTSYS/LICENSE. * | | * For the licensing terms see $ROOTSYS/LICENSE. * | |
| * For the list of contributors see $ROOTSYS/README/CREDITS. * | | * For the list of contributors see $ROOTSYS/README/CREDITS. * | |
| *************************************************************************/ | | *************************************************************************/ | |
| | | | |
| #ifndef ROOT_TProofMgr | | #ifndef ROOT_TProofMgr | |
| #define ROOT_TProofMgr | | #define ROOT_TProofMgr | |
| | | | |
| skipping to change at line 124 | | skipping to change at line 124 | |
| virtual void ShowROOTVersions() { } | | virtual void ShowROOTVersions() { } | |
| virtual void ShutdownSession(Int_t id) { DetachSession(id,"S"); } | | virtual void ShutdownSession(Int_t id) { DetachSession(id,"S"); } | |
| virtual void ShutdownSession(TProof *p) { DetachSession(p,"S"); } | | virtual void ShutdownSession(TProof *p) { DetachSession(p,"S"); } | |
| | | | |
| // Remote file system actions | | // Remote file system actions | |
| virtual Int_t Cp(const char *, const char * = 0, const char * = 0)
{ return -1; } | | virtual Int_t Cp(const char *, const char * = 0, const char * = 0)
{ return -1; } | |
| virtual void Find(const char * = "~/", const char * = 0, const ch
ar * = 0) { } | | virtual void Find(const char * = "~/", const char * = 0, const ch
ar * = 0) { } | |
| virtual void Grep(const char *, const char * = 0, const char * =
0) { } | | virtual void Grep(const char *, const char * = 0, const char * =
0) { } | |
| virtual void Ls(const char * = "~/", const char * = 0, const char
* = 0) { } | | virtual void Ls(const char * = "~/", const char * = 0, const char
* = 0) { } | |
| virtual void More(const char *, const char * = 0, const char * =
0) { } | | virtual void More(const char *, const char * = 0, const char * =
0) { } | |
|
| virtual Int_t Rm(const char *, const char * = 0, const char * = 0)
{ return -1; } | | virtual Int_t Rm(const char *, const char * = 0, const char * = 0)
; | |
| virtual void Tail(const char *, const char * = 0, const char * =
0) { } | | virtual void Tail(const char *, const char * = 0, const char * =
0) { } | |
| virtual Int_t Md5sum(const char *, TString &, const char * = 0) {
return -1; } | | virtual Int_t Md5sum(const char *, TString &, const char * = 0) {
return -1; } | |
| virtual Int_t Stat(const char *, FileStat_t &, const char * = 0) {
return -1; } | | virtual Int_t Stat(const char *, FileStat_t &, const char * = 0) {
return -1; } | |
| | | | |
| virtual Int_t GetFile(const char *, const char *, const char * = 0
) { return -1; } | | virtual Int_t GetFile(const char *, const char *, const char * = 0
) { return -1; } | |
| virtual Int_t PutFile(const char *, const char *, const char * = 0
) { return -1; } | | virtual Int_t PutFile(const char *, const char *, const char * = 0
) { return -1; } | |
| | | | |
| static TList *GetListOfManagers(); | | static TList *GetListOfManagers(); | |
| | | | |
| static void SetTXProofMgrHook(TProofMgr_t pmh); | | static void SetTXProofMgrHook(TProofMgr_t pmh); | |
| | | | |
End of changes. 2 change blocks. |
| 2 lines changed or deleted | | 2 lines changed or added | |
|
| TProofServ.h | | TProofServ.h | |
|
| // @(#)root/proof:$Id: TProofServ.h 45751 2012-08-30 10:28:19Z ganis $ | | // @(#)root/proof:$Id: TProofServ.h 48213 2013-01-07 14:29:32Z ganis $ | |
| // Author: Fons Rademakers 16/02/97 | | // Author: Fons Rademakers 16/02/97 | |
| | | | |
| /************************************************************************* | | /************************************************************************* | |
| * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * | | * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * | |
| * All rights reserved. * | | * All rights reserved. * | |
| * * | | * * | |
| * For the licensing terms see $ROOTSYS/LICENSE. * | | * For the licensing terms see $ROOTSYS/LICENSE. * | |
| * For the list of contributors see $ROOTSYS/README/CREDITS. * | | * For the list of contributors see $ROOTSYS/README/CREDITS. * | |
| *************************************************************************/ | | *************************************************************************/ | |
| | | | |
| | | | |
| skipping to change at line 46 | | skipping to change at line 46 | |
| #include "TStopwatch.h" | | #include "TStopwatch.h" | |
| #endif | | #endif | |
| #ifndef ROOT_TTimer | | #ifndef ROOT_TTimer | |
| #include "TTimer.h" | | #include "TTimer.h" | |
| #endif | | #endif | |
| #ifndef ROOT_TProofQueryResult | | #ifndef ROOT_TProofQueryResult | |
| #include "TProofQueryResult.h" | | #include "TProofQueryResult.h" | |
| #endif | | #endif | |
| | | | |
| class TDataSetManager; | | class TDataSetManager; | |
|
| | | class TDataSetManagerFile; | |
| class TDSet; | | class TDSet; | |
| class TDSetElement; | | class TDSetElement; | |
| class TFileCollection; | | class TFileCollection; | |
| class TFileHandler; | | class TFileHandler; | |
| class THashList; | | class THashList; | |
| class TIdleTOTimer; | | class TIdleTOTimer; | |
| class TList; | | class TList; | |
| class TMap; | | class TMap; | |
| class TMessage; | | class TMessage; | |
| class TMonitor; | | class TMonitor; | |
| | | | |
| skipping to change at line 156 | | skipping to change at line 157 | |
| | | | |
| TShutdownTimer *fShutdownTimer; // Timer used to shutdown out-of-contro
l sessions | | TShutdownTimer *fShutdownTimer; // Timer used to shutdown out-of-contro
l sessions | |
| TReaperTimer *fReaperTimer; // Timer used to control children state | | TReaperTimer *fReaperTimer; // Timer used to control children state | |
| TIdleTOTimer *fIdleTOTimer; // Timer used to control children state | | TIdleTOTimer *fIdleTOTimer; // Timer used to control children state | |
| | | | |
| Int_t fInflateFactor; // Factor in 1/1000 to inflate the CPU
time | | Int_t fInflateFactor; // Factor in 1/1000 to inflate the CPU
time | |
| | | | |
| Int_t fCompressMsg; // Compression level for messages | | Int_t fCompressMsg; // Compression level for messages | |
| | | | |
| TDataSetManager* fDataSetManager; // dataset manager | | TDataSetManager* fDataSetManager; // dataset manager | |
|
| | | TDataSetManagerFile *fDataSetStgRepo; // repository for staging request
s | |
| | | | |
| Bool_t fSendLogToMaster; // On workers, controls logs sending to
master | | Bool_t fSendLogToMaster; // On workers, controls logs sending to
master | |
| | | | |
| TServerSocket *fMergingSocket; // Socket used for merging outputs if su
bmerger | | TServerSocket *fMergingSocket; // Socket used for merging outputs if su
bmerger | |
| TMonitor *fMergingMonitor; // Monitor for merging sockets | | TMonitor *fMergingMonitor; // Monitor for merging sockets | |
| Int_t fMergedWorkers; // Number of workers merged | | Int_t fMergedWorkers; // Number of workers merged | |
| | | | |
| // Quotas (-1 to disable) | | // Quotas (-1 to disable) | |
| Int_t fMaxQueries; //Max number of queries fully kept | | Int_t fMaxQueries; //Max number of queries fully kept | |
| Long64_t fMaxBoxSize; //Max size of the sandbox | | Long64_t fMaxBoxSize; //Max size of the sandbox | |
| | | | |
| skipping to change at line 432 | | skipping to change at line 434 | |
| TProofServLogHandlerGuard(FILE *f, TSocket *s, | | TProofServLogHandlerGuard(FILE *f, TSocket *s, | |
| const char *pfx = "", Bool_t on = kTRUE); | | const char *pfx = "", Bool_t on = kTRUE); | |
| virtual ~TProofServLogHandlerGuard(); | | virtual ~TProofServLogHandlerGuard(); | |
| }; | | }; | |
| | | | |
| //--- Special timer to control delayed shutdowns | | //--- Special timer to control delayed shutdowns | |
| //_________________________________________________________________________
_____ | | //_________________________________________________________________________
_____ | |
| class TShutdownTimer : public TTimer { | | class TShutdownTimer : public TTimer { | |
| private: | | private: | |
| TProofServ *fProofServ; | | TProofServ *fProofServ; | |
|
| | | Int_t fTimeout; | |
| | | | |
| public: | | public: | |
|
| TShutdownTimer(TProofServ *p, Int_t delay) : TTimer(delay, kFALSE), fPro
ofServ(p) { } | | TShutdownTimer(TProofServ *p, Int_t delay); | |
| | | | |
| Bool_t Notify(); | | Bool_t Notify(); | |
| }; | | }; | |
| | | | |
| //--- Synchronous timer used to reap children processes change of state | | //--- Synchronous timer used to reap children processes change of state | |
| //_________________________________________________________________________
_____ | | //_________________________________________________________________________
_____ | |
| class TReaperTimer : public TTimer { | | class TReaperTimer : public TTimer { | |
| private: | | private: | |
| TList *fChildren; // List of children (forked) processes | | TList *fChildren; // List of children (forked) processes | |
| | | | |
| | | | |
End of changes. 5 change blocks. |
| 2 lines changed or deleted | | 5 lines changed or added | |
|
| TTF.h | | TTF.h | |
|
| // @(#)root/graf:$Id: TTF.h 46562 2012-10-16 11:20:32Z tpochep $ | | // @(#)root/graf:$Id: TTF.h 47117 2012-11-08 16:14:55Z couet $ | |
| // Author: Olivier Couet 01/10/02 | | // Author: Olivier Couet 01/10/02 | |
| // Author: Fons Rademakers 21/11/98 | | // Author: Fons Rademakers 21/11/98 | |
| | | | |
| /************************************************************************* | | /************************************************************************* | |
| * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * | | * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * | |
| * All rights reserved. * | | * All rights reserved. * | |
| * * | | * * | |
| * For the licensing terms see $ROOTSYS/LICENSE. * | | * For the licensing terms see $ROOTSYS/LICENSE. * | |
| * For the list of contributors see $ROOTSYS/README/CREDITS. * | | * For the list of contributors see $ROOTSYS/README/CREDITS. * | |
| *************************************************************************/ | | *************************************************************************/ | |
| | | | |
| skipping to change at line 54 | | skipping to change at line 54 | |
| // Class (actually structure) containing glyphs description | | // Class (actually structure) containing glyphs description | |
| class TTGlyph { | | class TTGlyph { | |
| public: | | public: | |
| UInt_t fIndex; // glyph index in face | | UInt_t fIndex; // glyph index in face | |
| FT_Vector fPos; // position of glyph origin | | FT_Vector fPos; // position of glyph origin | |
| FT_Glyph fImage; // glyph image | | FT_Glyph fImage; // glyph image | |
| }; | | }; | |
| | | | |
| class TGX11TTF; | | class TGX11TTF; | |
| class TGWin32; | | class TGWin32; | |
|
| | | class TMathTextRenderer; | |
| | | | |
| class TTF { | | class TTF { | |
| | | | |
| friend class TGX11TTF; | | friend class TGX11TTF; | |
| friend class TGWin32; | | friend class TGWin32; | |
|
| | | friend class TMathTextRenderer; | |
| friend class TGQuartz; | | friend class TGQuartz; | |
| | | | |
|
| private: | | protected: | |
| enum { kTTMaxFonts = 32, kMaxGlyphs = 1024 }; | | enum { kTTMaxFonts = 32, kMaxGlyphs = 1024 }; | |
| | | | |
| static Int_t fgAscent; // string ascent, used to co
mpute Y alignment | | static Int_t fgAscent; // string ascent, used to co
mpute Y alignment | |
| static FT_BBox fgCBox; // string control box | | static FT_BBox fgCBox; // string control box | |
| static FT_CharMap fgCharMap[kTTMaxFonts]; // font character map | | static FT_CharMap fgCharMap[kTTMaxFonts]; // font character map | |
| static Int_t fgCurFontIdx; // current font index | | static Int_t fgCurFontIdx; // current font index | |
| static Int_t fgSymbItaFontIdx; // Symbol italic font index | | static Int_t fgSymbItaFontIdx; // Symbol italic font index | |
| static Int_t fgFontCount; // number of fonts loaded | | static Int_t fgFontCount; // number of fonts loaded | |
| static char *fgFontName[kTTMaxFonts]; // font name | | static char *fgFontName[kTTMaxFonts]; // font name | |
| static FT_Face fgFace[kTTMaxFonts]; // font face | | static FT_Face fgFace[kTTMaxFonts]; // font face | |
| | | | |
| skipping to change at line 87 | | skipping to change at line 89 | |
| static Int_t fgNumGlyphs; // number of glyphs in the s
tring | | static Int_t fgNumGlyphs; // number of glyphs in the s
tring | |
| static FT_Matrix *fgRotMatrix; // rotation matrix | | static FT_Matrix *fgRotMatrix; // rotation matrix | |
| static Bool_t fgSmoothing; // use anti-aliasing (true w
hen >8 planes, false otherwise) | | static Bool_t fgSmoothing; // use anti-aliasing (true w
hen >8 planes, false otherwise) | |
| static Int_t fgTBlankW; // trailing blanks width | | static Int_t fgTBlankW; // trailing blanks width | |
| static Int_t fgWidth; // string width, used to com
pute X alignment | | static Int_t fgWidth; // string width, used to com
pute X alignment | |
| | | | |
| public: | | public: | |
| static Short_t CharToUnicode(UInt_t code); | | static Short_t CharToUnicode(UInt_t code); | |
| static void LayoutGlyphs(); | | static void LayoutGlyphs(); | |
| static void PrepareString(const char *string); | | static void PrepareString(const char *string); | |
|
| | | static void PrepareString(const wchar_t *string); | |
| static void SetRotationMatrix(Float_t angle); | | static void SetRotationMatrix(Float_t angle); | |
| | | | |
| public: | | public: | |
| TTF() { } | | TTF() { } | |
| virtual ~TTF(); | | virtual ~TTF(); | |
| | | | |
| static void Init(); | | static void Init(); | |
| static void Cleanup(); | | static void Cleanup(); | |
| static Int_t GetAscent(); | | static Int_t GetAscent(); | |
| static const FT_BBox &GetBox(); | | static const FT_BBox &GetBox(); | |
| | | | |
| skipping to change at line 108 | | skipping to change at line 111 | |
| static Bool_t GetHinting(); | | static Bool_t GetHinting(); | |
| static Bool_t GetKerning(); | | static Bool_t GetKerning(); | |
| static Int_t GetNumGlyphs(); | | static Int_t GetNumGlyphs(); | |
| static FT_Matrix *GetRotMatrix(); | | static FT_Matrix *GetRotMatrix(); | |
| static Bool_t GetSmoothing(); | | static Bool_t GetSmoothing(); | |
| static Int_t GetWidth(); | | static Int_t GetWidth(); | |
| static void SetHinting(Bool_t state); | | static void SetHinting(Bool_t state); | |
| static void SetKerning(Bool_t state); | | static void SetKerning(Bool_t state); | |
| static void SetSmoothing(Bool_t state); | | static void SetSmoothing(Bool_t state); | |
| static void GetTextExtent(UInt_t &w, UInt_t &h, char *text); | | static void GetTextExtent(UInt_t &w, UInt_t &h, char *text); | |
|
| | | static void GetTextExtent(UInt_t &w, UInt_t &h, wchar_t *text)
; | |
| static void GetTextAdvance(UInt_t &a, char *text); | | static void GetTextAdvance(UInt_t &a, char *text); | |
| static void SetTextFont(Font_t fontnumber); | | static void SetTextFont(Font_t fontnumber); | |
| static Int_t SetTextFont(const char *fontname, Int_t italic=0); | | static Int_t SetTextFont(const char *fontname, Int_t italic=0); | |
| static void SetTextSize(Float_t textsize); | | static void SetTextSize(Float_t textsize); | |
| static Bool_t IsInitialized(); | | static Bool_t IsInitialized(); | |
| static void Version(Int_t &major, Int_t &minor, Int_t &patch); | | static void Version(Int_t &major, Int_t &minor, Int_t &patch); | |
| | | | |
| ClassDef(TTF,0) //Interface to TTF font handling | | ClassDef(TTF,0) //Interface to TTF font handling | |
| }; | | }; | |
| | | | |
| | | | |
End of changes. 6 change blocks. |
| 2 lines changed or deleted | | 6 lines changed or added | |
|
| TText.h | | TText.h | |
|
| // @(#)root/graf:$Id: TText.h 33120 2010-04-21 14:29:04Z couet $ | | // @(#)root/graf:$Id: TText.h 47117 2012-11-08 16:14:55Z couet $ | |
| // Author: Nicolas Brun 12/12/94 | | // Author: Nicolas Brun 12/12/94 | |
| | | | |
| /************************************************************************* | | /************************************************************************* | |
| * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * | | * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * | |
| * All rights reserved. * | | * All rights reserved. * | |
| * * | | * * | |
| * For the licensing terms see $ROOTSYS/LICENSE. * | | * For the licensing terms see $ROOTSYS/LICENSE. * | |
| * For the list of contributors see $ROOTSYS/README/CREDITS. * | | * For the list of contributors see $ROOTSYS/README/CREDITS. * | |
| *************************************************************************/ | | *************************************************************************/ | |
| | | | |
| | | | |
| skipping to change at line 36 | | skipping to change at line 36 | |
| | | | |
| #ifndef ROOT_TNamed | | #ifndef ROOT_TNamed | |
| #include "TNamed.h" | | #include "TNamed.h" | |
| #endif | | #endif | |
| | | | |
| class TText : public TNamed, public TAttText { | | class TText : public TNamed, public TAttText { | |
| | | | |
| protected: | | protected: | |
| Double_t fX; // X position of text (left,center,etc..) | | Double_t fX; // X position of text (left,center,etc..) | |
| Double_t fY; // Y position of text (left,center,etc..) | | Double_t fY; // Y position of text (left,center,etc..) | |
|
| | | void *fWcsTitle; //!Used by TMathText | |
| | | | |
| public: | | public: | |
| // TText status bits | | // TText status bits | |
| enum { kTextNDC = BIT(14) }; | | enum { kTextNDC = BIT(14) }; | |
| | | | |
| TText(); | | TText(); | |
| TText(Double_t x, Double_t y, const char *text); | | TText(Double_t x, Double_t y, const char *text); | |
|
| | | TText(Double_t x, Double_t y, const wchar_t *text); | |
| TText(const TText &text); | | TText(const TText &text); | |
| virtual ~TText(); | | virtual ~TText(); | |
| void Copy(TObject &text) const; | | void Copy(TObject &text) const; | |
| virtual Int_t DistancetoPrimitive(Int_t px, Int_t py); | | virtual Int_t DistancetoPrimitive(Int_t px, Int_t py); | |
| virtual TText *DrawText(Double_t x, Double_t y, const char *text); | | virtual TText *DrawText(Double_t x, Double_t y, const char *text); | |
|
| | | virtual TText *DrawText(Double_t x, Double_t y, const wchar_t *text); | |
| virtual TText *DrawTextNDC(Double_t x, Double_t y, const char *text); | | virtual TText *DrawTextNDC(Double_t x, Double_t y, const char *text); | |
|
| | | virtual TText *DrawTextNDC(Double_t x, Double_t y, const wchar_t *text
); | |
| virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py); | | virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py); | |
| | | | |
| virtual void GetControlBox(Int_t x, Int_t y, Double_t theta, | | virtual void GetControlBox(Int_t x, Int_t y, Double_t theta, | |
| Int_t cBoxX[4], Int_t cBoxY[4]); | | Int_t cBoxX[4], Int_t cBoxY[4]); | |
| Double_t GetX() const { return fX; } | | Double_t GetX() const { return fX; } | |
| virtual void GetBoundingBox(UInt_t &w, UInt_t &h, Bool_t angle = kFA
LSE); | | virtual void GetBoundingBox(UInt_t &w, UInt_t &h, Bool_t angle = kFA
LSE); | |
| virtual void GetTextAscentDescent(UInt_t &a, UInt_t &d, const char *
text) const; | | virtual void GetTextAscentDescent(UInt_t &a, UInt_t &d, const char *
text) const; | |
|
| | | virtual void GetTextAscentDescent(UInt_t &a, UInt_t &d, const wchar_
t *text) const; | |
| virtual void GetTextExtent(UInt_t &w, UInt_t &h, const char *text) c
onst; | | virtual void GetTextExtent(UInt_t &w, UInt_t &h, const char *text) c
onst; | |
|
| | | virtual void GetTextExtent(UInt_t &w, UInt_t &h, const wchar_t *text
) const; | |
| virtual void GetTextAdvance(UInt_t &a, const char *text, const Bool_
t kern=kTRUE) const; | | virtual void GetTextAdvance(UInt_t &a, const char *text, const Bool_
t kern=kTRUE) const; | |
|
| | | const void * GetWcsTitle(void) const; | |
| Double_t GetY() const { return fY; } | | Double_t GetY() const { return fY; } | |
| | | | |
| virtual void ls(Option_t *option="") const; | | virtual void ls(Option_t *option="") const; | |
| virtual void Paint(Option_t *option=""); | | virtual void Paint(Option_t *option=""); | |
| virtual void PaintControlBox(Int_t x, Int_t y, Double_t theta); | | virtual void PaintControlBox(Int_t x, Int_t y, Double_t theta); | |
| virtual void PaintText(Double_t x, Double_t y, const char *text); | | virtual void PaintText(Double_t x, Double_t y, const char *text); | |
|
| | | virtual void PaintText(Double_t x, Double_t y, const wchar_t *text); | |
| virtual void PaintTextNDC(Double_t u, Double_t v, const char *text); | | virtual void PaintTextNDC(Double_t u, Double_t v, const char *text); | |
|
| | | virtual void PaintTextNDC(Double_t u, Double_t v, const wchar_t *tex
t); | |
| virtual void Print(Option_t *option="") const; | | virtual void Print(Option_t *option="") const; | |
|
| virtual void SavePrimitive(ostream &out, Option_t *option = ""); | | virtual void SavePrimitive(std::ostream &out, Option_t *option = "") | |
| | | ; | |
| | | virtual void SetMbTitle(const wchar_t *title=L""); // *MENU* | |
| virtual void SetNDC(Bool_t isNDC=kTRUE); | | virtual void SetNDC(Bool_t isNDC=kTRUE); | |
| virtual void SetText(Double_t x, Double_t y, const char *text) {fX=x
; fY=y; SetTitle(text);} // *MENU* *ARGS={x=>fX,y=>fY,text=>fTitle} | | virtual void SetText(Double_t x, Double_t y, const char *text) {fX=x
; fY=y; SetTitle(text);} // *MENU* *ARGS={x=>fX,y=>fY,text=>fTitle} | |
|
| | | virtual void SetText(Double_t x, Double_t y, const wchar_t *text) {f
X=x; fY=y; SetMbTitle(text);} | |
| virtual void SetX(Double_t x) { fX = x; } // *MENU* | | virtual void SetX(Double_t x) { fX = x; } // *MENU* | |
| virtual void SetY(Double_t y) { fY = y; } // *MENU* | | virtual void SetY(Double_t y) { fY = y; } // *MENU* | |
| | | | |
| ClassDef(TText,2) //Text | | ClassDef(TText,2) //Text | |
| }; | | }; | |
| | | | |
| #endif | | #endif | |
| | | | |
End of changes. 12 change blocks. |
| 2 lines changed or deleted | | 14 lines changed or added | |
|
| TVirtualPS.h | | TVirtualPS.h | |
|
| // @(#)root/base:$Id: TVirtualPS.h 33327 2010-04-30 14:36:34Z couet $ | | // @(#)root/base:$Id: TVirtualPS.h 47117 2012-11-08 16:14:55Z couet $ | |
| // Author: Rene Brun 05/09/99 | | // Author: Rene Brun 05/09/99 | |
| | | | |
| /************************************************************************* | | /************************************************************************* | |
| * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * | | * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * | |
| * All rights reserved. * | | * All rights reserved. * | |
| * * | | * * | |
| * For the licensing terms see $ROOTSYS/LICENSE. * | | * For the licensing terms see $ROOTSYS/LICENSE. * | |
| * For the list of contributors see $ROOTSYS/README/CREDITS. * | | * For the list of contributors see $ROOTSYS/README/CREDITS. * | |
| *************************************************************************/ | | *************************************************************************/ | |
| #ifndef ROOT_TVirtualPS | | #ifndef ROOT_TVirtualPS | |
| | | | |
| skipping to change at line 49 | | skipping to change at line 49 | |
| | | | |
| private: | | private: | |
| TVirtualPS(const TVirtualPS&); // Not implemented | | TVirtualPS(const TVirtualPS&); // Not implemented | |
| TVirtualPS& operator=(const TVirtualPS&); // Not implemented | | TVirtualPS& operator=(const TVirtualPS&); // Not implemented | |
| | | | |
| protected: | | protected: | |
| Int_t fNByte; //Number of bytes written in the file (PD
F) | | Int_t fNByte; //Number of bytes written in the file (PD
F) | |
| Int_t fLenBuffer; //Buffer length | | Int_t fLenBuffer; //Buffer length | |
| Int_t fSizBuffer; //Buffer size | | Int_t fSizBuffer; //Buffer size | |
| Bool_t fPrinted; //True when a page must be printed | | Bool_t fPrinted; //True when a page must be printed | |
|
| ofstream *fStream; //File stream identifier | | std::ofstream *fStream; //File stream identifier | |
| char *fBuffer; //File buffer | | char *fBuffer; //File buffer | |
| const char *fImplicitCREsc; //Escape symbol before enforced new line | | const char *fImplicitCREsc; //Escape symbol before enforced new line | |
| | | | |
| public: | | public: | |
| TVirtualPS(); | | TVirtualPS(); | |
| TVirtualPS(const char *filename, Int_t type=-111); | | TVirtualPS(const char *filename, Int_t type=-111); | |
| virtual ~TVirtualPS(); | | virtual ~TVirtualPS(); | |
| virtual void CellArrayBegin(Int_t W, Int_t H, Double_t x1, Double_t x2,
Double_t y1, Double_t y2) = 0; | | virtual void CellArrayBegin(Int_t W, Int_t H, Double_t x1, Double_t x2,
Double_t y1, Double_t y2) = 0; | |
| virtual void CellArrayFill(Int_t r, Int_t g, Int_t b) = 0; | | virtual void CellArrayFill(Int_t r, Int_t g, Int_t b) = 0; | |
| virtual void CellArrayEnd() = 0; | | virtual void CellArrayEnd() = 0; | |
| | | | |
| skipping to change at line 71 | | skipping to change at line 71 | |
| virtual void DrawBox(Double_t x1, Double_t y1,Double_t x2, Double_t y2
) = 0; | | virtual void DrawBox(Double_t x1, Double_t y1,Double_t x2, Double_t y2
) = 0; | |
| virtual void DrawFrame(Double_t xl, Double_t yl, Double_t xt, Double_t
yt, | | virtual void DrawFrame(Double_t xl, Double_t yl, Double_t xt, Double_t
yt, | |
| Int_t mode, Int_t border, Int_t dark, Int_t ligh
t) = 0; | | Int_t mode, Int_t border, Int_t dark, Int_t ligh
t) = 0; | |
| virtual void DrawPolyMarker(Int_t n, Float_t *x, Float_t *y) = 0; | | virtual void DrawPolyMarker(Int_t n, Float_t *x, Float_t *y) = 0; | |
| virtual void DrawPolyMarker(Int_t n, Double_t *x, Double_t *y) = 0; | | virtual void DrawPolyMarker(Int_t n, Double_t *x, Double_t *y) = 0; | |
| virtual void DrawPS(Int_t n, Float_t *xw, Float_t *yw) = 0; | | virtual void DrawPS(Int_t n, Float_t *xw, Float_t *yw) = 0; | |
| virtual void DrawPS(Int_t n, Double_t *xw, Double_t *yw) = 0; | | virtual void DrawPS(Int_t n, Double_t *xw, Double_t *yw) = 0; | |
| virtual void NewPage() = 0; | | virtual void NewPage() = 0; | |
| virtual void Open(const char *filename, Int_t type=-111) = 0; | | virtual void Open(const char *filename, Int_t type=-111) = 0; | |
| virtual void Text(Double_t x, Double_t y, const char *string) = 0; | | virtual void Text(Double_t x, Double_t y, const char *string) = 0; | |
|
| | | virtual void Text(Double_t x, Double_t y, const wchar_t *string) = 0; | |
| virtual void SetColor(Float_t r, Float_t g, Float_t b) = 0; | | virtual void SetColor(Float_t r, Float_t g, Float_t b) = 0; | |
| | | | |
| virtual void PrintFast(Int_t nch, const char *string=""); | | virtual void PrintFast(Int_t nch, const char *string=""); | |
| virtual void PrintStr(const char *string=""); | | virtual void PrintStr(const char *string=""); | |
| virtual void WriteInteger(Int_t i, Bool_t space=kTRUE); | | virtual void WriteInteger(Int_t i, Bool_t space=kTRUE); | |
| virtual void WriteReal(Float_t r); | | virtual void WriteReal(Float_t r); | |
|
| | | virtual void PrintRaw(Int_t len, const char *str); | |
| virtual void *GetStream() const { return (void*)fStream; } | | virtual void *GetStream() const { return (void*)fStream; } | |
|
| virtual void SetStream(ofstream *os) { fStream = os; } | | virtual void SetStream(std::ofstream *os) { fStream = os; } | |
| | | | |
| virtual void SetType(Int_t /*type*/ = -111) { } | | virtual void SetType(Int_t /*type*/ = -111) { } | |
| virtual Int_t GetType() const { return 111; } | | virtual Int_t GetType() const { return 111; } | |
| | | | |
| ClassDef(TVirtualPS,0) //Abstract interface to a PostScript driver | | ClassDef(TVirtualPS,0) //Abstract interface to a PostScript driver | |
| }; | | }; | |
| | | | |
| R__EXTERN TVirtualPS *gVirtualPS; | | R__EXTERN TVirtualPS *gVirtualPS; | |
| | | | |
| #endif | | #endif | |
| | | | |
End of changes. 5 change blocks. |
| 3 lines changed or deleted | | 5 lines changed or added | |
|
| TVirtualPad.h | | TVirtualPad.h | |
|
| // @(#)root/base:$Id: TVirtualPad.h 42441 2011-12-08 14:15:45Z couet $ | | // @(#)root/base:$Id: TVirtualPad.h 47117 2012-11-08 16:14:55Z couet $ | |
| // Author: Rene Brun 05/12/95 | | // Author: Rene Brun 05/12/95 | |
| | | | |
| /************************************************************************* | | /************************************************************************* | |
| * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * | | * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * | |
| * All rights reserved. * | | * All rights reserved. * | |
| * * | | * * | |
| * For the licensing terms see $ROOTSYS/LICENSE. * | | * For the licensing terms see $ROOTSYS/LICENSE. * | |
| * For the list of contributors see $ROOTSYS/README/CREDITS. * | | * For the list of contributors see $ROOTSYS/README/CREDITS. * | |
| *************************************************************************/ | | *************************************************************************/ | |
| | | | |
| | | | |
| skipping to change at line 178 | | skipping to change at line 178 | |
| virtual void PaintLine3D(Float_t *p1, Float_t *p2) = 0; | | virtual void PaintLine3D(Float_t *p1, Float_t *p2) = 0; | |
| virtual void PaintLine3D(Double_t *p1, Double_t *p2) = 0; | | virtual void PaintLine3D(Double_t *p1, Double_t *p2) = 0; | |
| virtual void PaintPolyLine(Int_t n, Float_t *x, Float_t *y, Option_t
*option="") = 0; | | virtual void PaintPolyLine(Int_t n, Float_t *x, Float_t *y, Option_t
*option="") = 0; | |
| virtual void PaintPolyLine(Int_t n, Double_t *x, Double_t *y, Option
_t *option="") = 0; | | virtual void PaintPolyLine(Int_t n, Double_t *x, Double_t *y, Option
_t *option="") = 0; | |
| virtual void PaintPolyLine3D(Int_t n, Double_t *p) = 0; | | virtual void PaintPolyLine3D(Int_t n, Double_t *p) = 0; | |
| virtual void PaintPolyLineNDC(Int_t n, Double_t *x, Double_t *y, Opt
ion_t *option="") = 0; | | virtual void PaintPolyLineNDC(Int_t n, Double_t *x, Double_t *y, Opt
ion_t *option="") = 0; | |
| virtual void PaintPolyMarker(Int_t n, Float_t *x, Float_t *y, Option
_t *option="") = 0; | | virtual void PaintPolyMarker(Int_t n, Float_t *x, Float_t *y, Option
_t *option="") = 0; | |
| virtual void PaintPolyMarker(Int_t n, Double_t *x, Double_t *y, Opti
on_t *option="") = 0; | | virtual void PaintPolyMarker(Int_t n, Double_t *x, Double_t *y, Opti
on_t *option="") = 0; | |
| virtual void PaintModified() = 0; | | virtual void PaintModified() = 0; | |
| virtual void PaintText(Double_t x, Double_t y, const char *text) = 0
; | | virtual void PaintText(Double_t x, Double_t y, const char *text) = 0
; | |
|
| | | virtual void PaintText(Double_t x, Double_t y, const wchar_t *text)
= 0; | |
| virtual void PaintTextNDC(Double_t u, Double_t v, const char *text)
= 0; | | virtual void PaintTextNDC(Double_t u, Double_t v, const char *text)
= 0; | |
|
| | | virtual void PaintTextNDC(Double_t u, Double_t v, const wchar_t *tex
t) = 0; | |
| virtual Double_t PixeltoX(Int_t px) = 0; | | virtual Double_t PixeltoX(Int_t px) = 0; | |
| virtual Double_t PixeltoY(Int_t py) = 0; | | virtual Double_t PixeltoY(Int_t py) = 0; | |
| virtual void Pop() = 0; | | virtual void Pop() = 0; | |
| virtual void Print(const char *filename="") const = 0; | | virtual void Print(const char *filename="") const = 0; | |
| virtual void Print(const char *filename, Option_t *option) = 0; | | virtual void Print(const char *filename, Option_t *option) = 0; | |
| virtual void Range(Double_t x1, Double_t y1, Double_t x2, Double_t y
2) = 0; | | virtual void Range(Double_t x1, Double_t y1, Double_t x2, Double_t y
2) = 0; | |
| virtual void RangeAxis(Double_t xmin, Double_t ymin, Double_t xmax,
Double_t ymax) = 0; | | virtual void RangeAxis(Double_t xmin, Double_t ymin, Double_t xmax,
Double_t ymax) = 0; | |
| virtual void RecursiveRemove(TObject *obj) = 0; | | virtual void RecursiveRemove(TObject *obj) = 0; | |
| virtual void RedrawAxis(Option_t *option="") = 0; | | virtual void RedrawAxis(Option_t *option="") = 0; | |
| virtual void ResetView3D(TObject *view=0) = 0; | | virtual void ResetView3D(TObject *view=0) = 0; | |
| | | | |
End of changes. 3 change blocks. |
| 1 lines changed or deleted | | 3 lines changed or added | |
|
| TVirtualX.h | | TVirtualX.h | |
|
| // @(#)root/base:$Id: TVirtualX.h 46801 2012-10-25 12:47:21Z rdm $ | | // @(#)root/base:$Id: TVirtualX.h 47117 2012-11-08 16:14:55Z couet $ | |
| // Author: Fons Rademakers 3/12/95 | | // Author: Fons Rademakers 3/12/95 | |
| | | | |
| /************************************************************************* | | /************************************************************************* | |
| * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * | | * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * | |
| * All rights reserved. * | | * All rights reserved. * | |
| * * | | * * | |
| * For the licensing terms see $ROOTSYS/LICENSE. * | | * For the licensing terms see $ROOTSYS/LICENSE. * | |
| * For the list of contributors see $ROOTSYS/README/CREDITS. * | | * For the list of contributors see $ROOTSYS/README/CREDITS. * | |
| *************************************************************************/ | | *************************************************************************/ | |
| | | | |
| | | | |
| skipping to change at line 109 | | skipping to change at line 109 | |
| | | | |
| virtual void DrawBox(Int_t x1, Int_t y1, Int_t x2, Int_t y2, EBoxMo
de mode); | | virtual void DrawBox(Int_t x1, Int_t y1, Int_t x2, Int_t y2, EBoxMo
de mode); | |
| virtual void DrawCellArray(Int_t x1, Int_t y1, Int_t x2, Int_t y2, | | virtual void DrawCellArray(Int_t x1, Int_t y1, Int_t x2, Int_t y2, | |
| Int_t nx, Int_t ny, Int_t *ic); | | Int_t nx, Int_t ny, Int_t *ic); | |
| virtual void DrawFillArea(Int_t n, TPoint *xy); | | virtual void DrawFillArea(Int_t n, TPoint *xy); | |
| virtual void DrawLine(Int_t x1, Int_t y1, Int_t x2, Int_t y2); | | virtual void DrawLine(Int_t x1, Int_t y1, Int_t x2, Int_t y2); | |
| virtual void DrawPolyLine(Int_t n, TPoint *xy); | | virtual void DrawPolyLine(Int_t n, TPoint *xy); | |
| virtual void DrawPolyMarker(Int_t n, TPoint *xy); | | virtual void DrawPolyMarker(Int_t n, TPoint *xy); | |
| virtual void DrawText(Int_t x, Int_t y, Float_t angle, Float_t mgn,
const char *text, | | virtual void DrawText(Int_t x, Int_t y, Float_t angle, Float_t mgn,
const char *text, | |
| ETextMode mode); | | ETextMode mode); | |
|
| | | virtual void DrawText(Int_t x, Int_t y, Float_t angle, Float_t mgn, | |
| | | const wchar_t *text, | |
| | | ETextMode mode); | |
| virtual UInt_t ExecCommand(TGWin32Command *code); | | virtual UInt_t ExecCommand(TGWin32Command *code); | |
| virtual void GetCharacterUp(Float_t &chupx, Float_t &chupy); | | virtual void GetCharacterUp(Float_t &chupx, Float_t &chupy); | |
| EDrawMode GetDrawMode() { return fDrawMode; } | | EDrawMode GetDrawMode() { return fDrawMode; } | |
| virtual Int_t GetDoubleBuffer(Int_t wid); | | virtual Int_t GetDoubleBuffer(Int_t wid); | |
| virtual void GetGeometry(Int_t wid, Int_t &x, Int_t &y, UInt_t &w,
UInt_t &h); | | virtual void GetGeometry(Int_t wid, Int_t &x, Int_t &y, UInt_t &w,
UInt_t &h); | |
| virtual const char *DisplayName(const char * = 0); | | virtual const char *DisplayName(const char * = 0); | |
| virtual Handle_t GetNativeEvent() const; | | virtual Handle_t GetNativeEvent() const; | |
| virtual ULong_t GetPixel(Color_t cindex); | | virtual ULong_t GetPixel(Color_t cindex); | |
| virtual void GetPlanes(Int_t &nplanes); | | virtual void GetPlanes(Int_t &nplanes); | |
| virtual void GetRGB(Int_t index, Float_t &r, Float_t &g, Float_t &b
); | | virtual void GetRGB(Int_t index, Float_t &r, Float_t &g, Float_t &b
); | |
| virtual void GetTextExtent(UInt_t &w, UInt_t &h, char *mess); | | virtual void GetTextExtent(UInt_t &w, UInt_t &h, char *mess); | |
|
| | | virtual void GetTextExtent(UInt_t &w, UInt_t &h, wchar_t *mess); | |
| virtual Int_t GetFontAscent() const; | | virtual Int_t GetFontAscent() const; | |
| virtual Int_t GetFontDescent() const ; | | virtual Int_t GetFontDescent() const ; | |
| virtual Float_t GetTextMagnitude(); | | virtual Float_t GetTextMagnitude(); | |
| virtual Window_t GetWindowID(Int_t wid); | | virtual Window_t GetWindowID(Int_t wid); | |
| virtual Bool_t HasTTFonts() const; | | virtual Bool_t HasTTFonts() const; | |
| virtual Int_t InitWindow(ULong_t window); | | virtual Int_t InitWindow(ULong_t window); | |
| virtual Int_t AddWindow(ULong_t qwid, UInt_t w, UInt_t h); | | virtual Int_t AddWindow(ULong_t qwid, UInt_t w, UInt_t h); | |
| virtual Int_t AddPixmap(ULong_t pixid, UInt_t w, UInt_t h); | | virtual Int_t AddPixmap(ULong_t pixid, UInt_t w, UInt_t h); | |
| virtual void RemoveWindow(ULong_t qwid); | | virtual void RemoveWindow(ULong_t qwid); | |
| virtual void MoveWindow(Int_t wid, Int_t x, Int_t y); | | virtual void MoveWindow(Int_t wid, Int_t x, Int_t y); | |
| | | | |
End of changes. 3 change blocks. |
| 1 lines changed or deleted | | 5 lines changed or added | |
|
| TVirtualX.interface.h | | TVirtualX.interface.h | |
|
| // @(#)root/base:$Id: TVirtualX.interface.h 45302 2012-07-31 08:05:22Z tpoc
hep $ | | // @(#)root/base:$Id: TVirtualX.interface.h 47132 2012-11-09 08:52:11Z coue
t $ | |
| // Author: Valeri Fine 28/07/2004 | | // Author: Valeri Fine 28/07/2004 | |
| | | | |
| // | | // | |
| // This is a copy of the all "abstract" TVirtualX methods to make sure | | // This is a copy of the all "abstract" TVirtualX methods to make sure | |
| // we don't miss it with the implementation | | // we don't miss it with the implementation | |
| // | | // | |
| /************************************************************************* | | /************************************************************************* | |
| * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * | | * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * | |
| * All rights reserved. * | | * All rights reserved. * | |
| * * | | * * | |
| | | | |
| skipping to change at line 24 | | skipping to change at line 24 | |
| *************************************************************************/ | | *************************************************************************/ | |
| | | | |
| public: | | public: | |
| | | | |
| virtual Bool_t Init(void *display=0); | | virtual Bool_t Init(void *display=0); | |
| virtual void ClearWindow(); | | virtual void ClearWindow(); | |
| virtual void ClosePixmap(); | | virtual void ClosePixmap(); | |
| virtual void CloseWindow(); | | virtual void CloseWindow(); | |
| virtual void CopyPixmap(Int_t wid, Int_t xpos, Int_t ypos); | | virtual void CopyPixmap(Int_t wid, Int_t xpos, Int_t ypos); | |
| | | | |
|
| //-Woverloaded-virtual | | //TVirtualX has two versions of CreateOpenGLContext | |
| using TVirtualX::CreateOpenGLContext; | | using TVirtualX::CreateOpenGLContext; | |
| | | | |
|
| | | //TVirtualX has these two methods with wchar_t | |
| | | using TVirtualX::DrawText; | |
| | | using TVirtualX::GetTextExtent;; | |
| | | | |
| virtual void CreateOpenGLContext(Int_t wid=0); | | virtual void CreateOpenGLContext(Int_t wid=0); | |
| virtual void DeleteOpenGLContext(Int_t wid=0); | | virtual void DeleteOpenGLContext(Int_t wid=0); | |
| virtual void DrawBox(Int_t x1, Int_t y1, Int_t x2, Int_t y2, EBoxMo
de mode); | | virtual void DrawBox(Int_t x1, Int_t y1, Int_t x2, Int_t y2, EBoxMo
de mode); | |
| virtual void DrawCellArray(Int_t x1, Int_t y1, Int_t x2, Int_t y2, | | virtual void DrawCellArray(Int_t x1, Int_t y1, Int_t x2, Int_t y2, | |
| Int_t nx, Int_t ny, Int_t *ic); | | Int_t nx, Int_t ny, Int_t *ic); | |
| virtual void DrawFillArea(Int_t n, TPoint *xy); | | virtual void DrawFillArea(Int_t n, TPoint *xy); | |
| virtual void DrawLine(Int_t x1, Int_t y1, Int_t x2, Int_t y2); | | virtual void DrawLine(Int_t x1, Int_t y1, Int_t x2, Int_t y2); | |
| virtual void DrawPolyLine(Int_t n, TPoint *xy); | | virtual void DrawPolyLine(Int_t n, TPoint *xy); | |
| virtual void DrawPolyMarker(Int_t n, TPoint *xy); | | virtual void DrawPolyMarker(Int_t n, TPoint *xy); | |
| virtual void DrawText(Int_t x, Int_t y, Float_t angle, Float_t mgn,
const char *text, | | virtual void DrawText(Int_t x, Int_t y, Float_t angle, Float_t mgn,
const char *text, | |
| | | | |
End of changes. 3 change blocks. |
| 2 lines changed or deleted | | 6 lines changed or added | |
|
| Tools.h | | Tools.h | |
|
| // @(#)root/tmva $Id: Tools.h 40005 2011-06-27 15:29:10Z stelzer $ | | // @(#)root/tmva $Id: Tools.h 47774 2012-12-02 15:07:49Z evt $ | |
| // Author: Andreas Hoecker, Joerg Stelzer, Helge Voss, Kai Voss | | // Author: Andreas Hoecker, Joerg Stelzer, Helge Voss, Kai Voss | |
| | | | |
| /**************************************************************************
******** | | /**************************************************************************
******** | |
| * Project: TMVA - a Root-integrated toolkit for multivariate data analysis
* | | * Project: TMVA - a Root-integrated toolkit for multivariate data analysis
* | |
| * Package: TMVA
* | | * Package: TMVA
* | |
| * Class : Tools
* | | * Class : Tools
* | |
| * Web : http://tmva.sourceforge.net
* | | * Web : http://tmva.sourceforge.net
* | |
| *
* | | *
* | |
| * Description:
* | | * Description:
* | |
| * Global auxiliary applications and data treatment routines
* | | * Global auxiliary applications and data treatment routines
* | |
| | | | |
| skipping to change at line 103 | | skipping to change at line 103 | |
| | | | |
| public: | | public: | |
| | | | |
| // destructor | | // destructor | |
| ~Tools(); | | ~Tools(); | |
| | | | |
| // accessor to single instance | | // accessor to single instance | |
| static Tools& Instance(); | | static Tools& Instance(); | |
| static void DestroyInstance(); | | static void DestroyInstance(); | |
| | | | |
|
| | | template <typename T> Double_t Mean(Long64_t n, const T *a, const Dou | |
| | | ble_t *w=0); | |
| | | template <typename Iterator, typename WeightIterator> Double_t Mean ( | |
| | | Iterator first, Iterator last, WeightIterator w); | |
| | | | |
| | | template <typename T> Double_t RMS(Long64_t n, const T *a, const Doub | |
| | | le_t *w=0); | |
| | | template <typename Iterator, typename WeightIterator> Double_t RMS(It | |
| | | erator first, Iterator last, WeightIterator w); | |
| | | | |
| // simple statistics operations on tree entries | | // simple statistics operations on tree entries | |
| void ComputeStat( const std::vector<TMVA::Event*>&, | | void ComputeStat( const std::vector<TMVA::Event*>&, | |
| std::vector<Float_t>*, | | std::vector<Float_t>*, | |
| Double_t&, Double_t&, Double_t&, | | Double_t&, Double_t&, Double_t&, | |
| Double_t&, Double_t&, Double_t&, Int_t signalClass
, | | Double_t&, Double_t&, Double_t&, Int_t signalClass
, | |
| Bool_t norm = kFALSE ); | | Bool_t norm = kFALSE ); | |
| | | | |
| // compute variance from sums | | // compute variance from sums | |
| inline Double_t ComputeVariance( Double_t sumx2, Double_t sumx, Int_t
nx ); | | inline Double_t ComputeVariance( Double_t sumx2, Double_t sumx, Int_t
nx ); | |
| | | | |
| | | | |
| skipping to change at line 133 | | skipping to change at line 139 | |
| | | | |
| // parse option string for ANN methods | | // parse option string for ANN methods | |
| std::vector<Int_t>* ParseANNOptionString( TString theOptions, Int_t n
var, | | std::vector<Int_t>* ParseANNOptionString( TString theOptions, Int_t n
var, | |
| std::vector<Int_t>* nodes )
; | | std::vector<Int_t>* nodes )
; | |
| | | | |
| // returns the square-root of a symmetric matrix: symMat = sqrtMat*sq
rtMat | | // returns the square-root of a symmetric matrix: symMat = sqrtMat*sq
rtMat | |
| TMatrixD* GetSQRootMatrix( TMatrixDSym* symMat ); | | TMatrixD* GetSQRootMatrix( TMatrixDSym* symMat ); | |
| | | | |
| // returns the covariance matrix of of the different classes (and the
sum) | | // returns the covariance matrix of of the different classes (and the
sum) | |
| // given the event sample | | // given the event sample | |
|
| std::vector<TMatrixDSym*>* CalcCovarianceMatrices( const std::vector< | | std::vector<TMatrixDSym*>* CalcCovarianceMatrices( const std::vector< | |
| Event*>& events, Int_t maxCls, VariableTransformBase* transformBase=0 ); | | TMVA::Event*>& events, Int_t maxCls, VariableTransformBase* transformBase=0 | |
| | | ); | |
| | | std::vector<TMatrixDSym*>* CalcCovarianceMatrices( const std::vector< | |
| | | const TMVA::Event*>& events, Int_t maxCls, VariableTransformBase* transform | |
| | | Base=0 ); | |
| | | | |
| // turns covariance into correlation matrix | | // turns covariance into correlation matrix | |
| const TMatrixD* GetCorrelationMatrix( const TMatrixD* covMat ); | | const TMatrixD* GetCorrelationMatrix( const TMatrixD* covMat ); | |
| | | | |
| // check spline quality by comparison with initial histogram | | // check spline quality by comparison with initial histogram | |
| Bool_t CheckSplines( const TH1*, const TSpline* ); | | Bool_t CheckSplines( const TH1*, const TSpline* ); | |
| | | | |
| // normalization of variable output | | // normalization of variable output | |
| Double_t NormVariable( Double_t x, Double_t xmin, Double_t xmax ); | | Double_t NormVariable( Double_t x, Double_t xmin, Double_t xmax ); | |
| | | | |
| | | | |
| skipping to change at line 176 | | skipping to change at line 183 | |
| TString ReplaceRegularExpressions( const TString& s, const TString& r
eplace = "+" ); | | TString ReplaceRegularExpressions( const TString& s, const TString& r
eplace = "+" ); | |
| | | | |
| // routines for formatted output ----------------- | | // routines for formatted output ----------------- | |
| void FormattedOutput( const std::vector<Double_t>&, const std::vector
<TString>&, | | void FormattedOutput( const std::vector<Double_t>&, const std::vector
<TString>&, | |
| const TString titleVars, const TString titleVal
ues, MsgLogger& logger, | | const TString titleVars, const TString titleVal
ues, MsgLogger& logger, | |
| TString format = "%+1.3f" ); | | TString format = "%+1.3f" ); | |
| void FormattedOutput( const TMatrixD&, const std::vector<TString>&, M
sgLogger& logger ); | | void FormattedOutput( const TMatrixD&, const std::vector<TString>&, M
sgLogger& logger ); | |
| void FormattedOutput( const TMatrixD&, const std::vector<TString>& ve
rt, const std::vector<TString>& horiz, | | void FormattedOutput( const TMatrixD&, const std::vector<TString>& ve
rt, const std::vector<TString>& horiz, | |
| MsgLogger& logger ); | | MsgLogger& logger ); | |
| | | | |
|
| void WriteFloatArbitraryPrecision( Float_t val, ostream& os ); | | void WriteFloatArbitraryPrecision( Float_t val, std::ostream& os ); | |
| void ReadFloatArbitraryPrecision ( Float_t& val, istream& is ); | | void ReadFloatArbitraryPrecision ( Float_t& val, std::istream& is ); | |
| | | | |
| // for histogramming | | // for histogramming | |
| TString GetXTitleWithUnit( const TString& title, const TString& unit
); | | TString GetXTitleWithUnit( const TString& title, const TString& unit
); | |
| TString GetYTitleWithUnit( const TH1& h, const TString& unit, Bool_t
normalised ); | | TString GetYTitleWithUnit( const TH1& h, const TString& unit, Bool_t
normalised ); | |
| | | | |
| // Mutual Information method for non-linear correlations estimates in
2D histogram | | // Mutual Information method for non-linear correlations estimates in
2D histogram | |
| // Author: Moritz Backes, Geneva (2009) | | // Author: Moritz Backes, Geneva (2009) | |
| Double_t GetMutualInformation( const TH2F& ); | | Double_t GetMutualInformation( const TH2F& ); | |
| | | | |
| // Correlation Ratio method for non-linear correlations estimates in
2D histogram | | // Correlation Ratio method for non-linear correlations estimates in
2D histogram | |
| | | | |
| skipping to change at line 261 | | skipping to change at line 268 | |
| Bool_t AddRawLine ( void* node, const char * raw ); | | Bool_t AddRawLine ( void* node, const char * raw ); | |
| Bool_t AddComment ( void* node, const char* comment ); | | Bool_t AddComment ( void* node, const char* comment ); | |
| | | | |
| void* GetParent( void* child); | | void* GetParent( void* child); | |
| void* GetChild ( void* parent, const char* childname=0 ); | | void* GetChild ( void* parent, const char* childname=0 ); | |
| void* GetNextChild( void* prevchild, const char* childname=0 ); | | void* GetNextChild( void* prevchild, const char* childname=0 ); | |
| const char* GetContent ( void* node ); | | const char* GetContent ( void* node ); | |
| const char* GetName ( void* node ); | | const char* GetName ( void* node ); | |
| | | | |
| TXMLEngine& xmlengine() { return *fXMLEngine; } | | TXMLEngine& xmlengine() { return *fXMLEngine; } | |
|
| | | int xmlenginebuffersize() { return 1000000; } | |
| TXMLEngine* fXMLEngine; | | TXMLEngine* fXMLEngine; | |
| | | | |
| private: | | private: | |
| | | | |
| // utilities for correlation ratio | | // utilities for correlation ratio | |
| Double_t GetYMean_binX( const TH2& , Int_t bin_x ); | | Double_t GetYMean_binX( const TH2& , Int_t bin_x ); | |
| | | | |
| }; // Common tools | | }; // Common tools | |
| | | | |
| Tools& gTools(); // global accessor | | Tools& gTools(); // global accessor | |
| | | | |
End of changes. 5 change blocks. |
| 5 lines changed or deleted | | 20 lines changed or added | |
|