S1Slice Class Reference

A Slice (vertical cut in S1). More...

#include <XeAnalysis.h>

Inheritance diagram for S1Slice:
DetectorComponent S1S2Object XeMath XeObject XeGraphics XeObject XeCore XeCore XeCore XeCore

List of all members.

Public Member Functions

void draw ()
 Draw it, being and S1S2Object object.
void fill (int band, double w=1.)
 fill one entry in a given band Warning! Should not be called independently, to avoir mismatch between bands and slices
void fill (double s1, double s2, double w=1.)
 fill one entry in a given band Warning! Should not be called independently, to avoir mismatch between bands and slices
void fillForStudy (double s1, double s2)
 Fill the S1overS2 table for study (i.e.
double getArea ()
 Return area in s1*log(S2/S1) space.
double getCentralS1 ()
 Return central value of S1.
double getContent (int band)
 Return count in given band.
double getContent ()
 Return total count.
double getMaxCount ()
 Return maximum count in all cells.
double getMinCount ()
 Return minimum count in all cells.
double getS1Max ()
 Return maximum value of S1.
double getS1Min ()
 Return minimum value of S1.
double getS1Width ()
 Return width of S1 interval.
XeBinsgetS2overS1Bins ()
 Return S2/S1 bins as an XeBins* XeObject.
double getS2overS1Max ()
 Return largest S2overS1 bin.
double getS2overS1Min ()
 Return smallest S2overS1 bin.
vector< double > * getS2overS1Vector ()
 Return list of S2/S1 bins.
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.
void normalize (double ratio)
 Normalize (i.e.
bool printIt (int level=1)
 print the S1 Slice
void reset ()
 Empty content.
void reweightTheBands (double *weights)
 reweights contents inside slices
 S1Slice (int w, S1S2Bands *s1s2b)
 Regulat constructor from an S1S2Bands XeObject.
void setS1Max (double s1Max)
 Set S1 maximum value.
void setS1Min (double s1Min)
 Set S1 minimum value.
void setS2overS1Bins (XeBins *s2overS1Bins)

Static Public Member Functions

static string getTheName (int s, S1S2Bands *s1s2b)

Protected Attributes

double count
vector< double > counts
S1S2Bandsmother
int nBands
XeRunrun
double S1Max
double S1Min
XeBinsS2overS1Bins
vector< double > S2overS1Values
int sequence

Detailed Description

A Slice (vertical cut in S1).

Defined by slice number, and characterized by S1Min, S1Max


Constructor & Destructor Documentation

S1Slice::S1Slice ( int  w,
S1S2Bands s1s2b 
)

Regulat constructor from an S1S2Bands XeObject.

Parameters:
w which slice
s1s2b original S1S2Bands

Member Function Documentation

void S1Slice::fill ( int  band,
double  w = 1. 
)

fill one entry in a given band Warning! Should not be called independently, to avoir mismatch between bands and slices

Parameters:
bin band index
w weight
void S1Slice::fill ( double  s1,
double  s2,
double  w = 1. 
)

fill one entry in a given band Warning! Should not be called independently, to avoir mismatch between bands and slices

Parameters:
s1 S1 value
s2 S2 value
w weight
void S1Slice::fillForStudy ( double  s1,
double  s2 
)

Fill the S1overS2 table for study (i.e.

define the bands)

Parameters:
s1 S1 value
s2 S2 value
void S1Slice::normalize ( double  ratio  ) 

Normalize (i.e.

multiply by a factor)

Parameters:
ration multiplicatoin factor
bool S1Slice::printIt ( int  level = 1  )  [virtual]

print the S1 Slice

Parameters:
level print level

Reimplemented from XeObject.

void S1Slice::reweightTheBands ( double *  weights  ) 

reweights contents inside slices

Parameters:
weights relative weight of each band (sum[weights]=1);

Member Data Documentation

double S1Slice::count [protected]

Total count

vector<double> S1Slice::counts [protected]

getContents per band

S1S2Bands* S1Slice::mother [protected]

Pointer to S1S2Bands it belongs to

int S1Slice::nBands [protected]

number of bands

XeRun* S1Slice::run [protected]

Pointer to run (actually XeRun) it belongs to

double S1Slice::S1Max [protected]

Maximum value of S1

double S1Slice::S1Min [protected]

Minimum value of S1

Bands limits in S2/S1, as a XeBins

vector<double> S1Slice::S2overS1Values [protected]

Values of S2/S1 for studies

int S1Slice::sequence [protected]

slice sequence number, counting from 0


The documentation for this class was generated from the following file:
 All Classes Functions Variables

Generated on 10 Apr 2015 for Xephyr by  doxygen 1.6.1