GRSISort "v4.0.0.5"
An extension of the ROOT analysis Framework
Loading...
Searching...
No Matches
MakeFragmentHistograms.cxx
Go to the documentation of this file.
1#include "TRuntimeObjects.h"
2#include "TFragment.h"
3
5{
6 std::shared_ptr<const TFragment> frag = obj.GetFragment();
7
8 if(frag != nullptr) {
9 obj.FillHistogram("Addresses", 0xffff, 0, 0xffff, frag->GetAddress());
10 obj.FillHistogram(Form("charge0x%04x", frag->GetAddress()), 2000, 0, 20000, frag->GetCharge());
11 obj.FillHistogram(Form("energy0x%04x", frag->GetAddress()), 2000, 0, 2000, frag->GetEnergy());
12 }
13}
void MakeFragmentHistograms(TRuntimeObjects &obj)
Object passed to the online histograms.
std::shared_ptr< const TFragment > GetFragment()
TH1 * FillHistogram(const char *name, int bins, double low, double high, double value, double weight=1)