Calibrations, coefficients etc. More...
#include <PaMetaDB.h>
Public Member Functions | |
| void | Print () |
| print brief content | |
| vector< float > | vNminusOne (int irun) const |
| Refractive index(es) for run "irun". | |
| bool | TargetSpinZproj (vector< float > &polar) const |
| function returns deuteron polarizations in target cells with the sign of spin projection on Z direction. | |
| void | PrintPolarDBentry (int irun) const |
| Print "offline" target DB entry for run # irun. | |
Static Public Member Functions | |
| static PaMetaDB & | Ref () |
| Return const reference to this object. | |
Calibrations, coefficients etc.
It's a class for various kind of calibrations, constants, measurements which are needed for analysis on miniDST level but was not accessible or was not ready at the time of data production.
| static PaMetaDB& PaMetaDB::Ref | ( | ) | [inline, static] |
Return const reference to this object.
Could be used for access to PaMetaDB from any place in the code.
Referenced by PrintPolarDBentry(), and vNminusOne().
| bool PaMetaDB::TargetSpinZproj | ( | vector< float > & | polar | ) | const |
function returns deuteron polarizations in target cells with the sign of spin projection on Z direction.
| polar | - vector of polarizations. Size of the vector corresponds to number of target cells (2 or 3) |
Data are taken from "offline" target database
Function returns "false" if polarizations was not found in the database for the current run number.
References PaSetup::Ref(), and PaEvent::RunNum().
| vector< float > PaMetaDB::vNminusOne | ( | int | irun = -777 |
) | const |
Refractive index(es) for run "irun".
Returns (n-1) in [ppm] (1.e-6). Source of information: "snapshot" of DB (see time stamp in ./src/RICH1_ref_index.db or in ./src/RICH1_2ref_index.db)
If the function returns empty vector, it means "no data for this run"
Refractive index(es), used at production could be accessed by PaSetup::vNminusOne() function.
References Ref().
1.6.2