#include <SpaceView.h>
|
| SpaceView (const std::string &name="CRTEvd", const std::string &title="CRT Event Display", const std::string &zTitle="Hits") |
|
| SpaceView (TPad *pad, const std::string &name="CRTEvd", const std::string &title="CRT Event Display", const std::string &zTitle="Hits") |
|
| SpaceView (const double zMax, const std::string &name="CRTEvd", const std::string &title="CRT Event Display", const std::string &zTitle="Hits") |
|
| SpaceView (TPad *pad, const double zMax, const std::string &name="CRTEvd", const std::string &title="CRT Event Display", const std::string &zTitle="Hits") |
|
| ChannelView () |
|
| ChannelView (TPad *pad) |
|
virtual | ~ChannelView () |
|
void | Fill (const size_t module, const size_t channel, const double weight=1.0) |
|
void | SetValue (const size_t module, const size_t channel, const double value) |
|
void | Draw (const char *option) |
|
void | Reset (const char *option) |
|
|
virtual void | doFill (const size_t module, const size_t channel, const double weight) override |
|
virtual void | doSetValue (const size_t module, const size_t channel, const double value) override |
|
virtual void | doDraw (const char *option) override |
|
virtual void | doReset (const char *option) override |
|
TPad * | GetMainPad () |
|
Definition at line 14 of file SpaceView.h.
Definition at line 40 of file SpaceView.cpp.
43 fUpstream = TH2D((
"upstream"+
name).c_str(), (
"Upstream;cartoon x;cartoon y;"+zTitle).c_str(), binLimit, 0, binLimit, binLimit, 0, binLimit);
46 fDownstream = TH2D((
"downstream"+
name).c_str(), (
"Downstream;cartoon x;cartoon y;"+zTitle).c_str(), binLimit, 0, binLimit, binLimit, 0, binLimit);
void ConfigHistogram(TH2 &hist)
static constexpr size_t ChannelsPerModule
Definition at line 52 of file SpaceView.cpp.
55 std::cout <<
"binLimit is " << binLimit <<
" = 4*" <<
ChannelsPerModule <<
"*2\n";
56 fUpstream = TH2D((
"upstream"+
name).c_str(), (
"Upstream;cartoon x;cartoon y;"+zTitle).c_str(), binLimit, 0, binLimit, binLimit, 0, binLimit);
57 fDownstream = TH2D((
"downstream"+
name).c_str(), (
"Downstream;cartoon x;cartoon y;"+zTitle).c_str(), binLimit, 0, binLimit, binLimit, 0, binLimit);
void ConfigHistogram(TH2 &hist)
static constexpr size_t ChannelsPerModule
CRT::SpaceView::SpaceView |
( |
const double |
zMax, |
|
|
const std::string & |
name = "CRTEvd" , |
|
|
const std::string & |
title = "CRT Event Display" , |
|
|
const std::string & |
zTitle = "Hits" |
|
) |
| |
Definition at line 65 of file SpaceView.cpp.
SpaceView(const std::string &name="CRTEvd", const std::string &title="CRT Event Display", const std::string &zTitle="Hits")
CRT::SpaceView::SpaceView |
( |
TPad * |
pad, |
|
|
const double |
zMax, |
|
|
const std::string & |
name = "CRTEvd" , |
|
|
const std::string & |
title = "CRT Event Display" , |
|
|
const std::string & |
zTitle = "Hits" |
|
) |
| |
Definition at line 71 of file SpaceView.cpp.
SpaceView(const std::string &name="CRTEvd", const std::string &title="CRT Event Display", const std::string &zTitle="Hits")
void CRT::SpaceView::ConfigHistogram |
( |
TH2 & |
hist | ) |
|
|
private |
void CRT::SpaceView::doDraw |
( |
const char * |
option | ) |
|
|
overrideprotectedvirtual |
void CRT::SpaceView::doFill |
( |
const size_t |
module, |
|
|
const size_t |
channel, |
|
|
const double |
weight |
|
) |
| |
|
overrideprotectedvirtual |
Implements CRT::ChannelView.
Definition at line 77 of file SpaceView.cpp.
static constexpr size_t NModules
void doSomething(TH2 &hist, const size_t channel, const size_t module, FUNC &&func)
void CRT::SpaceView::doReset |
( |
const char * |
option | ) |
|
|
overrideprotectedvirtual |
void CRT::SpaceView::doSetValue |
( |
const size_t |
module, |
|
|
const size_t |
channel, |
|
|
const double |
value |
|
) |
| |
|
overrideprotectedvirtual |
template<class FUNC >
void CRT::SpaceView::doSomething |
( |
TH2 & |
hist, |
|
|
const size_t |
channel, |
|
|
const size_t |
module, |
|
|
FUNC && |
func |
|
) |
| |
|
private |
Definition at line 84 of file SpaceView.cpp.
87 const size_t local =
module%16;
90 const bool secondLayer = (
channel > 32);
92 std::cout <<
"module is " <<
module <<
", channel is " <<
channel <<
", local is " << local <<
".\n";
96 std::cout <<
"Filling beam-left with subtraction at xbin=" << xbin <<
"\n";
97 for(
int ybin = endOfFrame; ybin < nYBins; ++ybin)
107 std::cout <<
"Filling beam-right with subtraction at xbin=" << xbin <<
"\n";
108 for(
int ybin = endOfFrame; ybin < nYBins; ++ybin)
115 else if(local > 5 && local < 10)
118 std::cout <<
"Filling at xbin=" << xbin <<
"\n";
119 for(
int ybin = 0; ybin < endOfFrame; ++ybin)
129 std::cout <<
"Filling at ybin=" << ybin <<
"\n";
130 for(
int xbin = 0; xbin < endOfFrame; ++xbin)
140 std::cout <<
"Filling at ybin=" << ybin <<
"\n";
141 for(
int xbin = endOfFrame; xbin < nXBins; ++xbin)
static constexpr size_t ChannelsPerModule
void CRT::SpaceView::SetupPads |
( |
| ) |
|
|
private |
TH2D CRT::SpaceView::fDownstream |
|
private |
TH2D CRT::SpaceView::fUpstream |
|
private |
The documentation for this class was generated from the following files:
- duneprototypes/duneprototypes/Protodune/singlephase/CRT/alg/plot/SpaceView.h
- duneprototypes/duneprototypes/Protodune/singlephase/CRT/alg/plot/SpaceView.cpp