Belle II Software
release-08-01-10
|
ARICH histogram with HAPD plane 3 options for bin segmentation are available type 0 - one bin per HAPD, type 1 - one bin per channel, type 2 - one bin per APD chip HAPD numbering is 1-420 (software numbering), channel is ASIC channel, APD is ASIC channel / 36. More...
#include <ARICHChannelHist.h>
Public Member Functions | |
ARICHChannelHist () | |
Default constructor. | |
ARICHChannelHist (const char *name, const char *title, int type=0, const std::vector< unsigned > &moduleIDs=std::vector< unsigned >()) | |
Constructor with name, title, and type (0 for channel bins (144/HAPD), 1 for HAPD bins (1/HAPD), 2 for APD bins (4/HAPD)) More... | |
void | fillBin (unsigned hapdID, unsigned chID, double weight=1.) |
Add entry to bin corresponding to hapd hapdID and channel chID. More... | |
void | setBinContent (unsigned hapdID, unsigned chID, double value) |
Set content of bin corresponding to hapd hapdID and channel chID. More... | |
void | fillBin (unsigned hapdID, double weight=1.) |
Add entry to bin corresponding to hapd hapdID. More... | |
void | setBinContent (unsigned hapdID, double value) |
Set content of bin corresponding to hapd hapdID. More... | |
void | Draw (Option_t *option="") override |
Draw the histogram. More... | |
void | fillFromTH1 (TH1 *hist) |
Fill the channelHist from the histogram Type 0 channelHist has to be filled with 420*144bin TH1 (each channel) Type 1 channelHist can be filled with 420*144 (channels) or 420*4 (chips), or 420 (HAPDs) bin TH1 Type 2 channelHist can be filled with 420*144 or 420*4 bin TH1 In case histogram has more bins than channelHist bin content is summed up Exampl: histogram with hits/channel can be used to make ChannelHist with hits/hapd. More... | |
void | setPoly (TH2Poly *poly) |
Fill pure TH2Poly from ARICHChannelHist, makes bins and fills content. | |
Protected Member Functions | |
ClassDefOverride (ARICHChannelHist, 2) | |
ClassDef. | |
Protected Attributes | |
TLine | lines [6] |
TText | labels [6] |
int | m_type = 0 |
histogram type | |
std::vector< unsigned > | m_hapd2binMap |
map of bins | |
ARICH histogram with HAPD plane 3 options for bin segmentation are available type 0 - one bin per HAPD, type 1 - one bin per channel, type 2 - one bin per APD chip HAPD numbering is 1-420 (software numbering), channel is ASIC channel, APD is ASIC channel / 36.
Definition at line 27 of file ARICHChannelHist.h.
ARICHChannelHist | ( | const char * | name, |
const char * | title, | ||
int | type = 0 , |
||
const std::vector< unsigned > & | moduleIDs = std::vector<unsigned>() |
||
) |
Constructor with name, title, and type (0 for channel bins (144/HAPD), 1 for HAPD bins (1/HAPD), 2 for APD bins (4/HAPD))
name | name |
title | title |
type | type |
Definition at line 21 of file ARICHChannelHist.cc.
|
override |
Draw the histogram.
option | root draw option |
Definition at line 155 of file ARICHChannelHist.cc.
void fillBin | ( | unsigned | hapdID, |
double | weight = 1. |
||
) |
Add entry to bin corresponding to hapd hapdID.
hapdID | ID number of HAPD module |
Definition at line 198 of file ARICHChannelHist.cc.
void fillBin | ( | unsigned | hapdID, |
unsigned | chID, | ||
double | weight = 1. |
||
) |
Add entry to bin corresponding to hapd hapdID and channel chID.
hapdID | ID number of HAPD module |
chID | channel ID (asic channel) or APD ID |
Definition at line 177 of file ARICHChannelHist.cc.
void fillFromTH1 | ( | TH1 * | hist | ) |
Fill the channelHist from the histogram Type 0 channelHist has to be filled with 420*144bin TH1 (each channel) Type 1 channelHist can be filled with 420*144 (channels) or 420*4 (chips), or 420 (HAPDs) bin TH1 Type 2 channelHist can be filled with 420*144 or 420*4 bin TH1 In case histogram has more bins than channelHist bin content is summed up Exampl: histogram with hits/channel can be used to make ChannelHist with hits/hapd.
hist | historam |
Definition at line 203 of file ARICHChannelHist.cc.
void setBinContent | ( | unsigned | hapdID, |
double | value | ||
) |
Set content of bin corresponding to hapd hapdID.
hapdID | ID number of HAPD module |
value | bin content |
Definition at line 193 of file ARICHChannelHist.cc.
void setBinContent | ( | unsigned | hapdID, |
unsigned | chID, | ||
double | value | ||
) |
Set content of bin corresponding to hapd hapdID and channel chID.
hapdID | ID number of HAPD module |
chID | channel ID (asic channel) or APD ID |
value | bin content |
Definition at line 185 of file ARICHChannelHist.cc.