Jpp
|
Parametrisation of two-fold coincidence rate due to K40 and other radioactive decays. More...
#include <JFitK40.hh>
Public Types | |
typedef JCombinatorics::pair_type | pair_type |
Data structure for a pair of addresses. More... | |
Public Member Functions | |
JFitK40 (const JModule &module, const Double_t xmin, const Double_t xmax, const Double_t ymin, const Double_t ymax, const bool option) | |
Constructor. More... | |
Double_t | getSigmaK40 () const |
Get intrinsic K40 arrival time spread. More... | |
void | setSigmaK40 (const Double_t sigma) |
Set intrinsic K40 arrival time spread. More... | |
bool | is_disabled (int pmt) const |
Test PMT status. More... | |
bool | is_average_t0 (int pmt) const |
Test PMT status. More... | |
Double_t | getT0 (const int pmt) const |
Get time offset of given PMT. More... | |
void | enablePMT (const int pmt) |
Enable PMT. More... | |
void | disablePMT (const int pmt) |
Disable PMT. More... | |
double | getDot (const pair_type &pair) const |
Get cosine of space angle between PMT axes. More... | |
Double_t | getSigma (const pair_type &pair) const |
Get time resolution of given PMT pair. More... | |
Double_t | getT0 (const pair_type &pair) const |
Get time offset of given PMT pair. More... | |
Double_t | getValue (const Double_t ct) const |
Get K40 coincidence rate as a function of cosine angle between PMT axes. More... | |
Double_t | getValue (const pair_type &pair) const |
Get K40 coincidence rate. More... | |
Double_t | getValue (const pair_type &pair, const Double_t dt_ns) const |
Get K40 coincidence rate. More... | |
TFitResultPtr | operator() (TH2 &h2, const std::string &option) |
Fit histogram. More... | |
const Double_t * | getModelParameters () const |
Get model parameters. More... | |
Double_t * | getModelParameters () |
Get model parameters. More... | |
void | setModelParameters (const Double_t *data) |
Set model parameters. More... | |
Double_t | getModelParameter (Int_t i) const |
Get model parameter. More... | |
JFitParameter_t | getModelParameter (Double_t JFitK40Parameters::*p) const |
Get model parameter. More... | |
JFitParameter_t | getModelParameter (Int_t pmt, Double_t JPMTParameters_t::*p) const |
Get model parameter. More... | |
Double_t | getQE (const int pmt) const |
Get QE of given PMT. More... | |
void | setQE (const int pmt, const Double_t QE) |
Set QE of given PMT. More... | |
Double_t | getTTS (const int pmt) const |
Get time resolution of given PMT. More... | |
void | setTTS (const int pmt, const Double_t TTS) |
Set time resolution of given PMT. More... | |
void | setT0 (const int pmt, const Double_t t0) |
Set time offset of given PMT. More... | |
const JPMT & | getPMT (const int index) const |
Get PMT. More... | |
JPMT & | getPMT (const int index) |
Get PMT. More... | |
void | compile () |
Compile position of module from the positions of the PMTs. More... | |
void | rotate (const JRotation3D &R) |
Rotate module. More... | |
JPosition3D & | rotate (const JRotation3X &R) |
Rotate around X-axis. More... | |
JPosition3D & | rotate (const JRotation3Y &R) |
Rotate around Y-axis. More... | |
JPosition3D & | rotate (const JRotation3Z &R) |
Rotate around Z-axis. More... | |
JPosition3D & | rotate (const JQuaternion3D &Q) |
Rotate. More... | |
void | rotate_back (const JRotation3D &R) |
Rotate back module. More... | |
JPosition3D & | rotate_back (const JRotation3X &R) |
Rotate back around X-axis. More... | |
JPosition3D & | rotate_back (const JRotation3Y &R) |
Rotate back around Y-axis. More... | |
JPosition3D & | rotate_back (const JRotation3Z &R) |
Rotate back around Z-axis. More... | |
void | transform (const JRotation3D &R, const JVector3D &pos) |
Transformation of geometry (see method JGEOMETRY3D::JPosition3D::transform(const JRotation3D&, const JVector3D&)). More... | |
void | transform (const JTransformation3D &T) |
Transformation of geometry. More... | |
JVector3D & | transform (const JMatrix3D &T) |
Transform. More... | |
JModule & | set (const JVector3D &pos) |
Set position. More... | |
JModule & | set (const double t0) |
Set time offset. More... | |
JModule & | add (const JVector3D &pos) |
Add position. More... | |
JModule & | add (const double t0) |
Add time offset. More... | |
JModule & | sub (const JVector3D &pos) |
Subtract position. More... | |
JModule & | sub (const double t0) |
Subtract time offset. More... | |
JModule & | operator+= (const JVector3D &pos) |
Add position. More... | |
JModule & | operator-= (const JVector3D &pos) |
Subtract position. More... | |
int | getID () const |
Get identifier. More... | |
void | setID (const int id) |
Set identifier. More... | |
bool | less (const JObjectID &object) const |
Less than method. More... | |
bool | less (const int id) const |
Less than method. More... | |
bool | less (const JModuleLocation &location) const |
Less than method. More... | |
bool | more (const int id) const |
More than method. More... | |
const JModuleLocation & | getLocation () const |
Get location. More... | |
JModuleLocation & | getLocation () |
Get location. More... | |
void | setLocation (const JModuleLocation &location) |
Set location. More... | |
std::string | toString () const |
Convert module location to string. More... | |
std::string | toString (const std::string &fmt, const std::string target="%") const |
Convert module loation to string. More... | |
int | getString () const |
Get string number. More... | |
int | getFloor () const |
Get floor number. More... | |
const JPosition3D & | getPosition () const |
Get position. More... | |
JPosition3D & | getPosition () |
Get position. More... | |
void | setPosition (const JVector3D &pos) |
Set position. More... | |
operator JAngle3D () const | |
Type conversion operator. More... | |
operator JVersor3D () const | |
Type conversion operator. More... | |
void | transform_back (const JRotation3D &R, const JVector3D &pos) |
Transform back position. More... | |
double | getDot (const JAngle3D &angle) const |
Get dot product. More... | |
double | getDot (const JVersor3D &dir) const |
Get dot product. More... | |
double | getDot (const JVersor3Z &dir) const |
Get dot product. More... | |
double | getDot (const JVector3D &vector) const |
Get dot product. More... | |
operator JVector2D () const | |
Type conversion operator. More... | |
double | getX () const |
Get x position. More... | |
double | getY () const |
Get y position. More... | |
double | getZ () const |
Get z position. More... | |
JVector3D & | negate () |
Negate vector. More... | |
JVector3D & | mul (const double factor) |
Scale vector. More... | |
JVector3D & | mul (const JNullType &object) |
Multiply with object. More... | |
JVector3D & | div (const double factor) |
Scale vector. More... | |
bool | equals (const JVector3D &vector) const |
Check equality. More... | |
double | getLengthSquared () const |
Get length squared. More... | |
double | getLength () const |
Get length. More... | |
double | getDistanceSquared (const JVector3D &pos) const |
Get squared of distance to point. More... | |
double | getDistance (const JVector3D &pos) const |
Get distance to point. More... | |
JVector3D & | cross (const JVector3D &first, const JVector3D &second) |
Get cross product. More... | |
void | configure (const int numberOfIndices) |
Configure. More... | |
unsigned int | getNumberOfIndices () const |
Get number of indices. More... | |
unsigned int | getNumberOfPairs () const |
Get number of pairs. More... | |
int | getIndex (const int first, const int second) const |
Get index of pair of indices. More... | |
const pair_type & | getPair (const int index) const |
Get pair of indices for given index. More... | |
template<class JComparator_t > | |
void | sort (JComparator_t comparator) |
Sort address pairs. More... | |
Static Public Member Functions | |
static Double_t | getRate (const Double_t *x, const Double_t *data) |
Get K40 coincidence rate as a function of the fit parameters. More... | |
static Int_t | getNumberOfModelParameters () |
Get number of model parameters. More... | |
static int | getSign (const int first, const int second) |
Sign of pair of indices. More... | |
static int | getSign (const pair_type &pair) |
Sign of pair of indices. More... | |
Public Attributes | |
Double_t | Rate_Hz |
maximal coincidence rate [Hz] More... | |
Double_t | p1 |
angle dependence coincidence rate More... | |
Double_t | p2 |
angle dependence coincidence rate More... | |
Double_t | p3 |
angle dependence coincidence rate More... | |
Double_t | p4 |
angle dependence coincidence rate More... | |
Double_t | bg |
remaining constant background More... | |
Double_t | cc |
fraction of signal correlated background More... | |
JPMTParameters_t | parameters [NUMBER_OF_PMTS] |
Protected Attributes | |
int | __id |
int | string |
int | floor |
double | __x |
double | __y |
double | __z |
std::vector< pair_type > | zbuf1D |
std::vector< std::vector< int > > | zbuf2D |
Private Member Functions | |
JFitK40 () | |
Default constructor. More... | |
Static Private Member Functions | |
static JFitK40 & | getInstance () |
Get unique instance of fit object. More... | |
Private Attributes | |
Double_t | sigmaK40_ns |
intrinsic K40 arrival time spread [ns] More... | |
int | index_of_average_t0 |
index of t0 used for average time offset More... | |
bool | disable [NUMBER_OF_PMTS] |
disable PMT from fit More... | |
Parametrisation of two-fold coincidence rate due to K40 and other radioactive decays.
Note that for use in ROOT fit operations, the member method JFitK40::getRate is static.
Definition at line 273 of file JFitK40.hh.
Data structure for a pair of addresses.
Definition at line 282 of file JFitK40.hh.
|
inline |
Constructor.
module | detector module |
xmin | minimal x |
xmax | maximal x |
ymin | minimal y |
ymax | maximal y |
option | true = fix average t0; false = free average t0 |
Definition at line 295 of file JFitK40.hh.
|
inlineprivate |
|
inline |
Get intrinsic K40 arrival time spread.
Definition at line 328 of file JFitK40.hh.
|
inline |
Set intrinsic K40 arrival time spread.
sigma | sigma [ns] |
Definition at line 339 of file JFitK40.hh.
|
inline |
Test PMT status.
pmt | pmt address |
Definition at line 351 of file JFitK40.hh.
|
inline |
Test PMT status.
pmt | pmt address |
Definition at line 363 of file JFitK40.hh.
|
inline |
Get time offset of given PMT.
Note that if the average time offset is constraint, the time offset of each PMT is corrected by the average time offset of all PMTs.
pmt | pmt address |
Definition at line 378 of file JFitK40.hh.
|
inline |
Enable PMT.
pmt | pmt address |
Definition at line 418 of file JFitK40.hh.
|
inline |
Disable PMT.
Note that if the average time offset is constraint to zero, the corresponding index may change.
pmt | pmt address |
Definition at line 432 of file JFitK40.hh.
|
inline |
Get cosine of space angle between PMT axes.
pair | pair of addresses |
Definition at line 457 of file JFitK40.hh.
|
inline |
Get time resolution of given PMT pair.
pair | pair of addresses |
Definition at line 470 of file JFitK40.hh.
|
inline |
Get time offset of given PMT pair.
pair | pair of addresses |
Definition at line 484 of file JFitK40.hh.
|
inline |
Get K40 coincidence rate as a function of cosine angle between PMT axes.
ct | cosine angle between PMT axes |
Definition at line 514 of file JFitK40.hh.
|
inline |
Get K40 coincidence rate.
pair | pair of addresses |
Definition at line 526 of file JFitK40.hh.
|
inline |
Get K40 coincidence rate.
pair | pair of addresses |
dt_ns | time difference [ns] |
Definition at line 543 of file JFitK40.hh.
|
inline |
Fit histogram.
Note that the PMT parameters which are part of the model are reset before the fit according the status of each PMT and the obtained fit parameters are copied back to the model parameters after the fit.
h2 | ROOT 2D-histogram |
option | fit option |
Definition at line 561 of file JFitK40.hh.
|
inlinestatic |
Get K40 coincidence rate as a function of the fit parameters.
To speed up the calculation, it is assumed that the parameter values do not change unless also the x[0] value changes (i.e. the index of the PMT pair).
x | pointer to data |
data | pointer to parameter values |
Definition at line 620 of file JFitK40.hh.
|
inlinestaticprivate |
Get unique instance of fit object.
Definition at line 663 of file JFitK40.hh.
|
inlinestaticinherited |
Get number of model parameters.
Definition at line 98 of file JFitK40.hh.
|
inlineinherited |
Get model parameters.
Definition at line 109 of file JFitK40.hh.
|
inlineinherited |
Get model parameters.
Definition at line 120 of file JFitK40.hh.
|
inlineinherited |
Set model parameters.
data | pointer to parameters |
Definition at line 131 of file JFitK40.hh.
|
inlineinherited |
Get model parameter.
i | parameter index |
Definition at line 145 of file JFitK40.hh.
|
inlineinherited |
Get model parameter.
p | pointer to data member |
Definition at line 157 of file JFitK40.hh.
|
inlineinherited |
Get model parameter.
pmt | PMT number |
p | pointer to data member of PMT parameters |
Definition at line 172 of file JFitK40.hh.
|
inlineinherited |
Get QE of given PMT.
pmt | pmt address |
Definition at line 186 of file JFitK40.hh.
|
inlineinherited |
Set QE of given PMT.
pmt | pmt address |
QE | QE |
Definition at line 198 of file JFitK40.hh.
|
inlineinherited |
Get time resolution of given PMT.
pmt | pmt address |
Definition at line 210 of file JFitK40.hh.
|
inlineinherited |
Set time resolution of given PMT.
pmt | pmt address |
TTS | TTS [ns] |
Definition at line 222 of file JFitK40.hh.
|
inlineinherited |
Set time offset of given PMT.
pmt | pmt address |
t0 | time offset [ns] |
Definition at line 248 of file JFitK40.hh.
|
inlineinherited |
Get PMT.
index | readout channel (TDC) |
Definition at line 141 of file JModule.hh.
|
inlineinherited |
Get PMT.
index | readout channel (TDC) |
Definition at line 153 of file JModule.hh.
|
inlineinherited |
Compile position of module from the positions of the PMTs.
Definition at line 162 of file JModule.hh.
|
inlineinherited |
Rotate module.
R | rotation matrix |
Definition at line 182 of file JModule.hh.
|
inlineinherited |
Rotate around X-axis.
R | rotation matrix |
Definition at line 213 of file JPosition3D.hh.
|
inlineinherited |
Rotate around Y-axis.
R | rotation matrix |
Definition at line 241 of file JPosition3D.hh.
|
inlineinherited |
Rotate around Z-axis.
R | rotation matrix |
Definition at line 269 of file JPosition3D.hh.
|
inlineinherited |
Rotate.
Q | quaternion |
Definition at line 297 of file JPosition3D.hh.
|
inlineinherited |
Rotate back module.
R | rotation matrix |
Definition at line 197 of file JModule.hh.
|
inlineinherited |
Rotate back around X-axis.
R | rotation matrix |
Definition at line 227 of file JPosition3D.hh.
|
inlineinherited |
Rotate back around Y-axis.
R | rotation matrix |
Definition at line 255 of file JPosition3D.hh.
|
inlineinherited |
Rotate back around Z-axis.
R | rotation matrix |
Definition at line 283 of file JPosition3D.hh.
|
inlineinherited |
Transformation of geometry (see method JGEOMETRY3D::JPosition3D::transform(const JRotation3D&, const JVector3D&)).
R | rotation matrix |
pos | position of origin (after rotation) |
Definition at line 213 of file JModule.hh.
|
inlineinherited |
Transformation of geometry.
T | transformation |
Definition at line 229 of file JModule.hh.
|
inlineinherited |
Set time offset.
t0 | time offset [ns] |
Definition at line 293 of file JModule.hh.
Add position.
pos | position |
Definition at line 257 of file JModule.hh.
|
inlineinherited |
Add time offset.
t0 | time offset [ns] |
Definition at line 309 of file JModule.hh.
Subtract position.
pos | position |
Definition at line 275 of file JModule.hh.
|
inlineinherited |
Subtract time offset.
t0 | time offset [ns] |
Definition at line 325 of file JModule.hh.
Subtract position.
pos | position |
Definition at line 353 of file JModule.hh.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Less than method.
object | object identifier |
Definition at line 77 of file JObjectID.hh.
|
inlineinherited |
Less than method.
id | identifier |
Definition at line 89 of file JObjectID.hh.
|
inlineinherited |
Less than method.
location | module location |
Definition at line 156 of file JModuleLocation.hh.
|
inlineinherited |
More than method.
id | identifier |
Definition at line 101 of file JObjectID.hh.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Convert module location to string.
Definition at line 101 of file JModuleLocation.hh.
|
inlineinherited |
Convert module loation to string.
The targets target
in the format string fmt
are consecutively replaced by floor
and string
.
fmt | format |
target | target |
Definition at line 117 of file JModuleLocation.hh.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Get position.
Definition at line 129 of file JPosition3D.hh.
|
inlineinherited |
Get position.
Definition at line 140 of file JPosition3D.hh.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Type conversion operator.
Definition at line 173 of file JPosition3D.hh.
|
inlineinherited |
Transform back position.
The final position is obtained as follows:
R | rotation matrix |
pos | position of origin (before rotation) |
Definition at line 349 of file JPosition3D.hh.
|
inlineinherited |
Get dot product.
angle | angle |
Definition at line 368 of file JPosition3D.hh.
|
inlineinherited |
Get dot product.
dir | direction |
Definition at line 383 of file JPosition3D.hh.
|
inlineinherited |
Get dot product.
dir | direction |
Definition at line 398 of file JPosition3D.hh.
|
inlineinherited |
Get dot product.
vector | vector |
Definition at line 278 of file JVector3D.hh.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Scale vector.
factor | multiplication factor |
Definition at line 172 of file JVector3D.hh.
|
inlineinherited |
Multiply with object.
object | object |
Definition at line 273 of file JMath.hh.
|
inlineinherited |
Scale vector.
factor | division factor |
Definition at line 188 of file JVector3D.hh.
|
inlineinherited |
Check equality.
vector | vector |
Definition at line 218 of file JVector3D.hh.
|
inlineinherited |
|
inlineinherited |
Get length.
Definition at line 242 of file JVector3D.hh.
|
inlineinherited |
Get squared of distance to point.
pos | position |
Definition at line 254 of file JVector3D.hh.
|
inlineinherited |
Get distance to point.
pos | position |
Definition at line 266 of file JVector3D.hh.
|
inlineinherited |
Get cross product.
Note that this vector should not overlap with the first or second vector,
first | first vector |
second | second vector |
Definition at line 295 of file JVector3D.hh.
|
inlineinherited |
Configure.
numberOfIndices | number of indices |
Definition at line 54 of file JCombinatorics.hh.
|
inlineinherited |
Get number of indices.
Definition at line 84 of file JCombinatorics.hh.
|
inlineinherited |
|
inlineinherited |
Get index of pair of indices.
first | first address |
second | second address |
Definition at line 108 of file JCombinatorics.hh.
|
inlineinherited |
Get pair of indices for given index.
index | index |
Definition at line 120 of file JCombinatorics.hh.
|
inlineinherited |
Sort address pairs.
comparator | comparator for pairs |
Definition at line 132 of file JCombinatorics.hh.
|
inlinestaticinherited |
Sign of pair of indices.
first | first address |
second | second address |
Definition at line 157 of file JCombinatorics.hh.
|
inlinestaticinherited |
Sign of pair of indices.
pair | pair of indices |
Definition at line 169 of file JCombinatorics.hh.
|
private |
intrinsic K40 arrival time spread [ns]
Definition at line 647 of file JFitK40.hh.
|
private |
index of t0 used for average time offset
Definition at line 648 of file JFitK40.hh.
|
private |
disable PMT from fit
Definition at line 649 of file JFitK40.hh.
|
inherited |
maximal coincidence rate [Hz]
Definition at line 256 of file JFitK40.hh.
|
inherited |
angle dependence coincidence rate
Definition at line 257 of file JFitK40.hh.
|
inherited |
angle dependence coincidence rate
Definition at line 258 of file JFitK40.hh.
|
inherited |
angle dependence coincidence rate
Definition at line 259 of file JFitK40.hh.
|
inherited |
angle dependence coincidence rate
Definition at line 260 of file JFitK40.hh.
|
inherited |
remaining constant background
Definition at line 261 of file JFitK40.hh.
|
inherited |
fraction of signal correlated background
Definition at line 262 of file JFitK40.hh.
|
inherited |
Definition at line 264 of file JFitK40.hh.
|
protectedinherited |
Definition at line 159 of file JObjectID.hh.
|
protectedinherited |
Definition at line 233 of file JModuleLocation.hh.
|
protectedinherited |
Definition at line 234 of file JModuleLocation.hh.
|
protectedinherited |
Definition at line 306 of file JVector3D.hh.
|
protectedinherited |
Definition at line 307 of file JVector3D.hh.
|
protectedinherited |
Definition at line 308 of file JVector3D.hh.
|
protectedinherited |
Definition at line 176 of file JCombinatorics.hh.
|
protectedinherited |
Definition at line 177 of file JCombinatorics.hh.