31 unsigned int & xfirst,
unsigned int & xlast,
int & shift_left )
34 std::cout <<
"\n Entry IndicatorObjectStock::ComputeBinRange " << std::endl;
35 std::cout <<
"Compare Hparam.xlast " << Hparam_stock.
xlast << std::endl;
36 std::cout <<
"Faxis->GetLast() " << fcommon_xaxis_th->
GetLast() << std::endl;
37 std::cout <<
"Compare Hparam.xfirst " << Hparam_stock.
xfirst << std::endl;
38 std::cout <<
"Faxis->GetFirst() " << fcommon_xaxis_th->
GetFirst() << std::endl;
42 xlast = Hparam_stock.
xlast;
50 xfirst = fcommon_xaxis_th->
GetFirst();
53 unsigned int size_data = ldata->
GetSize();
55 unsigned int size_axis = fcommon_xaxis_th->
GetNbins();
57 shift_left = size_axis - size_data - fcommon_xaxis_th->
GetShift();
60 std::cout <<
"First assign xfirst/xlast " << xfirst <<
" " << xlast << std::endl;
61 std::cout <<
"shift_left " << shift_left << std::endl;
65 xfirst = Hparam_stock.
xfirst + shift_left;
68 if ( Hparam_stock.
xfirst > 1 ) {
70 std::cout <<
" > 1 modify xfirst" << std::endl;
71 std::cout <<
"tmp xfirst " << xfirst << std::endl;
73 xfirst = xfirst - ( Hparam_stock.
xfirst - 1 );
76 xfirst = TMath::Max ( (
int)xfirst, (
int)Hparam_stock.
xfirst );
79 std::cout <<
"xfirst not modified " << std::endl;
84 std::cout <<
"used GetShift() " << fcommon_xaxis_th->
GetShift() << std::endl;
85 std::cout <<
"will return xfirst/xlast " << xfirst <<
" " << xlast << std::endl;
86 std::cout <<
"will return shift_left " << shift_left << std::endl;
ClassImp(AbstractObjectStock) AbstractObjectStock
Define Base classes for ObjectStock.
Hparam_stock_t Hparam_stock
void ComputeBinRange(ListDataStockBase *ldata, CommonXAxis *fcommon_xaxis_th, Hparam_stock_t &Hparam_stock, unsigned int &xfirst, unsigned int &xlast, int &shift_left)
set up bin first/ last.
virtual unsigned int GetSize() const =0
Return the size of the vector.
Abstract base class for the ListDataStock, for storing base pointers in vectors.
Define an abstract base class for all objects to be painted in a THStock.