forked from root-project/root
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
It will be used for optimized drawing mode for RH1/RH2/RH3 classes. Idea to extract only necessary bins, excluding the rest. Provide small demo macro which will show usage of such large histogram
- Loading branch information
Showing
12 changed files
with
282 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
/// \file ROOT/RHistDisplayItem.h | ||
/// \ingroup HistDraw ROOT7 | ||
/// \author Sergey Linev <s.linev@gsi.de> | ||
/// \date 2020-06-25 | ||
/// \warning This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback | ||
/// is welcome! | ||
|
||
/************************************************************************* | ||
* Copyright (C) 1995-2020, 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 ROOT7_RHistDisplayItem | ||
#define ROOT7_RHistDisplayItem | ||
|
||
#include <ROOT/RDisplayItem.hxx> | ||
|
||
#include <vector> | ||
|
||
namespace ROOT { | ||
namespace Experimental { | ||
|
||
class RAxisBase; | ||
|
||
class RHistDisplayItem : public RIndirectDisplayItem { | ||
std::vector<const RAxisBase *> fAxes; ///< histogram axes, temporary pointer | ||
std::vector<int> fIndicies; ///< [left,right,step] for each axes | ||
std::vector<double> fBinContent; ///< extracted bins values | ||
|
||
public: | ||
RHistDisplayItem() = default; | ||
|
||
RHistDisplayItem(const RDrawable &dr); | ||
|
||
void AddAxis(const RAxisBase *axis, int left = -1, int right = -1, int step = 1) | ||
{ | ||
fAxes.emplace_back(axis); | ||
fIndicies.emplace_back(left); | ||
fIndicies.emplace_back(right); | ||
fIndicies.emplace_back(step); | ||
} | ||
|
||
auto &GetBinContent() { return fBinContent; } | ||
}; | ||
|
||
} // namespace Experimental | ||
} // namespace ROOT | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/// \file RHistDisplayItem.cxx | ||
/// \ingroup Hist ROOT7 | ||
/// \author Sergey Linev <s.linev@gsi.de> | ||
/// \date 2020-06-25 | ||
/// \warning This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback | ||
/// is welcome! | ||
|
||
/************************************************************************* | ||
* Copyright (C) 1995-2020, Rene Brun and Fons Rademakers. * | ||
* All rights reserved. * | ||
* * | ||
* For the licensing terms see $ROOTSYS/LICENSE. * | ||
* For the list of contributors see $ROOTSYS/README/CREDITS. * | ||
*************************************************************************/ | ||
|
||
#include "ROOT/RHistDisplayItem.hxx" | ||
|
||
using namespace ROOT::Experimental; | ||
|
||
RHistDisplayItem::RHistDisplayItem(const RDrawable &dr) : RIndirectDisplayItem(dr) | ||
{ | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.