A band (horizontal projection on S2). More...
#include <XeAnalysis.h>
Public Member Functions | |
| void | draw (int whichEdge) |
| Draw one of its edges. | |
| void | draw () |
| Draw it, being and S1S2Object object. | |
| void | drawBandContent (double cMin, double cMax, int zMode) |
| Draw band content in color code. | |
| void | drawCellContent (double cMin, double cMax, int zMode) |
| Draw contents of cells in color code. | |
| void | extendS1Range (double s1Min, double s1Max) |
| Extend the lower and upper edges of S1 Range. | |
| void | fill (int bin, double w=1.) |
| fill one entry in a given S1 bin. | |
| void | fill (double s1, double w=1.) |
| fill one entry in a given S1 bin. | |
| void | fillAccordingToS1Dist (double w, double *dist) |
| fill a band according to a S1 distribution | |
| void | fillUniformly (double w) |
| fill a band uniformally | |
| double | getContent (double s1) |
| Get cell content, given the value of S1. | |
| double | getContent (int slice) |
| Get cell content, given the slice index. | |
| double | getContent () |
| Get total content. | |
| vector< double > * | getContents () |
| return pointer to counts | |
| double | getLowerEdge (int slice) |
| Get lower edge of S2/S1 for a given slice. | |
| double | getLowerEdge () |
| Get overall lower edge of S2/S1. | |
| double * | getLowerEdges () |
| return list of S2/S1 lower edges | |
| double | getMaxCount () |
| Get maximum cell count. | |
| double | getMinCount () |
| Get minimum cell count. | |
| double | getMinCountButZero () |
| Get minimum count in not empty cells. | |
| vector< double > * | getS1 () |
| return list of stored S1 values | |
| double | getS1Max () |
| Get overall lowest S1 edge. | |
| double | getS1Min () |
| Get overall lowest S1 edge. | |
| int | getSequence () |
| Get the band sequence number. | |
| double | getUpperEdge (int slice) |
| Get upper edge of S2/S1 for a given slice. | |
| double | getUpperEdge () |
| Get overall upper edge of S2/S1. | |
| double * | getUpperEdges () |
| return list of S2/S1 upper edges | |
| double | getWidth (int slice) |
| Get S1 width of a given slice. | |
| double | getWidth () |
| Get overall S1 width. | |
| double | maxX () |
| Return maximum 'X' value, as requested by being an S1S2Object object. | |
| double | maxY () |
| Return maximum 'Y' value, as requested by being an S1S2Object object. | |
| double | minX () |
| Return minimum 'X' value, as requested by being an S1S2Object object. | |
| double | minY () |
| Return minimum 'Y' value, as requested by being an S1S2Object object. | |
| TH1F * | newHistogramOfS1Distribution (int plot=NONE, int nb=AUTO, double s1Min=AUTOMATIC, double s1Max=AUTOMATIC) |
| Create a one-dim histogram of S1 Distribution. | |
| TH1F * | newHistogramOfS1Spectrum (int plot=NONE, int nb=AUTO, double s1Min=AUTOMATIC, double s1Max=AUTOMATIC) |
| Create a one-dim histogram of S1 Spectrum. | |
| TH1F * | newHistogramOfSliceDistribution (int plot=NONE) |
| Create a one-dim histogram of Slice Distribution. | |
| TH1F * | newHistogramOfSliceSpectrum (int plot=NONE) |
| Create a one-dim histogram of Slice Spectrum. | |
| TabulatedDist * | newS1XeDist (int nb=AUTO, double s1Min=AUTOMATIC, double s1Max=AUTOMATIC) |
| Create the distribution (i.e. | |
| XeSpectrum * | newS1XeSpectrum (int nb=AUTO, double s1Min=AUTOMATIC, double s1Max=AUTOMATIC) |
| Create the spectrum of S1 values. | |
| TabulatedDist * | newSliceXeDist () |
| Create the distribution (i.e. | |
| XeSpectrum * | newSliceXeSpectrum () |
| Create the spectrum of Slice values. | |
| void | normalize (double ratio) |
| Normalize (i.e. | |
| bool | printIt (int level=1) |
| print the S2 Band | |
| void | printS1 (int maxEntries=0) |
| Print S1 values. | |
| void | reset () |
| Empty content. | |
| S2Band () | |
| Empty constructor for ROOT. | |
| S2Band (int w, S1S2Bands *s1s2b) | |
| Regular constructor from a S1S2Bands XeObkect. | |
| void | setS2overS1Limits (vector< double > *s2overS1Min, vector< double > *s2overS1Max) |
| Set the vectors describing S2overS1 limits. | |
Static Public Member Functions | |
| static string | getTheName (int s, S1S2Bands *s1s2b) |
Protected Attributes | |
| double | count |
| vector< double > | counts |
| S1S2Bands * | mother |
| int | nSlices |
| XeRun * | run |
| vector< double > | S1 |
| XeBins * | s1Bins |
| vector< double > | S2overS1Max |
| vector< double > | S2overS1Min |
| int | sequence |
A band (horizontal projection on S2).
| S2Band::S2Band | ( | int | w, | |
| S1S2Bands * | s1s2b | |||
| ) |
| void S2Band::draw | ( | int | whichEdge | ) |
Draw one of its edges.
| whichEdge | either UPPER_EDGE or LOWER_EDGE |
| void S2Band::drawBandContent | ( | double | cMin, | |
| double | cMax, | |||
| int | zMode | |||
| ) |
Draw band content in color code.
| cMin | content corresponding to lowest color | |
| cMax | content corresponding to highest color | |
| zMode | either LINEAR or LOG |
| void S2Band::drawCellContent | ( | double | cMin, | |
| double | cMax, | |||
| int | zMode | |||
| ) |
Draw contents of cells in color code.
| cMin | content corresponding to lowest color | |
| cMax | content corresponding to highest color | |
| zMode | either LINEAR or LOG |
| void S2Band::fill | ( | int | bin, | |
| double | w = 1. | |||
| ) |
fill one entry in a given S1 bin.
Warning! Should not be called independently, to avoir mismatch between bands and slices
| bin | s1 slice | |
| w | weight |
| void S2Band::fill | ( | double | s1, | |
| double | w = 1. | |||
| ) |
fill one entry in a given S1 bin.
Warning! Should not be called independently, to avoir mismatch between bands and slices
| s1 | S1 value (which will be stored independently) | |
| w | weight |
| void S2Band::fillAccordingToS1Dist | ( | double | w, | |
| double * | dist | |||
| ) |
fill a band according to a S1 distribution
| w | total content of the band | |
| dist | pointer to table of distributions |
| void S2Band::fillUniformly | ( | double | w | ) |
fill a band uniformally
| w | total content of the band |
| double S2Band::getContent | ( | double | s1 | ) |
Get cell content, given the value of S1.
| s1 | value of s1 |
| double S2Band::getContent | ( | int | slice | ) |
Get cell content, given the slice index.
| slice | slice index, starting from zero |
| double S2Band::getLowerEdge | ( | int | slice | ) |
Get lower edge of S2/S1 for a given slice.
| slice | slice index, starting from 0 |
| double* S2Band::getLowerEdges | ( | ) |
return list of S2/S1 lower edges
| vector<double>* S2Band::getS1 | ( | ) |
return list of stored S1 values
| int S2Band::getSequence | ( | ) |
Get the band sequence number.
| double S2Band::getUpperEdge | ( | int | slice | ) |
Get upper edge of S2/S1 for a given slice.
| slice | slice index, starting from 0 |
| double* S2Band::getUpperEdges | ( | ) |
return list of S2/S1 upper edges
| double S2Band::getWidth | ( | int | slice | ) |
Get S1 width of a given slice.
| slice | slice index, starting from 0 |
| TH1F* S2Band::newHistogramOfS1Distribution | ( | int | plot = NONE, |
|
| int | nb = AUTO, |
|||
| double | s1Min = AUTOMATIC, |
|||
| double | s1Max = AUTOMATIC | |||
| ) |
Create a one-dim histogram of S1 Distribution.
| plot | Do we want to plot the content? can be NONE,LINEAR,LOG | |
| nb | number of bins (default: automatic) | |
| s1Min | lower bound of S1 (default: automatic) | |
| s1Max | upper bound of S1 (default: automatic) |
| TH1F* S2Band::newHistogramOfS1Spectrum | ( | int | plot = NONE, |
|
| int | nb = AUTO, |
|||
| double | s1Min = AUTOMATIC, |
|||
| double | s1Max = AUTOMATIC | |||
| ) |
Create a one-dim histogram of S1 Spectrum.
| plot | Do we want to plot the content? can be NONE,LINEAR,LOG | |
| nb | number of bins (default: automatic) | |
| s1Min | lower bound of S1 (default: automatic) | |
| s1Max | upper bound of S1 (default: automatic) |
| TH1F* S2Band::newHistogramOfSliceDistribution | ( | int | plot = NONE |
) |
Create a one-dim histogram of Slice Distribution.
| plot | Do we want to plot the content? can be NONE,LINEAR,LOG |
| TH1F* S2Band::newHistogramOfSliceSpectrum | ( | int | plot = NONE |
) |
Create a one-dim histogram of Slice Spectrum.
| plot | Do we want to plot the content? can be NONE,LINEAR,LOG |
| TabulatedDist* S2Band::newS1XeDist | ( | int | nb = AUTO, |
|
| double | s1Min = AUTOMATIC, |
|||
| double | s1Max = AUTOMATIC | |||
| ) |
Create the distribution (i.e.
normalized spectrum) of S1 values
| nb | number of bins (default: automatic) | |
| s1Min | lower bound of S1 (default: automatic) | |
| s1Max | upper bound of S1 (default: automatic) |
| XeSpectrum* S2Band::newS1XeSpectrum | ( | int | nb = AUTO, |
|
| double | s1Min = AUTOMATIC, |
|||
| double | s1Max = AUTOMATIC | |||
| ) |
Create the spectrum of S1 values.
| nb | number of bins (default: automatic) | |
| s1Min | lower bound of S1 (default: automatic) | |
| s1Max | upper bound of S1 (default: automatic) |
| TabulatedDist* S2Band::newSliceXeDist | ( | ) |
Create the distribution (i.e.
normalized spectrum) of Slice values
| nb | number of bins (default: automatic) | |
| s1Min | lower bound of Slice (default: automatic) | |
| s1Max | upper bound of Slice (default: automatic) |
| XeSpectrum* S2Band::newSliceXeSpectrum | ( | ) |
Create the spectrum of Slice values.
| nb | number of bins (default: automatic) | |
| s1Min | lower bound of Slice (default: automatic) | |
| s1Max | upper bound of Slice (default: automatic) |
| void S2Band::normalize | ( | double | ratio | ) |
Normalize (i.e.
multiply by a factor)
| ration | multiplicatoin factor |
| bool S2Band::printIt | ( | int | level = 1 |
) | [virtual] |
| void S2Band::printS1 | ( | int | maxEntries = 0 |
) |
Print S1 values.
| maxEntries | number of entries, 0--> all |
| void S2Band::setS2overS1Limits | ( | vector< double > * | s2overS1Min, | |
| vector< double > * | s2overS1Max | |||
| ) |
Set the vectors describing S2overS1 limits.
| s2overS1Min | pointer to the vector of min s2overS1 | |
| s2overS1Max | poaxter to the vector of max s2overS1 |
double S2Band::count [protected] |
Total count
vector<double> S2Band::counts [protected] |
counts per slice
S1S2Bands* S2Band::mother [protected] |
pointer to the S1S2Bands it belongs to
int S2Band::nSlices [protected] |
Number of slices
XeRun* S2Band::run [protected] |
pointer to the run it belongs to
vector<double> S2Band::S1 [protected] |
Stored values of S1 (does not necessarily exist)
XeBins* S2Band::s1Bins [protected] |
Interval defining S1 bins
vector<double> S2Band::S2overS1Max [protected] |
upper limits if S2/S1
vector<double> S2Band::S2overS1Min [protected] |
lower limits if S2/S1
int S2Band::sequence [protected] |
Sequence number , counted from 0
1.6.1