Revision 2f0e997477b3a8c478567f7d80242184fb44badb authored by Sergey Linev on 07 January 2020, 17:17:38 UTC, committed by Sergey Linev on 09 January 2020, 10:03:51 UTC
Require special set of existing drive letters. For now limit by working dir.
1 parent e4bb25b
RooCatType.cxx
/*****************************************************************************
* Project: RooFit *
* Package: RooFitCore *
* @(#)root/roofitcore:$Id$
* Authors: *
* WV, Wouter Verkerke, UC Santa Barbara, verkerke@slac.stanford.edu *
* DK, David Kirkby, UC Irvine, dkirkby@uci.edu *
* *
* Copyright (c) 2000-2005, Regents of the University of California *
* and Stanford University. All rights reserved. *
* *
* Redistribution and use in source and binary forms, *
* with or without modification, are permitted according to the terms *
* listed in LICENSE (http://roofit.sourceforge.net/license.txt) *
*****************************************************************************/
/**
\file RooCatType.cxx
\class RooCatType
\ingroup Roofitcore
RooCatType is an auxilary class for RooAbsCategory and defines a
a single category state. The class holds a string label and an integer
index value which define the state
**/
#include "RooFit.h"
#include <stdlib.h>
#include "TClass.h"
#include "RooCatType.h"
#include "Riostream.h"
using namespace std;
ClassImp(RooCatType);
;
////////////////////////////////////////////////////////////////////////////////
/// Constructor with name argument
void RooCatType::SetName(const Text_t* name)
{
if (strlen(name)>255) {
std::cout << "RooCatType::SetName warning: label '" << name << "' truncated at 255 chars" << std::endl ;
_label[255]=0 ;
}
strncpy(_label,name,255) ;
}
////////////////////////////////////////////////////////////////////////////////
/// Print the name of the state
void RooCatType::printName(ostream& os) const
{
os << GetName() ;
}
////////////////////////////////////////////////////////////////////////////////
/// Print the title of the state
void RooCatType::printTitle(ostream& os) const
{
os << GetTitle() ;
}
////////////////////////////////////////////////////////////////////////////////
/// Print the class name of the state
void RooCatType::printClassName(ostream& os) const
{
os << IsA()->GetName() ;
}
////////////////////////////////////////////////////////////////////////////////
/// Print the value (index integer) of the state
void RooCatType::printValue(ostream& os) const
{
os << getVal() ;
}
Computing file changes ...