Belle II Software development
|
Modules | |
top data objects | |
top modules | |
Classes | |
class | TOPDatabaseImporter |
TOP database importer. More... | |
class | TOPASICChannel |
Calibration constants of a singe ASIC channel: pedestals, gains and time axis. More... | |
class | TOPASICGains |
Calibration constants of a single ASIC window: gains. More... | |
class | TOPASICPedestals |
Calibration constants of a single ASIC window: pedestals. More... | |
class | TOPCalAsicShift |
Calibration constants for ASIC shifts of all 16 modules. More... | |
class | TOPCalChannelMask |
Channel status for all 512 channels of 16 modules. More... | |
class | TOPCalChannelNoise |
r.m.s. More... | |
class | TOPCalChannelPulseHeight |
Pulse height parameterizations for all 512 channels of 16 modules. More... | |
class | TOPCalChannelRQE |
Class to store relative quantum efficiency of channels w.r.t initial one measured in PMT QA QE is expected to decrease during the experiment due to aging induced by acuumulated charge. More... | |
class | TOPCalChannelT0 |
Channel T0 calibration constants for all 512 channels of 16 modules. More... | |
class | TOPCalChannelThreshold |
Value of the threshold (in ADC counts) used for the pulse identification, for all 512 channels of 16 modules. More... | |
class | TOPCalChannelThresholdEff |
Class to store the threshold efficiency (i.e. More... | |
class | TOPCalCommonT0 |
Common T0 calibration constant. More... | |
class | TOPCalEventT0Offset |
Class to store the calibrated EventT0 offsets of other detector components The offsets are measured relative to TOP EventT0 (e.g CDC - TOP etc) More... | |
class | TOPCalFillPatternOffset |
Class to store the offset of reconstructed fill pattern. More... | |
class | TOPCalIntegratedCharge |
Class to store integrated charge per channel. More... | |
class | TOPCalModuleAlignment |
Alignment constants for all 16 modules. More... | |
class | TOPCalModuleT0 |
Module T0 calibration constants for all 16 modules. More... | |
class | TOPCalPhotonYields |
Class to store photon pixel yields for PMT ageing studies, and equalized alpha ratios for finding optically decoupled PMT's. More... | |
class | TOPCalTimebase |
Sample time calibration constants for all channels. More... | |
class | TOPCalTimeWalk |
Calibration constants for time-walk correction and for tuning of electronic time resolution in digitization. More... | |
class | TOPChannelMap |
Map of pixels and channels within the carrier board. More... | |
class | TOPFrontEndMap |
Mapping of a boardstack number within a module to SCROD and COPPER/Finesse. More... | |
class | TOPFrontEndSetting |
Front-end settings: storage depths, lookback, readout windows etc. More... | |
class | TOPGeoBarSegment |
Geometry parameters of a quartz bar segment. More... | |
class | TOPGeoBase |
Base class for geometry parameters. More... | |
class | TOPGeoColdPlate |
Geometry parameters of cold plate (simplified) More... | |
class | TOPGeoEndPlate |
Geometry parameters of forward end plate (simplified) More... | |
class | TOPGeoFrontEnd |
Geometry parameters of board stack (front-end electronic module) More... | |
class | TOPGeoHoneycombPanel |
Geometry parameters of honeycomb panel. More... | |
class | TOPGeometry |
Geometry parameters of TOP. More... | |
class | TOPGeoMirrorSegment |
Geometry parameters of a mirror segment. More... | |
class | TOPGeoModule |
Geometry parameters of a module (optical components + positioning) More... | |
class | TOPGeoModuleDisplacement |
Displacement parameters of a TOP module. More... | |
class | TOPGeoPMT |
Geometry parameters of MCP-PMT. More... | |
class | TOPGeoPMTArray |
Geometry parameters of MCP-PMT array. More... | |
class | TOPGeoPMTArrayDisplacement |
Displacement parameters of MCP-PMT array. More... | |
class | TOPGeoPrism |
Geometry parameters of prism. More... | |
class | TOPGeoPrismEnclosure |
Geometry parameters of prism enclosure (simplified) More... | |
class | TOPGeoQBB |
Geometry parameters of Quartz Bar Box (mother class) More... | |
class | TOPGeoSideRails |
Geometry parameters of side rails (simplified) More... | |
class | TOPNominalQE |
Nominal quantum efficiency of PMT. More... | |
class | TOPNominalTDC |
Nominal time-to-digit conversion parameters (simplified model) More... | |
class | TOPNominalTTS |
Nominal time transition spread of PMT. More... | |
class | TOPPmtGainPar |
Parameterized PMT gain (from laser testing at Nagoya) More... | |
class | TOPPmtInstallation |
PMT position within a module. More... | |
class | TOPPmtObsoleteData |
PMT specs from Hamamatsu. More... | |
class | TOPPmtQE |
Nagoya measurements of quantum efficiency. More... | |
class | TOPPmtTTSHisto |
Raw measurements of TTS (histograms) for each PMT pixel. More... | |
class | TOPPmtTTSPar |
Parameterized TTS for each PMT pixel. More... | |
struct | TOPPulseHeightPar |
Struct holding the pulse height parameterizations for the TOP counter. More... | |
class | TOPSampleTimes |
Calibration constants of a singe ASIC channel: time axis (sample times) More... | |
class | TOPSignalShape |
Normalized shape of single photon pulse (waveform) Pulse must be positive. More... | |
class | TOPWavelengthFilter |
Bulk transmittance of wavelength filter. More... | |
Typedefs | |
typedef map< unsigned, size_t >::const_iterator | Iterator |
Iteratior for m_map. | |
typedef std::pair< double, double > | Pair |
Shorthand for std::pair<double, double> | |
Functions | |
void | importSampleTimeCalibration (std::string fileNames, int firstExp=0, int firstRun=0, int lastExp=-1, int lastRun=-1) |
Import sample time calibration constants to database Output of TOPTimeBaseCalibrator (root files with histograms) | |
void | importLocalT0Calibration (std::string fileNames, int firstExp=0, int firstRun=0, int lastExp=-1, int lastRun=-1) |
Import channel-by-channel T0 calibration constants to database The input is the root file with ntuple produced by TOPLaserCalibrator. | |
void | importChannelT0 (std::string fileName, int expNo, int firstRun, int lastRun) |
Import channel T0 calibration constants The input is a root file with 1D histograms (one per slot, named "channelT0_slot*") | |
void | importAsicShifts_BS13d (double s0, double s1, double s2, double s3, int expNo, int firstRun, int lastRun) |
Import ASIC shifts of BS13d. | |
void | importOfflineCommonT0Calibration (std::string fileName, int firstExp=0, int firstRun=0, int lastExp=-1, int lastRun=-1) |
Import common T0 calibration constants derived form the offline data reprocessing to database The input is a root file containing a tree (one per run). | |
void | importCommonT0 (double value, double error, int expNo, int firstRun, int lastRun, bool roughlyCalibrated=false) |
Import common T0 calibration constants. | |
void | importModuleT0Calibration (std::string fileName, int firstExp=0, int firstRun=0, int lastExp=-1, int lastRun=-1) |
Import module T0 calibration constants to database The input is the text file. | |
void | importModuleT0 (std::string fileName, int expNo, int firstRun, int lastRun) |
Import module T0 calibration constants The input is a root file with 1D histogram (name is "moduleT0") | |
void | printSampleTimeCalibrationInfo () |
Prints sample time calibration info about constants stored in database. | |
void | printSampleTimeCalibration () |
Print sample time calibration constants stored in database. | |
void | importChannelMask (std::string fileName, int expNo, int firstRun, int lastRun) |
Import channel mask from a root file (given as 1D histograms, one per slot). | |
void | generateFakeChannelMask (double fractionDead, double fractionHot, int firstExp=0, int firstRun=0, int lastExp=-1, int lastRun=-1) |
Generate and import a (random, fake) channel mask for testing. | |
void | importPmtQEData (std::string fileName, std::string treeName="qePmtData", int firstExp=0, int firstRun=0, int lastExp=-1, int lastRun=-1) |
Import PMT Quantum Efficiency data to database. | |
void | importPmtGainData (std::string fileName, std::string treeName="gainPmtData", int firstExp=0, int firstRun=0, int lastExp=-1, int lastRun=-1) |
Import PMT gain parameters data to database. | |
void | importPmtInstallationData (std::string fileName, std::string treeName="installationPmtData", int firstExp=0, int firstRun=0, int lastExp=-1, int lastRun=-1) |
Import PMT installation data to database. | |
void | importPmtObsoleteData (std::string fileName, std::string treeName="obsPmtData", int firstExp=0, int firstRun=0, int lastExp=-1, int lastRun=-1) |
Import PMT specifications from Hamamatsu (not to be used!) | |
void | importPmtTTSPar (std::string fileName, std::string treeName="ttsPmtPar", int firstExp=0, int firstRun=0, int lastExp=-1, int lastRun=-1) |
Import gaussians fitting the TTS distributions. | |
void | importPmtTTSHisto (std::string fileName, std::string treeName="ttsPmtHisto", int firstExp=0, int firstRun=0, int lastExp=-1, int lastRun=-1) |
Import histograms used for PMT TTS determination. | |
void | importPmtPulseHeightFitResult (std::string fileName, int firstExp=0, int firstRun=0, int lastExp=-1, int lastRun=-1) |
Import fit results of pulse height disribution for channel gain and threshold efficiency. | |
void | exportPmtTTSHisto (std::string outFileName="RetrievedHistos.root") |
Example of exporting TTS histograms. | |
void | importFrontEndSettings (int lookback, int readoutWin, int extraWin, int offset, int expNo, int firstRun, int lastRun) |
Import front-end settings. | |
void | importDummyCalModuleAlignment (int firstExp=0, int firstRun=0, int lastExp=-1, int lastRun=-1) |
import a dummy payload of TOPCalModuleAlignment DB objects | |
void | importDummyCalModuleT0 (int firstExp=0, int firstRun=0, int lastExp=-1, int lastRun=-1) |
import a dummy payload of TOPCalCalModuleT0 DB objects | |
void | importDummyCalChannelT0 (int firstExp=0, int firstRun=0, int lastExp=-1, int lastRun=-1) |
import a dummy payload of TOPCalChannelT0 DB objects | |
void | importDummyCalTimebase (int firstExp=0, int firstRun=0, int lastExp=-1, int lastRun=-1) |
import a dummy payload of TOPCalTimebase DB objects | |
void | importDummyCalChannelNoise (int firstExp=0, int firstRun=0, int lastExp=-1, int lastRun=-1) |
import a dummy payload of TOPCalChannelNoise DB objects | |
void | importDummyCalChannelPulseHeight (int firstExp=0, int firstRun=0, int lastExp=-1, int lastRun=-1) |
import a dummy payload of TOPCalChannelPulseHeight DB objects | |
void | importDummyCalChannelRQE (int firstExp=0, int firstRun=0, int lastExp=-1, int lastRun=-1) |
import a dummy payload of TOPCalChannelRQE DB objects | |
void | importDummyCalChannelThresholdEff (int firstExp=0, int firstRun=0, int lastExp=-1, int lastRun=-1) |
import a dummy payload of TOPCalChannelThresholdEff DB objects | |
void | importDummyCalChannelThreshold (int firstExp=0, int firstRun=0, int lastExp=-1, int lastRun=-1) |
import a dummy payload of TOPCalChannelThreshold DB objects | |
void | importDummyCalCommonT0 (int firstExp=0, int firstRun=0, int lastExp=-1, int lastRun=-1) |
import a dummy payload of TOPCalCommonT0 DB objects | |
void | importDummyCalIntegratedCharge (int firstExp=0, int firstRun=0, int lastExp=-1, int lastRun=-1) |
import a dummy payload of TOPCalIntegratedCharge DB objects | |
void | importDummyCalAsicShift (int firstExp=0, int firstRun=0, int lastExp=-1, int lastRun=-1) |
import a dummy payload of TOPCalAsicShift DB objects | |
void | correctTOPPmtQE () |
correct QE values in database for the reflection on window surface be sure that you run the function only once! see: BII-4230 | |
void | importTimeWalk (PyObject *list, double a, double b, int firstExp=0, int firstRun=0, int lastExp=-1, int lastRun=-1) |
payload TOPCalTimeWalk import parameters for time-walk correction and electronic time resolution tuning | |
void | importTest (int runNumber, double syncTimeBase) |
for testing purposes only! - will be removed ... | |
void | importTest () |
for testing purposes only! - will be removed ... | |
bool | setGains (const std::vector< float > &gains, float error=0) |
Set gains. | |
int | setPedestals (const TProfile *profile, double average=0) |
Set pedestals from profile histogram with c_WindowSize bins. | |
unsigned | getOptimizedOffset (const std::vector< unsigned > &values, const std::vector< unsigned > &errors, unsigned maxDif, unsigned maxErr) |
Return the offset that can allow for the maximal number of good pedestal samples. | |
void | setT0 (int moduleID, unsigned asic, double T0) |
Sets calibration for a single ASIC and switches status to calibrated. | |
void | setUnusable (int moduleID, unsigned asic) |
Switches calibration status to unusable to flag badly calibrated constant. | |
double | getT0 (int moduleID, unsigned asic) const |
Returns T0 of a single asic. | |
bool | isCalibrated (int moduleID, unsigned asic) const |
Returns calibration status. | |
bool | isDefault (int moduleID, unsigned asic) const |
Returns calibration status. | |
bool | isUnusable (int moduleID, unsigned asic) const |
Returns calibration status. | |
void | setStatus (int moduleID, unsigned channel, EStatus status) |
Sets the status for a single channel. | |
void | setActive (int moduleID, unsigned channel) |
Sets a specific channel as active. | |
void | setDead (int moduleID, unsigned channel) |
Sets a specific channel as dead. | |
void | setNoisy (int moduleID, unsigned channel) |
Sets a specific channel as noisy. | |
EStatus | getStatus (int moduleID, unsigned channel) const |
Returns the status of a single channel. | |
bool | isActive (int moduleID, unsigned channel) const |
Returns false if the channel is dead or noisy, and true is the channel is active. | |
bool | check (const int module, const unsigned channel) const |
Check input module and channel arguments are sane. | |
int | getNumOf (EStatus check) const |
Counts and returns the number of channels having a given status. | |
int | getNumOf (EStatus check, int moduleID) const |
Counts and returns the number of channels od a module having a given status. | |
void | setT0 (int moduleID, unsigned channel, double T0, double errT0) |
Sets calibration for a single channel and switches status to calibrated. | |
void | setUnusable (int moduleID, unsigned channel) |
Switches calibration status to unusable to flag badly calibrated constant. | |
void | suppressAverage () |
Subtracts arithmetic average of a module from constants whose status is not c_Default. | |
double | getT0 (int moduleID, unsigned channel) const |
Returns T0 of a single channel. | |
double | getT0Error (int moduleID, unsigned channel) const |
Returns error on T0 of a single channel. | |
bool | isCalibrated (int moduleID, unsigned channel) const |
Returns calibration status. | |
bool | isDefault (int moduleID, unsigned channel) const |
Returns calibration status. | |
bool | isUnusable (int moduleID, unsigned channel) const |
Returns calibration status. | |
void | setAlpha (int moduleID, double alpha, double errAlpha) |
Sets the angle alpha on a single module. | |
void | setBeta (int moduleID, double beta, double errBeta) |
Sets the angle beta on a single module. | |
void | setGamma (int moduleID, double gamma, double errGamma) |
Sets the angle gamma on a single module. | |
void | setX (int moduleID, double x, double errX) |
Sets the displacement x on a single module. | |
void | setY (int moduleID, double y, double errY) |
Sets the displacement y on a single module. | |
void | setZ (int moduleID, double z, double errZ) |
Sets the displacement z on a single module. | |
void | setCalibrated (int moduleID) |
Switches calibration status to calibrated. | |
void | setUnusable (int moduleID) |
Switches calibration status to unusable to flag badly calibrated constant. | |
double | getAlpha (int moduleID) const |
Gets the angle alpha on a single module. | |
double | getBeta (int moduleID) const |
Gets the angle beta on a single module. | |
double | getGamma (int moduleID) const |
Gets the angle gamma on a single module. | |
double | getX (int moduleID) const |
Returns the shift x on a single module. | |
double | getY (int moduleID) const |
Returns the shift y on a single module. | |
double | getZ (int moduleID) const |
Returns the shift z on a single module. | |
double | getAlphaErr (int moduleID) const |
Returns the error on alpha on a single module. | |
double | getBetaErr (int moduleID) const |
Returns the error on beta on a single module. | |
double | getGammaErr (int moduleID) const |
Returns the error on gamma on a single module. | |
double | getXErr (int moduleID) const |
Returns the error on x on a single module. | |
double | getYErr (int moduleID) const |
Returns the error on y on a single module. | |
double | getZErr (int moduleID) const |
Returns the error on z on a single module. | |
bool | isCalibrated (int moduleID) const |
Returns calibration status. | |
bool | isDefault (int moduleID) const |
Returns calibration status. | |
bool | isUnusable (int moduleID) const |
Returns calibration status. | |
bool | areAllCalibrated () const |
Returns true if all modules are calibrated. | |
bool | areAllPrecise (double spatialPrecision, double angularPrecision) const |
Returns true if calibration precision for all modules is within specified values. | |
void | setTransformations () const |
Sets the transformation cache. | |
const ROOT::Math::Transform3D & | getTransformation (int moduleID) const |
Returns transformation from local to nominal frame. | |
void | setT0 (int moduleID, double T0, double errT0) |
Sets calibration for a single module and switches status to calibrated. | |
void | setUnusable (int moduleID) |
Switches calibration status to unusable to flag badly calibrated constant. | |
void | suppressAverage () |
Subtracts arithmetic average from constants whose status is not c_Default. | |
double | getT0 (int moduleID) const |
Returns T0 of a module. | |
double | getT0Error (int moduleID) const |
Returns error on T0 of a module. | |
bool | isCalibrated (int moduleID) const |
Returns calibration status. | |
bool | isDefault (int moduleID) const |
Returns calibration status. | |
bool | isUnusable (int moduleID) const |
Returns calibration status. | |
void | set (int slot, const TH1F *photonYields, const TH1F *backgroundYields, const TH1F *alphaRatio, const TH1F *activePixels, const TH2F *pulseHeights, const TH1F *muonZ) |
Sets the data of a given slot. | |
void | copyContent (const TH1F *input, TH2F &output) |
Copy content of 1D histogram into 2D histogram. | |
const TH2F * | getPhotonYields (int slot) const |
Returns a 2D histogram of photon pixel yields. | |
const TH2F * | getBackgroundYields (int slot) const |
Returns a 2D histogram of background pixel yields. | |
const TH2F * | getAlphaRatio (int slot) const |
Returns a 2D histogram of equalized pixel alpha ratio. | |
const TH2F * | getActivePixels (int slot) const |
Returns a 2D histogram of active pixels. | |
const TH2F * | getPulseHeights (int slot) const |
Returns a 2D histogram of pixel pulse-heights. | |
const TH1F * | getMuonZ (int slot) const |
Returns z distribution of tracks used to determine pixel yields. | |
void | append (unsigned scrodID, unsigned channel, const std::vector< double > &sampleTimes, bool replace=true) |
Appends calibration of a single ASIC channel. | |
const TOPSampleTimes * | getSampleTimes (unsigned scrodID, unsigned channel) const |
Returns calibration constants for given SCROD and channel. | |
bool | isAvailable (unsigned scrodID, unsigned channel) const |
Checks if calibration is available. | |
void | createMap () const |
Creates a map in cache. | |
void | set (const std::vector< double > &timeWalkParams, double noise, double quadratic) |
Sets all the parameters and switches status to calibrated. | |
double | getTimeWalk (int pulseHeight) const |
Returns time-walk at given pulse height. | |
double | getSigmaSq (int pulseHeight) const |
Returns an excess of electronic time resolution at given pulse height. | |
double | getSigma (int pulseHeight) const |
Returns an excess of electronic time resolution at given pulse height. | |
void | setWindowShifts (std::vector< int > shifts) |
Sets window shifts. | |
virtual bool | isConsistent () const override |
Check for consistency of data members. | |
virtual void | print (const std::string &title="Bar segment geometry parameters") const override |
Print the content of the class. | |
std::vector< std::pair< double, double > > | getBrokenGlueContour () const |
Returns the x-y contour of broken glue. | |
void | constructContour (double A, double B, double fraction, double angle, std::vector< std::pair< double, double > > &contour) const |
Construct a 2D contour. | |
virtual void | print (const std::string &title) const |
Print the content of the class. | |
void | printUnderlined (const std::string &title) const |
Print the content of the class. | |
virtual void | printSurface (const GeoOpticalSurface &surface) const |
Print the content of optical surface. | |
double | getReflectivity (const GeoOpticalSurface &surface, double energy) const |
Returns reflectivity of optical surface at given photon energy. | |
bool | isConsistent () const override |
Check for consistency of data members. | |
virtual void | print (const std::string &title="QBB cold plate geometry parameters") const override |
Print the content of the class. | |
bool | isConsistent () const override |
Check for consistency of data members. | |
virtual void | print (const std::string &title="QBB forward end plate geometry parameters") const override |
Print the content of the class. | |
bool | isConsistent () const override |
Check for consistency of data members. | |
virtual void | print (const std::string &title="Front-end geometry parameters") const override |
Print the content of the class. | |
void | appendContour (std::vector< std::pair< double, double > > &contour, double y0, bool fromLeftToRight) const |
Appends curved surface to contour. | |
bool | isConsistent () const override |
Check for consistency of data members. | |
virtual void | print (const std::string &title="QBB honeycomb panel geometry parameters") const override |
Print the content of the class. | |
void | appendModule (const TOPGeoModule &module) |
Appends module (if its ID differs from already appended modules) | |
bool | isModuleIDValid (int moduleID) const |
Checks if module exists in m_modules. | |
const TOPGeoModule & | getModule (int moduleID) const |
Returns module. | |
const TOPNominalTTS & | getTTS (unsigned type) const |
Returns time transition spread of a given PMT type. | |
double | getPDETuningFactor (unsigned type) const |
Returns photon detection efficiency tuning factor of a given PMT type. | |
double | getInnerRadius () const |
Returns inner radius of the volume devoted to TOP counter. | |
double | getOuterRadius () const |
Returns outer radius of the volume devoted to TOP counter. | |
double | getRadius () const |
Returns average radius of modules. | |
double | getBackwardZ () const |
Returns backward z of the volume devoted to TOP counter. | |
double | getForwardZ () const |
Returns forward z of the volume devoted to TOP counter. | |
bool | isConsistent () const override |
Check for consistency of data members. | |
void | print (const std::string &title="TOP geometry parameters") const override |
Print the content of the class. | |
double | getZc () const |
Returns spherical mirror center of curvature in z (in local frame of this segment) | |
bool | isConsistent () const override |
Check for consistency of data members. | |
void | print (const std::string &title="Mirror segment geometry parameters") const override |
Print the content of the class. | |
TOPGeoModule (const TOPGeoModule &module) | |
Copy constructor. | |
TOPGeoModule & | operator= (const TOPGeoModule &module) |
Assignment operator. | |
~TOPGeoModule () | |
Destructor. | |
void | setTransformation () const |
Sets transformation cache. | |
void | setBrokenGlue (int glueID, double fraction, double angle, const std::string &material) |
Sets glue to be broken (delaminated) | |
void | setPeelOffRegions (double thickness, const std::string &material) |
Sets parameters of the peel-off cookie volumes. | |
ROOT::Math::XYZPoint | pointToGlobal (const ROOT::Math::XYZPoint &point) const |
Transforms 3D point from module internal (= nominal & displaced) frame to Belle II frame. | |
ROOT::Math::XYZVector | momentumToGlobal (const ROOT::Math::XYZVector &momentum) const |
Transforms momentum vector from module internal (= nominal & displaced) frame to Belle II frame. | |
ROOT::Math::XYZPoint | pointToLocal (const ROOT::Math::XYZPoint &point) const |
Transforms 3D point from Belle II to module internal (= nominal & displaced) frame. | |
ROOT::Math::XYZVector | momentumToLocal (const ROOT::Math::XYZVector &momentum) const |
Transforms momentum vector from Belle II to module internal (= nominal & displaced) frame. | |
ROOT::Math::XYZPoint | pointNominalToGlobal (const ROOT::Math::XYZPoint &point) const |
Transforms 3D point from module nominal frame to Belle II frame. | |
ROOT::Math::XYZVector | momentumNominalToGlobal (const ROOT::Math::XYZVector &momentum) const |
Transforms momentum vector from module nominal frame to Belle II frame. | |
ROOT::Math::XYZPoint | pointGlobalToNominal (const ROOT::Math::XYZPoint &point) const |
Transforms 3D point from Belle II to module nominal frame. | |
ROOT::Math::XYZVector | momentumGlobalToNominal (const ROOT::Math::XYZVector &momentum) const |
Transforms momentum vector from Belle II to module nominal frame. | |
bool | isConsistent () const override |
Check for consistency of data members. | |
void | print (const std::string &title="Module geometry parameters") const override |
Print the content of the class. | |
void | print (const std::string &title="Module displacement parameters") const override |
Print the content of the class. | |
ROOT::Math::Transform3D | getTransformation () const |
Returns transformation from local to nominal frame. | |
unsigned | getPixelColumn (double x) const |
Converts x-coordinate to pixel column (1-based) | |
unsigned | getPixelRow (double y) const |
Converts y-coordinate to pixel row (1-based) | |
unsigned | getPixelID (double x, double y) const |
Converts x and y coordinates to PMT pixel ID (1-based) | |
double | getX (unsigned col) const |
Returns x coordinate of pixel center. | |
double | getY (unsigned row) const |
Returns y coordinate of pixel center. | |
bool | isConsistent () const override |
Check for consistency of data members. | |
void | print (const std::string &title="MCP-PMT geometry parameters") const override |
Print the content of the class. | |
unsigned | getPmtID (unsigned row, unsigned col) const |
Converts row and column numbers to PMT ID (1-based) | |
unsigned | getRow (unsigned pmtID) const |
Converts PMT ID to row number (1-based) | |
unsigned | getColumn (unsigned pmtID) const |
Converts PMT ID to column number (1-based) | |
int | getPixelID (double x, double y, unsigned pmtID) const |
Converts (digitizes) x, y and PMT ID to pixel ID (1-based) | |
int | getPixelID (unsigned pmtID, unsigned pmtPixelID) const |
Returns pixel ID (1-based) | |
void | generateDecoupledPMTs (double fraction) |
Generate randomly a fraction of PMT's to be optically decoupled. | |
bool | isPMTDecoupled (unsigned pmtID) const |
Checks if PMT is optically decoupled. | |
bool | isConsistent () const override |
Check for consistency of data members. | |
void | print (const std::string &title="PMT array geometry parameters") const override |
Print the content of the class. | |
void | print (const std::string &title="PMT array displacement parameters") const override |
Print the content of the class. | |
UnfoldedWindow (const ROOT::Math::XYVector &orig, const ROOT::Math::XYVector &dir, const ROOT::Math::XYVector &norm, const ROOT::Math::XYVector &slanted) | |
constructor | |
bool | isConsistent () const override |
Check for consistency of data members. | |
void | print (const std::string &title="Prism geometry parameters") const override |
Print the content of the class. | |
void | appendPeelOffRegion (unsigned ID, double fraction, double angle) |
Appends peel-off cookie region. | |
std::vector< std::pair< double, double > > | getPeelOffContour (const PeelOffRegion ®ion) const |
Returns the x-y contour of the peel-off region. | |
void | unfold () const |
Unfold prism exit window. | |
void | reflect (const ROOT::Math::XYVector *points, const ROOT::Math::XYVector *normals, const ROOT::Math::XYVector &orig, const ROOT::Math::XYVector &surf, const ROOT::Math::XYVector &norm, const ROOT::Math::XYVector &slanted, int k, std::vector< UnfoldedWindow > &result) const |
Do unfolding. | |
bool | isConsistent () const override |
Check for consistency of data members. | |
virtual void | print (const std::string &title="QBB prism enclosure geometry parameters") const override |
Print the content of the class. | |
std::vector< std::pair< double, double > > | getForwardContour () const |
Returns forward x-y contour. | |
void | printForwardContour () const |
Print forward contour (polygon) - for debugging. | |
std::vector< std::pair< double, double > > | getInnerPanelContour () const |
Returns inner honeycomb panel x-y contour. | |
void | printInnerPanelContour () const |
Print inner honeycomb panel contour (polygon) - for debugging. | |
std::vector< std::pair< double, double > > | getOuterPanelContour () const |
Returns outer honeycomb panel x-y contour. | |
void | printOuterPanelContour () const |
Print outer honeycomb panel contour (polygon) - for debugging. | |
std::vector< std::pair< double, double > > | getBackwardContour () const |
Returns backward x-y contour. | |
void | printBackwardContour () const |
Print backward contour (polygon) - for debugging. | |
std::vector< std::pair< double, double > > | getPrismEnclosureContour () const |
Returns prism enclosure wall x-y contour. | |
void | printPrismEnclosureContour () const |
Print prism enclosure contour (polygon) - for debugging. | |
std::vector< std::pair< double, double > > | getBackPlateContour () const |
Returns prism enclosure back plate x-y contour. | |
void | printBackPlateContour () const |
Print prism enclosure back plate contour (polygon) - for debugging. | |
std::vector< std::pair< double, double > > | getFrontPlateContour () const |
Returns prism enclosure front plate x-y contour. | |
void | printFrontPlateContour () const |
Print prism enclosure front plate contour (polygon) - for debugging. | |
bool | isConsistent () const override |
Check for consistency of data members. | |
virtual void | print (const std::string &title="QBB geometry parameters") const override |
Print the content of the class. | |
bool | isConsistent () const override |
Check for consistency of data members. | |
virtual void | print (const std::string &title="QBB side rails geometry parameters") const override |
Print the content of the class. | |
void | applyFilterTransmission (const TOPWavelengthFilter &filter) |
Multiplies quantum efficiency data points with filter transmission. | |
double | getQE (double lambda) const |
Returns quantum efficiency at given photon wavelength using linear interpolation. | |
double | getMinLambda () const |
Returns wavelength of the first nonzero QE data point. | |
double | getMaxLambda () const |
Returns wavelength of the last nonzero QE data point. | |
bool | isConsistent () const override |
Check for consistency of data members. | |
void | print (const std::string &title="Nominal quantum efficiency") const override |
Print the content of the class. | |
TOPNominalTDC (int numWindows, int subBits, double syncTimeBase, int numofBunches, double offset, double pileupTime, double doubleHitResolution, double timeJitter, double efficiency, const std::string &name="TOPNominalTDC") | |
Useful constructor (new xml file version) | |
int | getTDCcount (double time) const |
Converts time to TDC count. | |
int | getSample (double time) const |
Converts time to sample number. | |
bool | isSampleValid (int sample) const |
Check for the validity of sample number. | |
bool | isConsistent () const override |
Check for consistency of data members. | |
void | print (const std::string &title="Nominal time-to-digit conversion parameters") const override |
Print the content of the class. | |
void | appendGaussian (double norm, double mean, double sigma) |
Append Gaussian. | |
double | normalize () |
Normalize the distribution (fractions) | |
double | generateTTS () const |
Generate time according to TTS distribution. | |
bool | isConsistent () const override |
Check for consistency of data members. | |
void | print (const std::string &title="Nominal TTS distribution") const override |
Print the content of the class. | |
void | print () const |
Print the class content. | |
const std::vector< float > & | getQE (unsigned pmtPixel) const |
Returns quantum efficiency data points for a given pixel. | |
double | getQE (unsigned pmtPixel, double lambda) const |
Returns quantum efficiency for a given pixel and wavelength, using linear interpolation. | |
const std::vector< float > & | getEnvelopeQE () const |
Returns envelope quantum efficiency data points (maximum over pixels) | |
double | getEnvelopeQE (double lambda) const |
Returns envelope quantum efficiency for a given wavelength (maximum over pixels), using linear interpolation. | |
double | getEfficiency (unsigned pmtPixel, double lambda, bool BfieldOn) const |
Returns quantum times collection efficiency for a given pixel and wavelength, using linear interpolation. | |
double | getCE (bool BfieldOn) const |
Returns collection efficiency. | |
double | getLambdaLast () const |
Returns wavelenght of the last data point (maximal of pixels) | |
double | getLambdaLast (unsigned pmtPixel) const |
Returns wavelenght of the last data point for a given pixel. | |
void | setEnvelopeQE () const |
Sets envelope quantum efficiency. | |
double | interpolate (double lambda, const std::vector< float > &QE) const |
Interpolate between QE datapoints (linear interpolation). | |
void | setTimeAxis (double syncTimeBase) |
Sets equidistant time axis (uncalibrated). | |
void | setTimeAxis (const std::vector< double > &sampleTimes, double syncTimeBase) |
Sets time axis from calibration data and switches status to calibrated. | |
std::vector< double > | getTimeAxis () const |
Returns time axis (sample times) | |
double | getFullTime (int window, double sample) const |
Returns time with respect to sample 0 of window 0. | |
double | getSample (int window, double time) const |
Returns sample with respect to sample 0 of the specified ASIC window (inverse of getTime). | |
double | getTimeBin (int window, int sampleNumber) const |
Returns time bin of a given sample number and window (e.g. | |
TOPSignalShape (std::vector< double > shape, double timeBin, double tau, double pole1, double pole2) | |
Full constructor. | |
double | getValue (double t) const |
Returns value at time t of the normalized waveform using interpolator. | |
double | getPeakingTime () const |
Returns peaking time of the signal. | |
float | getBulkTransmittance (double lambda) const |
Returns bulk transmittance at given wavelength using linear interpolation. | |
bool | isConsistent () const override |
Check for consistency of data members. | |
void | print (const std::string &title="Wavelength filter bulk transmittance") const override |
Print the content of the class. | |
Variables | |
static double | s_unit = Unit::cm |
conversion unit for length | |
static std::string | s_unitName |
conversion unit name | |
typedef map<unsigned,size_t>::const_iterator Iterator |
Iteratior for m_map.
Definition at line 21 of file TOPCalTimebase.cc.
typedef std::pair< double, double > Pair |
Shorthand for std::pair<double, double>
Definition at line 57 of file TOPGeoBarSegment.cc.
void append | ( | unsigned | scrodID, |
unsigned | channel, | ||
const std::vector< double > & | sampleTimes, | ||
bool | replace = true |
||
) |
Appends calibration of a single ASIC channel.
scrodID | SCROD ID |
channel | channel number within SCROD (0 - 127) |
sampleTimes | vector of 256 elements (at least) defining time axis |
replace | replace or not if constants for this scrod/channel are already in |
Definition at line 24 of file TOPCalTimebase.cc.
void appendContour | ( | std::vector< std::pair< double, double > > & | contour, |
double | y0, | ||
bool | fromLeftToRight | ||
) | const |
Appends curved surface to contour.
contour | 2D contour |
y0 | offset in y0 |
fromLeftToRight | if true, going from left to right otherwise oposite |
Definition at line 21 of file TOPGeoHoneycombPanel.cc.
void appendGaussian | ( | double | norm, |
double | mean, | ||
double | sigma | ||
) |
Append Gaussian.
norm | normalization (area) |
mean | mean value [ns] |
sigma | sigma (width) [ns] |
Definition at line 22 of file TOPNominalTTS.cc.
void appendModule | ( | const TOPGeoModule & | module | ) |
Appends module (if its ID differs from already appended modules)
module | module geometry parameters |
Definition at line 22 of file TOPGeometry.cc.
void appendPeelOffRegion | ( | unsigned | ID, |
double | fraction, | ||
double | angle | ||
) |
Appends peel-off cookie region.
ID | region ID (1-based) |
fraction | fraction of the area |
angle | angle of the area |
Definition at line 94 of file TOPGeoPrism.cc.
void applyFilterTransmission | ( | const TOPWavelengthFilter & | filter | ) |
Multiplies quantum efficiency data points with filter transmission.
filter | wavelength filter |
Definition at line 21 of file TOPNominalQE.cc.
bool areAllCalibrated | ( | ) | const |
Returns true if all modules are calibrated.
Definition at line 260 of file TOPCalModuleAlignment.cc.
bool areAllPrecise | ( | double | spatialPrecision, |
double | angularPrecision | ||
) | const |
Returns true if calibration precision for all modules is within specified values.
spatialPrecision | precision for displacements |
angularPrecision | precision for rotations |
Definition at line 268 of file TOPCalModuleAlignment.cc.
|
private |
Check input module and channel arguments are sane.
Definition at line 82 of file TOPCalChannelMask.cc.
|
protected |
Construct a 2D contour.
A | dimension in x |
B | dimension in y |
fraction | surface fraction |
angle | angle |
contour | clock-wise polygon to return |
Definition at line 70 of file TOPGeoBarSegment.cc.
|
private |
Copy content of 1D histogram into 2D histogram.
input | 1D histogram |
output | 2D histogram |
Definition at line 51 of file TOPCalPhotonYields.cc.
void correctTOPPmtQE | ( | ) |
correct QE values in database for the reflection on window surface be sure that you run the function only once! see: BII-4230
Definition at line 1405 of file TOPDatabaseImporter.cc.
|
private |
Creates a map in cache.
Definition at line 87 of file TOPCalTimebase.cc.
void exportPmtTTSHisto | ( | std::string | outFileName = "RetrievedHistos.root" | ) |
Example of exporting TTS histograms.
outFileName | name of the root file where data will be saved |
Definition at line 1219 of file TOPDatabaseImporter.cc.
void generateDecoupledPMTs | ( | double | fraction | ) |
Generate randomly a fraction of PMT's to be optically decoupled.
fraction | decoupled fraction |
Definition at line 74 of file TOPGeoPMTArray.cc.
void generateFakeChannelMask | ( | double | fractionDead, |
double | fractionHot, | ||
int | firstExp = 0 , |
||
int | firstRun = 0 , |
||
int | lastExp = -1 , |
||
int | lastRun = -1 |
||
) |
Generate and import a (random, fake) channel mask for testing.
fractionDead | the fraction of dead PMs to randomly assign |
fractionHot | the fraction of noisy PMs to randomly assign |
firstExp | first experiment number of IOV |
firstRun | first run number of IOV |
lastExp | first experiment number of IOV |
lastRun | last run number of IOV |
Definition at line 673 of file TOPDatabaseImporter.cc.
double generateTTS | ( | ) | const |
Generate time according to TTS distribution.
Definition at line 46 of file TOPNominalTTS.cc.
const TH2F * getActivePixels | ( | int | slot | ) | const |
Returns a 2D histogram of active pixels.
slot | slot ID |
Definition at line 86 of file TOPCalPhotonYields.cc.
double getAlpha | ( | int | moduleID | ) | const |
Gets the angle alpha on a single module.
moduleID | module ID (1-based) |
Definition at line 119 of file TOPCalModuleAlignment.cc.
double getAlphaErr | ( | int | moduleID | ) | const |
Returns the error on alpha on a single module.
moduleID | module ID (1-based) |
Definition at line 179 of file TOPCalModuleAlignment.cc.
const TH2F * getAlphaRatio | ( | int | slot | ) | const |
Returns a 2D histogram of equalized pixel alpha ratio.
For optically well coupled pixels this ratio is around 1 and it is around 0.5 for those which are not.
slot | slot ID |
Definition at line 78 of file TOPCalPhotonYields.cc.
const TH2F * getBackgroundYields | ( | int | slot | ) | const |
Returns a 2D histogram of background pixel yields.
These are inefficiency corrected number of background hits per track in a pixel.
slot | slot ID |
Definition at line 70 of file TOPCalPhotonYields.cc.
std::vector< std::pair< double, double > > getBackPlateContour | ( | ) | const |
Returns prism enclosure back plate x-y contour.
Definition at line 174 of file TOPGeoQBB.cc.
std::vector< std::pair< double, double > > getBackwardContour | ( | ) | const |
Returns backward x-y contour.
Definition at line 106 of file TOPGeoQBB.cc.
double getBackwardZ | ( | ) | const |
Returns backward z of the volume devoted to TOP counter.
Definition at line 102 of file TOPGeometry.cc.
double getBeta | ( | int | moduleID | ) | const |
Gets the angle beta on a single module.
moduleID | module ID (1-based) |
Definition at line 129 of file TOPCalModuleAlignment.cc.
double getBetaErr | ( | int | moduleID | ) | const |
Returns the error on beta on a single module.
moduleID | module ID (1-based) |
Definition at line 189 of file TOPCalModuleAlignment.cc.
std::vector< std::pair< double, double > > getBrokenGlueContour | ( | ) | const |
Returns the x-y contour of broken glue.
Definition at line 59 of file TOPGeoBarSegment.cc.
float getBulkTransmittance | ( | double | lambda | ) | const |
Returns bulk transmittance at given wavelength using linear interpolation.
lambda | photon wavelength in [nm] |
Definition at line 21 of file TOPWavelengthFilter.cc.
double getCE | ( | bool | BfieldOn | ) | const |
Returns collection efficiency.
BfieldOn | true for magnetic field being ON |
Definition at line 59 of file TOPPmtQE.cc.
unsigned getColumn | ( | unsigned | pmtID | ) | const |
Converts PMT ID to column number (1-based)
pmtID | PMT ID (1-based) |
Definition at line 34 of file TOPGeoPMTArray.cc.
double getEfficiency | ( | unsigned | pmtPixel, |
double | lambda, | ||
bool | BfieldOn | ||
) | const |
Returns quantum times collection efficiency for a given pixel and wavelength, using linear interpolation.
pmtPixel | pmtPixel number (1-based) |
lambda | wavelength in [nm] |
BfieldOn | true for magnetic field being ON |
Definition at line 50 of file TOPPmtQE.cc.
const std::vector< float > & getEnvelopeQE | ( | ) | const |
Returns envelope quantum efficiency data points (maximum over pixels)
Definition at line 38 of file TOPPmtQE.cc.
double getEnvelopeQE | ( | double | lambda | ) | const |
Returns envelope quantum efficiency for a given wavelength (maximum over pixels), using linear interpolation.
lambda | wavelength in [nm] |
Definition at line 44 of file TOPPmtQE.cc.
std::vector< std::pair< double, double > > getForwardContour | ( | ) | const |
Returns forward x-y contour.
Definition at line 21 of file TOPGeoQBB.cc.
double getForwardZ | ( | ) | const |
Returns forward z of the volume devoted to TOP counter.
Definition at line 114 of file TOPGeometry.cc.
std::vector< std::pair< double, double > > getFrontPlateContour | ( | ) | const |
Returns prism enclosure front plate x-y contour.
Definition at line 203 of file TOPGeoQBB.cc.
double getFullTime | ( | int | window, |
double | sample | ||
) | const |
Returns time with respect to sample 0 of window 0.
Note: sample is float - digits that follow the decimal point are used to interpolate the time btw. two samples
window | ASIC window number |
sample | sample counted from the first one in the specified ASIC window |
Definition at line 58 of file TOPSampleTimes.cc.
double getGamma | ( | int | moduleID | ) | const |
Gets the angle gamma on a single module.
moduleID | module ID (1-based) |
Definition at line 139 of file TOPCalModuleAlignment.cc.
double getGammaErr | ( | int | moduleID | ) | const |
Returns the error on gamma on a single module.
moduleID | module ID (1-based) |
Definition at line 199 of file TOPCalModuleAlignment.cc.
std::vector< std::pair< double, double > > getInnerPanelContour | ( | ) | const |
Returns inner honeycomb panel x-y contour.
Definition at line 54 of file TOPGeoQBB.cc.
double getInnerRadius | ( | ) | const |
Returns inner radius of the volume devoted to TOP counter.
Definition at line 64 of file TOPGeometry.cc.
double getLambdaLast | ( | ) | const |
Returns wavelenght of the last data point (maximal of pixels)
Definition at line 68 of file TOPPmtQE.cc.
double getLambdaLast | ( | unsigned | pmtPixel | ) | const |
Returns wavelenght of the last data point for a given pixel.
pmtPixel | pmtPixel number (1-based) |
Definition at line 78 of file TOPPmtQE.cc.
double getMaxLambda | ( | ) | const |
Returns wavelength of the last nonzero QE data point.
Definition at line 49 of file TOPNominalQE.cc.
double getMinLambda | ( | ) | const |
Returns wavelength of the first nonzero QE data point.
Definition at line 40 of file TOPNominalQE.cc.
const TOPGeoModule & getModule | ( | int | moduleID | ) | const |
Returns module.
moduleID | valid module ID (1-based) |
Definition at line 42 of file TOPGeometry.cc.
const TH1F * getMuonZ | ( | int | slot | ) | const |
Returns z distribution of tracks used to determine pixel yields.
slot | slot ID |
Definition at line 102 of file TOPCalPhotonYields.cc.
|
private |
Counts and returns the number of channels having a given status.
check | status to be checked |
Definition at line 99 of file TOPCalChannelMask.cc.
|
private |
Counts and returns the number of channels od a module having a given status.
check | status to be checked |
moduleID | module (slot) ID (1-based) |
Definition at line 110 of file TOPCalChannelMask.cc.
|
private |
Return the offset that can allow for the maximal number of good pedestal samples.
values | pedestal values |
errors | pedestal errors |
maxDif | maximal number that can be stored in c_Bits |
maxErr | maximal number that can be stored in 16 - c_Bits |
Definition at line 65 of file TOPASICPedestals.cc.
std::vector< std::pair< double, double > > getOuterPanelContour | ( | ) | const |
Returns outer honeycomb panel x-y contour.
Definition at line 80 of file TOPGeoQBB.cc.
double getOuterRadius | ( | ) | const |
Returns outer radius of the volume devoted to TOP counter.
Definition at line 77 of file TOPGeometry.cc.
double getPDETuningFactor | ( | unsigned | type | ) | const |
Returns photon detection efficiency tuning factor of a given PMT type.
type | PMT type |
Definition at line 57 of file TOPGeometry.cc.
double getPeakingTime | ( | ) | const |
Returns peaking time of the signal.
Definition at line 93 of file TOPSignalShape.cc.
std::vector< Pair > getPeelOffContour | ( | const PeelOffRegion & | region | ) | const |
Returns the x-y contour of the peel-off region.
region | peel-off region |
Definition at line 118 of file TOPGeoPrism.cc.
const TH2F * getPhotonYields | ( | int | slot | ) | const |
Returns a 2D histogram of photon pixel yields.
These are background subtracted and inefficiency corrected number of photons per track in a pixel.
slot | slot ID |
Definition at line 62 of file TOPCalPhotonYields.cc.
unsigned getPixelColumn | ( | double | x | ) | const |
Converts x-coordinate to pixel column (1-based)
x | coordinate |
Definition at line 21 of file TOPGeoPMT.cc.
unsigned getPixelID | ( | double | x, |
double | y | ||
) | const |
Converts x and y coordinates to PMT pixel ID (1-based)
x | coordinate |
y | coordinate |
Definition at line 36 of file TOPGeoPMT.cc.
int getPixelID | ( | double | x, |
double | y, | ||
unsigned | pmtID | ||
) | const |
Converts (digitizes) x, y and PMT ID to pixel ID (1-based)
x | coordinate in PMT local frame |
y | coordinate in PMT local frame |
pmtID | PMT ID (1-based) |
Definition at line 40 of file TOPGeoPMTArray.cc.
int getPixelID | ( | unsigned | pmtID, |
unsigned | pmtPixelID | ||
) | const |
Returns pixel ID (1-based)
pmtID | PMT ID (1-based) |
pmtPixelID | PMT pixel ID (1-based) |
Definition at line 58 of file TOPGeoPMTArray.cc.
unsigned getPixelRow | ( | double | y | ) | const |
Converts y-coordinate to pixel row (1-based)
y | coordinate |
Definition at line 29 of file TOPGeoPMT.cc.
unsigned getPmtID | ( | unsigned | row, |
unsigned | col | ||
) | const |
Converts row and column numbers to PMT ID (1-based)
row | row number (1-based) |
col | column number (1-based) |
Definition at line 21 of file TOPGeoPMTArray.cc.
std::vector< std::pair< double, double > > getPrismEnclosureContour | ( | ) | const |
Returns prism enclosure wall x-y contour.
Definition at line 139 of file TOPGeoQBB.cc.
const TH2F * getPulseHeights | ( | int | slot | ) | const |
Returns a 2D histogram of pixel pulse-heights.
slot | slot ID |
Definition at line 94 of file TOPCalPhotonYields.cc.
double getQE | ( | double | lambda | ) | const |
Returns quantum efficiency at given photon wavelength using linear interpolation.
lambda | photon wavelength in [nm] |
Definition at line 30 of file TOPNominalQE.cc.
const std::vector< float > & getQE | ( | unsigned | pmtPixel | ) | const |
Returns quantum efficiency data points for a given pixel.
pmtPixel | pmtPixel number (1-based) |
Definition at line 21 of file TOPPmtQE.cc.
double getQE | ( | unsigned | pmtPixel, |
double | lambda | ||
) | const |
Returns quantum efficiency for a given pixel and wavelength, using linear interpolation.
pmtPixel | pmtPixel number (1-based) |
lambda | wavelength in [nm] |
Definition at line 31 of file TOPPmtQE.cc.
double getRadius | ( | ) | const |
double getReflectivity | ( | const GeoOpticalSurface & | surface, |
double | energy | ||
) | const |
Returns reflectivity of optical surface at given photon energy.
surface | optical surface parameters |
energy | photon energy in [eV] |
Definition at line 72 of file TOPGeoBase.cc.
unsigned getRow | ( | unsigned | pmtID | ) | const |
Converts PMT ID to row number (1-based)
pmtID | PMT ID (1-based) |
Definition at line 28 of file TOPGeoPMTArray.cc.
int getSample | ( | double | time | ) | const |
Converts time to sample number.
Use isSampleValid(int) to check the validity of sample number
time | [ns] |
Definition at line 67 of file TOPNominalTDC.cc.
double getSample | ( | int | window, |
double | time | ||
) | const |
Returns sample with respect to sample 0 of the specified ASIC window (inverse of getTime).
Note: sample is float - digits that follow the decimal point are used to interpolate the time btw. two samples
window | ASIC window number |
time | time with respect to SSTin of specified ASIC window |
Definition at line 80 of file TOPSampleTimes.cc.
const TOPSampleTimes * getSampleTimes | ( | unsigned | scrodID, |
unsigned | channel | ||
) | const |
Returns calibration constants for given SCROD and channel.
If calibration is not available, return equidistant sample times.
scrodID | SCROD ID |
channel | channel number (within SCROD or within module) |
Definition at line 61 of file TOPCalTimebase.cc.
double getSigma | ( | int | pulseHeight | ) | const |
Returns an excess of electronic time resolution at given pulse height.
pulseHeight | pulse height [ADC counts] |
Definition at line 48 of file TOPCalTimeWalk.cc.
double getSigmaSq | ( | int | pulseHeight | ) | const |
Returns an excess of electronic time resolution at given pulse height.
pulseHeight | pulse height [ADC counts] |
Definition at line 41 of file TOPCalTimeWalk.cc.
TOPCalChannelMask::EStatus getStatus | ( | int | moduleID, |
unsigned | channel | ||
) | const |
Returns the status of a single channel.
moduleID | module ID (1-based) |
channel | hardware channel number (0-based) |
Definition at line 61 of file TOPCalChannelMask.cc.
double getT0 | ( | int | moduleID | ) | const |
Returns T0 of a module.
moduleID | module ID (1-based) |
Definition at line 63 of file TOPCalModuleT0.cc.
double getT0 | ( | int | moduleID, |
unsigned | asic | ||
) | const |
Returns T0 of a single asic.
moduleID | module ID (1-based) |
asic | ASIC number within a module (0 - 63) |
Definition at line 51 of file TOPCalAsicShift.cc.
double getT0 | ( | int | moduleID, |
unsigned | channel | ||
) | const |
Returns T0 of a single channel.
moduleID | module ID (1-based) |
channel | hardware channel number (0-based) |
Definition at line 73 of file TOPCalChannelT0.cc.
double getT0Error | ( | int | moduleID | ) | const |
Returns error on T0 of a module.
moduleID | module ID (1-based) |
Definition at line 74 of file TOPCalModuleT0.cc.
double getT0Error | ( | int | moduleID, |
unsigned | channel | ||
) | const |
Returns error on T0 of a single channel.
moduleID | module ID (1-based) |
channel | hardware channel number (0-based) |
Definition at line 88 of file TOPCalChannelT0.cc.
int getTDCcount | ( | double | time | ) | const |
Converts time to TDC count.
For times being outside TDC range, TDC overflow value is returned.
time | [ns] |
Definition at line 58 of file TOPNominalTDC.cc.
std::vector< double > getTimeAxis | ( | ) | const |
Returns time axis (sample times)
Definition at line 48 of file TOPSampleTimes.cc.
double getTimeBin | ( | int | window, |
int | sampleNumber | ||
) | const |
Returns time bin of a given sample number and window (e.g.
time interval to the next sample)
window | ASIC window number |
sampleNumber | sample number counted from begin of the specified ASIC window |
Definition at line 104 of file TOPSampleTimes.cc.
double getTimeWalk | ( | int | pulseHeight | ) | const |
Returns time-walk at given pulse height.
pulseHeight | pulse height [ADC counts] |
Definition at line 27 of file TOPCalTimeWalk.cc.
Transform3D getTransformation | ( | ) | const |
Returns transformation from local to nominal frame.
Translation is always given in basf2 units.
Definition at line 37 of file TOPGeoModuleDisplacement.cc.
const Transform3D & getTransformation | ( | int | moduleID | ) | const |
Returns transformation from local to nominal frame.
Transformation is: rotation first then translation.
moduleID | module ID (1-based) |
Definition at line 298 of file TOPCalModuleAlignment.cc.
const TOPNominalTTS & getTTS | ( | unsigned | type | ) | const |
Returns time transition spread of a given PMT type.
type | PMT type |
Definition at line 50 of file TOPGeometry.cc.
double getValue | ( | double | t | ) | const |
Returns value at time t of the normalized waveform using interpolator.
t | time [ns] (t = 0 is at 50% CF leading edge crossing) |
Definition at line 75 of file TOPSignalShape.cc.
double getX | ( | int | moduleID | ) | const |
Returns the shift x on a single module.
moduleID | module ID (1-based) |
Definition at line 149 of file TOPCalModuleAlignment.cc.
double getX | ( | unsigned | col | ) | const |
Returns x coordinate of pixel center.
col | valid column number (1-based) |
Definition at line 47 of file TOPGeoPMT.cc.
double getXErr | ( | int | moduleID | ) | const |
Returns the error on x on a single module.
moduleID | module ID (1-based) |
Definition at line 209 of file TOPCalModuleAlignment.cc.
double getY | ( | int | moduleID | ) | const |
Returns the shift y on a single module.
moduleID | module ID (1-based) |
Definition at line 159 of file TOPCalModuleAlignment.cc.
double getY | ( | unsigned | row | ) | const |
Returns y coordinate of pixel center.
row | valid row number (1-based) |
Definition at line 52 of file TOPGeoPMT.cc.
double getYErr | ( | int | moduleID | ) | const |
Returns the error on y on a single module.
moduleID | module ID (1-based) |
Definition at line 219 of file TOPCalModuleAlignment.cc.
double getZ | ( | int | moduleID | ) | const |
Returns the shift z on a single module.
moduleID | module ID (1-based) |
Definition at line 169 of file TOPCalModuleAlignment.cc.
double getZc | ( | ) | const |
Returns spherical mirror center of curvature in z (in local frame of this segment)
Definition at line 21 of file TOPGeoMirrorSegment.cc.
double getZErr | ( | int | moduleID | ) | const |
Returns the error on z on a single module.
moduleID | module ID (1-based) |
Definition at line 229 of file TOPCalModuleAlignment.cc.
void importAsicShifts_BS13d | ( | double | s0, |
double | s1, | ||
double | s2, | ||
double | s3, | ||
int | expNo, | ||
int | firstRun, | ||
int | lastRun | ||
) |
Import ASIC shifts of BS13d.
s0 | shift of carrier 0 [ns] |
s1 | shift of carrier 1 [ns] |
s2 | shift of carrier 2 [ns] |
s3 | shift of carrier 3 [ns] |
expNo | experiment number of IOV |
firstRun | first run number of IOV |
lastRun | last run number of IOV |
Definition at line 342 of file TOPDatabaseImporter.cc.
void importChannelMask | ( | std::string | fileName, |
int | expNo, | ||
int | firstRun, | ||
int | lastRun | ||
) |
Import channel mask from a root file (given as 1D histograms, one per slot).
fileName | root file name |
expNo | experiment number of IOV |
firstRun | first run number of IOV |
lastRun | last run number of IOV |
Definition at line 621 of file TOPDatabaseImporter.cc.
void importChannelT0 | ( | std::string | fileName, |
int | expNo, | ||
int | firstRun, | ||
int | lastRun | ||
) |
Import channel T0 calibration constants The input is a root file with 1D histograms (one per slot, named "channelT0_slot*")
fileName | root file name |
expNo | experiment number of IOV |
firstRun | first run number of IOV |
lastRun | last run number of IOV |
Definition at line 290 of file TOPDatabaseImporter.cc.
void importCommonT0 | ( | double | value, |
double | error, | ||
int | expNo, | ||
int | firstRun, | ||
int | lastRun, | ||
bool | roughlyCalibrated = false |
||
) |
Import common T0 calibration constants.
value | central value of T0 |
error | uncertainty on T0 |
expNo | experiment number of IOV |
firstRun | first run number of IOV |
lastRun | last run number of IOV |
roughlyCalibrated | if true set payload status to roughly calibrated |
Definition at line 446 of file TOPDatabaseImporter.cc.
void importDummyCalAsicShift | ( | int | firstExp = 0 , |
int | firstRun = 0 , |
||
int | lastExp = -1 , |
||
int | lastRun = -1 |
||
) |
import a dummy payload of TOPCalAsicShift DB objects
firstExp | first experiment number of IOV |
firstRun | first run number of IOV |
lastExp | first experiment number of IOV |
lastRun | last run number of IOV |
Definition at line 1395 of file TOPDatabaseImporter.cc.
void importDummyCalChannelNoise | ( | int | firstExp = 0 , |
int | firstRun = 0 , |
||
int | lastExp = -1 , |
||
int | lastRun = -1 |
||
) |
import a dummy payload of TOPCalChannelNoise DB objects
firstExp | first experiment number of IOV |
firstRun | first run number of IOV |
lastExp | first experiment number of IOV |
lastRun | last run number of IOV |
Definition at line 1318 of file TOPDatabaseImporter.cc.
void importDummyCalChannelPulseHeight | ( | int | firstExp = 0 , |
int | firstRun = 0 , |
||
int | lastExp = -1 , |
||
int | lastRun = -1 |
||
) |
import a dummy payload of TOPCalChannelPulseHeight DB objects
firstExp | first experiment number of IOV |
firstRun | first run number of IOV |
lastExp | first experiment number of IOV |
lastRun | last run number of IOV |
Definition at line 1329 of file TOPDatabaseImporter.cc.
void importDummyCalChannelRQE | ( | int | firstExp = 0 , |
int | firstRun = 0 , |
||
int | lastExp = -1 , |
||
int | lastRun = -1 |
||
) |
import a dummy payload of TOPCalChannelRQE DB objects
firstExp | first experiment number of IOV |
firstRun | first run number of IOV |
lastExp | first experiment number of IOV |
lastRun | last run number of IOV |
Definition at line 1340 of file TOPDatabaseImporter.cc.
void importDummyCalChannelT0 | ( | int | firstExp = 0 , |
int | firstRun = 0 , |
||
int | lastExp = -1 , |
||
int | lastRun = -1 |
||
) |
import a dummy payload of TOPCalChannelT0 DB objects
firstExp | first experiment number of IOV |
firstRun | first run number of IOV |
lastExp | first experiment number of IOV |
lastRun | last run number of IOV |
Definition at line 1296 of file TOPDatabaseImporter.cc.
void importDummyCalChannelThreshold | ( | int | firstExp = 0 , |
int | firstRun = 0 , |
||
int | lastExp = -1 , |
||
int | lastRun = -1 |
||
) |
import a dummy payload of TOPCalChannelThreshold DB objects
firstExp | first experiment number of IOV |
firstRun | first run number of IOV |
lastExp | first experiment number of IOV |
lastRun | last run number of IOV |
Definition at line 1362 of file TOPDatabaseImporter.cc.
void importDummyCalChannelThresholdEff | ( | int | firstExp = 0 , |
int | firstRun = 0 , |
||
int | lastExp = -1 , |
||
int | lastRun = -1 |
||
) |
import a dummy payload of TOPCalChannelThresholdEff DB objects
firstExp | first experiment number of IOV |
firstRun | first run number of IOV |
lastExp | first experiment number of IOV |
lastRun | last run number of IOV |
Definition at line 1351 of file TOPDatabaseImporter.cc.
void importDummyCalCommonT0 | ( | int | firstExp = 0 , |
int | firstRun = 0 , |
||
int | lastExp = -1 , |
||
int | lastRun = -1 |
||
) |
import a dummy payload of TOPCalCommonT0 DB objects
firstExp | first experiment number of IOV |
firstRun | first run number of IOV |
lastExp | first experiment number of IOV |
lastRun | last run number of IOV |
Definition at line 1373 of file TOPDatabaseImporter.cc.
void importDummyCalIntegratedCharge | ( | int | firstExp = 0 , |
int | firstRun = 0 , |
||
int | lastExp = -1 , |
||
int | lastRun = -1 |
||
) |
import a dummy payload of TOPCalIntegratedCharge DB objects
firstExp | first experiment number of IOV |
firstRun | first run number of IOV |
lastExp | first experiment number of IOV |
lastRun | last run number of IOV |
Definition at line 1384 of file TOPDatabaseImporter.cc.
void importDummyCalModuleAlignment | ( | int | firstExp = 0 , |
int | firstRun = 0 , |
||
int | lastExp = -1 , |
||
int | lastRun = -1 |
||
) |
import a dummy payload of TOPCalModuleAlignment DB objects
firstExp | first experiment number of IOV |
firstRun | first run number of IOV |
lastExp | first experiment number of IOV |
lastRun | last run number of IOV |
Definition at line 1274 of file TOPDatabaseImporter.cc.
void importDummyCalModuleT0 | ( | int | firstExp = 0 , |
int | firstRun = 0 , |
||
int | lastExp = -1 , |
||
int | lastRun = -1 |
||
) |
import a dummy payload of TOPCalCalModuleT0 DB objects
firstExp | first experiment number of IOV |
firstRun | first run number of IOV |
lastExp | first experiment number of IOV |
lastRun | last run number of IOV |
Definition at line 1285 of file TOPDatabaseImporter.cc.
void importDummyCalTimebase | ( | int | firstExp = 0 , |
int | firstRun = 0 , |
||
int | lastExp = -1 , |
||
int | lastRun = -1 |
||
) |
import a dummy payload of TOPCalTimebase DB objects
firstExp | first experiment number of IOV |
firstRun | first run number of IOV |
lastExp | first experiment number of IOV |
lastRun | last run number of IOV |
Definition at line 1307 of file TOPDatabaseImporter.cc.
void importFrontEndSettings | ( | int | lookback, |
int | readoutWin, | ||
int | extraWin, | ||
int | offset, | ||
int | expNo, | ||
int | firstRun, | ||
int | lastRun | ||
) |
Import front-end settings.
lookback | the number of lookback windows |
readoutWin | the number of readout windows |
extraWin | the number of extra windows btw. lookback and readout window |
offset | offset to photon peak [RF clocks] |
expNo | experiment number of IOV |
firstRun | first run number of IOV |
lastRun | last run number of IOV |
Definition at line 1242 of file TOPDatabaseImporter.cc.
void importLocalT0Calibration | ( | std::string | fileNames, |
int | firstExp = 0 , |
||
int | firstRun = 0 , |
||
int | lastExp = -1 , |
||
int | lastRun = -1 |
||
) |
Import channel-by-channel T0 calibration constants to database The input is the root file with ntuple produced by TOPLaserCalibrator.
fileNames | file names separated by space (since vector doesn't work!) |
firstExp | first experiment number of IOV |
firstRun | first run number of IOV |
lastExp | first experiment number of IOV |
lastRun | last run number of IOV |
Definition at line 195 of file TOPDatabaseImporter.cc.
void importModuleT0 | ( | std::string | fileName, |
int | expNo, | ||
int | firstRun, | ||
int | lastRun | ||
) |
Import module T0 calibration constants The input is a root file with 1D histogram (name is "moduleT0")
fileName | root file name |
expNo | experiment number of IOV |
firstRun | first run number of IOV |
lastRun | last run number of IOV |
Definition at line 514 of file TOPDatabaseImporter.cc.
void importModuleT0Calibration | ( | std::string | fileName, |
int | firstExp = 0 , |
||
int | firstRun = 0 , |
||
int | lastExp = -1 , |
||
int | lastRun = -1 |
||
) |
Import module T0 calibration constants to database The input is the text file.
fileName | name of the dat file with constants of all modules |
firstExp | first experiment number of IOV |
firstRun | first run number of IOV |
lastExp | first experiment number of IOV |
lastRun | last run number of IOV |
Definition at line 461 of file TOPDatabaseImporter.cc.
void importOfflineCommonT0Calibration | ( | std::string | fileName, |
int | firstExp = 0 , |
||
int | firstRun = 0 , |
||
int | lastExp = -1 , |
||
int | lastRun = -1 |
||
) |
Import common T0 calibration constants derived form the offline data reprocessing to database The input is a root file containing a tree (one per run).
In the future we may add a furter implementation that reads the IOV from the root file itself.
fileName | name of the root file with constants of all modules |
firstExp | first experiment number of IOV |
firstRun | first run number of IOV |
lastExp | first experiment number of IOV |
lastRun | last run number of IOV |
Definition at line 372 of file TOPDatabaseImporter.cc.
void importPmtGainData | ( | std::string | fileName, |
std::string | treeName = "gainPmtData" , |
||
int | firstExp = 0 , |
||
int | firstRun = 0 , |
||
int | lastExp = -1 , |
||
int | lastRun = -1 |
||
) |
Import PMT gain parameters data to database.
fileName | : name of the root file containing relevant data |
treeName | : name of the tree containing relevant data |
firstExp | first experiment number of IOV |
firstRun | first run number of IOV |
lastExp | first experiment number of IOV |
lastRun | last run number of IOV |
Definition at line 796 of file TOPDatabaseImporter.cc.
void importPmtInstallationData | ( | std::string | fileName, |
std::string | treeName = "installationPmtData" , |
||
int | firstExp = 0 , |
||
int | firstRun = 0 , |
||
int | lastExp = -1 , |
||
int | lastRun = -1 |
||
) |
Import PMT installation data to database.
fileName | : name of the root file containing relevant data |
treeName | : name of the tree containing relevant data |
firstExp | first experiment number of IOV |
firstRun | first run number of IOV |
lastExp | first experiment number of IOV |
lastRun | last run number of IOV |
Definition at line 855 of file TOPDatabaseImporter.cc.
void importPmtObsoleteData | ( | std::string | fileName, |
std::string | treeName = "obsPmtData" , |
||
int | firstExp = 0 , |
||
int | firstRun = 0 , |
||
int | lastExp = -1 , |
||
int | lastRun = -1 |
||
) |
Import PMT specifications from Hamamatsu (not to be used!)
fileName | : name of the root file containing relevant data |
treeName | : name of the tree containing relevant data |
firstExp | first experiment number of IOV |
firstRun | first run number of IOV |
lastExp | first experiment number of IOV |
lastRun | last run number of IOV |
Definition at line 905 of file TOPDatabaseImporter.cc.
void importPmtPulseHeightFitResult | ( | std::string | fileName, |
int | firstExp = 0 , |
||
int | firstRun = 0 , |
||
int | lastExp = -1 , |
||
int | lastRun = -1 |
||
) |
Import fit results of pulse height disribution for channel gain and threshold efficiency.
fileName | : name of the root file containing relevant data, which is obtained from TOPGainEfficiencyMonitor |
firstExp | first experiment number of IOV |
firstRun | first run number of IOV |
lastExp | first experiment number of IOV |
lastRun | last run number of IOV |
Definition at line 1129 of file TOPDatabaseImporter.cc.
void importPmtQEData | ( | std::string | fileName, |
std::string | treeName = "qePmtData" , |
||
int | firstExp = 0 , |
||
int | firstRun = 0 , |
||
int | lastExp = -1 , |
||
int | lastRun = -1 |
||
) |
Import PMT Quantum Efficiency data to database.
fileName | : name of the root file containing relevant data |
treeName | : name of the tree containing relevant data |
firstExp | first experiment number of IOV |
firstRun | first run number of IOV |
lastExp | first experiment number of IOV |
lastRun | last run number of IOV |
Definition at line 723 of file TOPDatabaseImporter.cc.
void importPmtTTSHisto | ( | std::string | fileName, |
std::string | treeName = "ttsPmtHisto" , |
||
int | firstExp = 0 , |
||
int | firstRun = 0 , |
||
int | lastExp = -1 , |
||
int | lastRun = -1 |
||
) |
Import histograms used for PMT TTS determination.
fileName | : name of the root file containing relevant data |
treeName | : name of the tree containing relevant data |
firstExp | first experiment number of IOV |
firstRun | first run number of IOV |
lastExp | first experiment number of IOV |
lastRun | last run number of IOV |
Definition at line 1066 of file TOPDatabaseImporter.cc.
void importPmtTTSPar | ( | std::string | fileName, |
std::string | treeName = "ttsPmtPar" , |
||
int | firstExp = 0 , |
||
int | firstRun = 0 , |
||
int | lastExp = -1 , |
||
int | lastRun = -1 |
||
) |
Import gaussians fitting the TTS distributions.
fileName | : name of the root file containing relevant data |
treeName | : name of the tree containing relevant data |
firstExp | first experiment number of IOV |
firstRun | first run number of IOV |
lastExp | first experiment number of IOV |
lastRun | last run number of IOV |
Definition at line 965 of file TOPDatabaseImporter.cc.
void importSampleTimeCalibration | ( | std::string | fileNames, |
int | firstExp = 0 , |
||
int | firstRun = 0 , |
||
int | lastExp = -1 , |
||
int | lastRun = -1 |
||
) |
Import sample time calibration constants to database Output of TOPTimeBaseCalibrator (root files with histograms)
fileNames | file names separated by space (since vector doesn't work!) |
firstExp | first experiment number of IOV |
firstRun | first run number of IOV |
lastExp | first experiment number of IOV |
lastRun | last run number of IOV |
Definition at line 69 of file TOPDatabaseImporter.cc.
void importTest | ( | ) |
for testing purposes only! - will be removed ...
Definition at line 1506 of file TOPDatabaseImporter.cc.
void importTest | ( | int | runNumber, |
double | syncTimeBase | ||
) |
for testing purposes only! - will be removed ...
Definition at line 1473 of file TOPDatabaseImporter.cc.
void importTimeWalk | ( | PyObject * | list, |
double | a, | ||
double | b, | ||
int | firstExp = 0 , |
||
int | firstRun = 0 , |
||
int | lastExp = -1 , |
||
int | lastRun = -1 |
||
) |
payload TOPCalTimeWalk import parameters for time-walk correction and electronic time resolution tuning
list | Python list of parameters of time-walk calibration curve [ns] |
a | electronic time resolution: noise term excess parameter [ns] |
b | electronic time resolution: quadratic term parameter [ns] |
firstExp | first experiment number of IOV |
firstRun | first run number of IOV |
lastExp | first experiment number of IOV |
lastRun | last run number of IOV |
Definition at line 1442 of file TOPDatabaseImporter.cc.
|
private |
Interpolate between QE datapoints (linear interpolation).
lambda | wavelength in [nm] |
QE | quantum efficiency data points |
Definition at line 105 of file TOPPmtQE.cc.
bool isActive | ( | int | moduleID, |
unsigned | channel | ||
) | const |
Returns false if the channel is dead or noisy, and true is the channel is active.
moduleID | module ID (1-based) |
channel | hardware channel number (0-based) |
Definition at line 72 of file TOPCalChannelMask.cc.
bool isAvailable | ( | unsigned | scrodID, |
unsigned | channel | ||
) | const |
Checks if calibration is available.
scrodID | SCROD ID |
channel | channel number (within SCROD or within module) |
Definition at line 76 of file TOPCalTimebase.cc.
bool isCalibrated | ( | int | moduleID | ) | const |
Returns calibration status.
moduleID | module ID (1-based) |
Definition at line 239 of file TOPCalModuleAlignment.cc.
bool isCalibrated | ( | int | moduleID | ) | const |
Returns calibration status.
moduleID | module ID (1-based) |
Definition at line 85 of file TOPCalModuleT0.cc.
bool isCalibrated | ( | int | moduleID, |
unsigned | asic | ||
) | const |
Returns calibration status.
moduleID | module ID (1-based) |
asic | ASIC number within a module (0 - 63) |
Definition at line 66 of file TOPCalAsicShift.cc.
bool isCalibrated | ( | int | moduleID, |
unsigned | channel | ||
) | const |
Returns calibration status.
moduleID | module ID (1-based) |
channel | hardware channel number (0-based) |
Definition at line 103 of file TOPCalChannelT0.cc.
|
overridevirtual |
Check for consistency of data members.
Reimplemented from TOPGeoBase.
Reimplemented in TOPGeoMirrorSegment, and TOPGeoPrism.
Definition at line 23 of file TOPGeoBarSegment.cc.
|
overridevirtual |
Check for consistency of data members.
Reimplemented from TOPGeoBase.
Definition at line 20 of file TOPGeoColdPlate.cc.
|
overridevirtual |
Check for consistency of data members.
Reimplemented from TOPGeoBase.
Definition at line 20 of file TOPGeoEndPlate.cc.
|
overridevirtual |
Check for consistency of data members.
Reimplemented from TOPGeoBase.
Definition at line 20 of file TOPGeoFrontEnd.cc.
|
overridevirtual |
Check for consistency of data members.
Reimplemented from TOPGeoBase.
Definition at line 46 of file TOPGeoHoneycombPanel.cc.
|
overridevirtual |
Check for consistency of data members.
Reimplemented from TOPGeoBase.
Definition at line 126 of file TOPGeometry.cc.
|
overridevirtual |
Check for consistency of data members.
Reimplemented from TOPGeoBarSegment.
Definition at line 33 of file TOPGeoMirrorSegment.cc.
|
overridevirtual |
Check for consistency of data members.
Reimplemented from TOPGeoBase.
Definition at line 150 of file TOPGeoModule.cc.
|
overridevirtual |
Check for consistency of data members.
Reimplemented from TOPGeoBase.
Definition at line 58 of file TOPGeoPMT.cc.
|
overridevirtual |
Check for consistency of data members.
Reimplemented from TOPGeoBase.
Definition at line 93 of file TOPGeoPMTArray.cc.
|
overridevirtual |
Check for consistency of data members.
Reimplemented from TOPGeoBarSegment.
Definition at line 36 of file TOPGeoPrism.cc.
|
overridevirtual |
Check for consistency of data members.
Reimplemented from TOPGeoBase.
Definition at line 21 of file TOPGeoPrismEnclosure.cc.
|
overridevirtual |
Check for consistency of data members.
Reimplemented from TOPGeoBase.
Definition at line 230 of file TOPGeoQBB.cc.
|
overridevirtual |
Check for consistency of data members.
Reimplemented from TOPGeoBase.
Definition at line 20 of file TOPGeoSideRails.cc.
|
overridevirtual |
Check for consistency of data members.
Reimplemented from TOPGeoBase.
Definition at line 58 of file TOPNominalQE.cc.
|
overridevirtual |
Check for consistency of data members.
Reimplemented from TOPGeoBase.
Definition at line 84 of file TOPNominalTDC.cc.
|
overridevirtual |
Check for consistency of data members.
Reimplemented from TOPGeoBase.
Definition at line 60 of file TOPNominalTTS.cc.
|
overridevirtual |
Check for consistency of data members.
Reimplemented from TOPGeoBase.
Definition at line 34 of file TOPWavelengthFilter.cc.
bool isDefault | ( | int | moduleID | ) | const |
Returns calibration status.
moduleID | module ID (1-based) |
Definition at line 246 of file TOPCalModuleAlignment.cc.
bool isDefault | ( | int | moduleID | ) | const |
Returns calibration status.
moduleID | module ID (1-based) |
Definition at line 93 of file TOPCalModuleT0.cc.
bool isDefault | ( | int | moduleID, |
unsigned | asic | ||
) | const |
Returns calibration status.
moduleID | module ID (1-based) |
asic | ASIC number within a module (0 - 63) |
Definition at line 75 of file TOPCalAsicShift.cc.
bool isDefault | ( | int | moduleID, |
unsigned | channel | ||
) | const |
Returns calibration status.
moduleID | module ID (1-based) |
channel | hardware channel number (0-based) |
Definition at line 112 of file TOPCalChannelT0.cc.
bool isModuleIDValid | ( | int | moduleID | ) | const |
Checks if module exists in m_modules.
moduleID | module ID (1-based) |
Definition at line 33 of file TOPGeometry.cc.
bool isPMTDecoupled | ( | unsigned | pmtID | ) | const |
Checks if PMT is optically decoupled.
Definition at line 84 of file TOPGeoPMTArray.cc.
bool isSampleValid | ( | int | sample | ) | const |
Check for the validity of sample number.
sample | sample number |
Definition at line 77 of file TOPNominalTDC.cc.
bool isUnusable | ( | int | moduleID | ) | const |
Returns calibration status.
moduleID | module ID (1-based) |
Definition at line 253 of file TOPCalModuleAlignment.cc.
bool isUnusable | ( | int | moduleID | ) | const |
Returns calibration status.
moduleID | module ID (1-based) |
Definition at line 101 of file TOPCalModuleT0.cc.
bool isUnusable | ( | int | moduleID, |
unsigned | asic | ||
) | const |
Returns calibration status.
moduleID | module ID (1-based) |
asic | ASIC number within a module (0 - 63) |
Definition at line 84 of file TOPCalAsicShift.cc.
bool isUnusable | ( | int | moduleID, |
unsigned | channel | ||
) | const |
Returns calibration status.
moduleID | module ID (1-based) |
channel | hardware channel number (0-based) |
Definition at line 121 of file TOPCalChannelT0.cc.
XYZVector momentumGlobalToNominal | ( | const ROOT::Math::XYZVector & | momentum | ) | const |
Transforms momentum vector from Belle II to module nominal frame.
momentum | momentum vector in Belle II frame |
Definition at line 143 of file TOPGeoModule.cc.
XYZVector momentumNominalToGlobal | ( | const ROOT::Math::XYZVector & | momentum | ) | const |
Transforms momentum vector from module nominal frame to Belle II frame.
momentum | momentum vector in module nominal frame |
Definition at line 131 of file TOPGeoModule.cc.
XYZVector momentumToGlobal | ( | const ROOT::Math::XYZVector & | momentum | ) | const |
Transforms momentum vector from module internal (= nominal & displaced) frame to Belle II frame.
momentum | momentum vector in module internal frame |
Definition at line 107 of file TOPGeoModule.cc.
XYZVector momentumToLocal | ( | const ROOT::Math::XYZVector & | momentum | ) | const |
Transforms momentum vector from Belle II to module internal (= nominal & displaced) frame.
momentum | momentum vector in Belle II frame |
Definition at line 119 of file TOPGeoModule.cc.
double normalize | ( | ) |
Normalize the distribution (fractions)
Definition at line 36 of file TOPNominalTTS.cc.
TOPGeoModule & operator= | ( | const TOPGeoModule & | module | ) |
Assignment operator.
Definition at line 33 of file TOPGeoModule.cc.
XYZPoint pointGlobalToNominal | ( | const ROOT::Math::XYZPoint & | point | ) | const |
Transforms 3D point from Belle II to module nominal frame.
point | 3D point in Belle II frame (basf2 units!) |
Definition at line 137 of file TOPGeoModule.cc.
XYZPoint pointNominalToGlobal | ( | const ROOT::Math::XYZPoint & | point | ) | const |
Transforms 3D point from module nominal frame to Belle II frame.
point | 3D point in module nominal frame (basf2 units!) |
Definition at line 125 of file TOPGeoModule.cc.
XYZPoint pointToGlobal | ( | const ROOT::Math::XYZPoint & | point | ) | const |
Transforms 3D point from module internal (= nominal & displaced) frame to Belle II frame.
point | 3D point in module internal frame (basf2 units!) |
Definition at line 101 of file TOPGeoModule.cc.
XYZPoint pointToLocal | ( | const ROOT::Math::XYZPoint & | point | ) | const |
Transforms 3D point from Belle II to module internal (= nominal & displaced) frame.
point | 3D point in Belle II frame (basf2 units!) |
Definition at line 113 of file TOPGeoModule.cc.
void print | ( | ) | const |
Print the class content.
Definition at line 21 of file TOPPmtGainPar.cc.
|
virtual |
Print the content of the class.
title | title to be printed |
Reimplemented in TOPGeoBarSegment, TOPGeoFrontEnd, TOPGeoPMT, TOPGeoMirrorSegment, TOPGeoModuleDisplacement, TOPGeoModule, TOPNominalQE, TOPNominalTDC, TOPNominalTTS, TOPGeoPMTArrayDisplacement, TOPGeoPMTArray, TOPGeoPrism, TOPGeoColdPlate, TOPGeoEndPlate, TOPGeoQBB, TOPGeoHoneycombPanel, TOPGeoPrismEnclosure, TOPGeoSideRails, TOPGeometry, and TOPWavelengthFilter.
Definition at line 28 of file TOPGeoBase.cc.
|
overridevirtual |
Print the content of the class.
title | title to be printed |
Reimplemented from TOPGeoBase.
Reimplemented in TOPGeoMirrorSegment, and TOPGeoPrism.
Definition at line 38 of file TOPGeoBarSegment.cc.
|
overridevirtual |
Print the content of the class.
title | title to be printed |
Reimplemented from TOPGeoBase.
Definition at line 46 of file TOPGeoFrontEnd.cc.
|
overridevirtual |
Print the content of the class.
title | title to be printed |
Reimplemented from TOPGeoBase.
Definition at line 85 of file TOPGeoPMT.cc.
|
overridevirtual |
Print the content of the class.
title | title to be printed |
Reimplemented from TOPGeoBarSegment.
Definition at line 44 of file TOPGeoMirrorSegment.cc.
|
overridevirtual |
Print the content of the class.
title | title to be printed |
Reimplemented from TOPGeoBase.
Definition at line 25 of file TOPGeoModuleDisplacement.cc.
|
overridevirtual |
Print the content of the class.
title | title to be printed |
Reimplemented from TOPGeoBase.
Definition at line 162 of file TOPGeoModule.cc.
|
overridevirtual |
Print the content of the class.
title | title to be printed |
Reimplemented from TOPGeoBase.
Definition at line 68 of file TOPNominalQE.cc.
|
overridevirtual |
Print the content of the class.
title | title to be printed |
Reimplemented from TOPGeoBase.
Definition at line 93 of file TOPNominalTDC.cc.
|
overridevirtual |
Print the content of the class.
title | title to be printed |
Reimplemented from TOPGeoBase.
Definition at line 68 of file TOPNominalTTS.cc.
|
overridevirtual |
Print the content of the class.
title | title to be printed |
Reimplemented from TOPGeoBase.
Definition at line 20 of file TOPGeoPMTArrayDisplacement.cc.
|
overridevirtual |
Print the content of the class.
title | title to be printed |
Reimplemented from TOPGeoBase.
Definition at line 108 of file TOPGeoPMTArray.cc.
|
overridevirtual |
Print the content of the class.
title | title to be printed |
Reimplemented from TOPGeoBarSegment.
Definition at line 60 of file TOPGeoPrism.cc.
|
overridevirtual |
Print the content of the class.
title | title to be printed |
Reimplemented from TOPGeoBase.
Definition at line 31 of file TOPGeoColdPlate.cc.
|
overridevirtual |
Print the content of the class.
title | title to be printed |
Reimplemented from TOPGeoBase.
Definition at line 29 of file TOPGeoEndPlate.cc.
|
overridevirtual |
Print the content of the class.
title | title to be printed |
Reimplemented from TOPGeoBase.
Definition at line 246 of file TOPGeoQBB.cc.
|
overridevirtual |
Print the content of the class.
title | title to be printed |
Reimplemented from TOPGeoBase.
Definition at line 60 of file TOPGeoHoneycombPanel.cc.
|
overridevirtual |
Print the content of the class.
title | title to be printed |
Reimplemented from TOPGeoBase.
Definition at line 35 of file TOPGeoPrismEnclosure.cc.
|
overridevirtual |
Print the content of the class.
title | title to be printed |
Reimplemented from TOPGeoBase.
Definition at line 30 of file TOPGeoSideRails.cc.
|
overridevirtual |
Print the content of the class.
title | title to be printed |
Reimplemented from TOPGeoBase.
Definition at line 142 of file TOPGeometry.cc.
|
overridevirtual |
Print the content of the class.
title | title to be printed |
Reimplemented from TOPGeoBase.
Definition at line 45 of file TOPWavelengthFilter.cc.
void printBackPlateContour | ( | ) | const |
Print prism enclosure back plate contour (polygon) - for debugging.
Definition at line 194 of file TOPGeoQBB.cc.
void printBackwardContour | ( | ) | const |
Print backward contour (polygon) - for debugging.
Definition at line 130 of file TOPGeoQBB.cc.
void printForwardContour | ( | ) | const |
Print forward contour (polygon) - for debugging.
Definition at line 45 of file TOPGeoQBB.cc.
void printFrontPlateContour | ( | ) | const |
Print prism enclosure front plate contour (polygon) - for debugging.
Definition at line 221 of file TOPGeoQBB.cc.
void printInnerPanelContour | ( | ) | const |
Print inner honeycomb panel contour (polygon) - for debugging.
Definition at line 71 of file TOPGeoQBB.cc.
void printOuterPanelContour | ( | ) | const |
Print outer honeycomb panel contour (polygon) - for debugging.
Definition at line 97 of file TOPGeoQBB.cc.
void printPrismEnclosureContour | ( | ) | const |
Print prism enclosure contour (polygon) - for debugging.
Definition at line 165 of file TOPGeoQBB.cc.
void printSampleTimeCalibration | ( | ) |
Print sample time calibration constants stored in database.
Definition at line 601 of file TOPDatabaseImporter.cc.
void printSampleTimeCalibrationInfo | ( | ) |
Prints sample time calibration info about constants stored in database.
Definition at line 561 of file TOPDatabaseImporter.cc.
|
virtual |
Print the content of optical surface.
surface | optical surface parameters |
Definition at line 44 of file TOPGeoBase.cc.
|
protected |
Print the content of the class.
title | title to be printed |
Definition at line 35 of file TOPGeoBase.cc.
|
private |
Do unfolding.
points | points defining position of upper and slanted surfaces |
normals | normals of upper and slanted surfaces |
orig | origin of exit window |
surf | exit window surface direction |
norm | exit window surface normal |
slanted | slanted surface normal |
k | index of the surface to start unfolding (0 or 1) |
result | the result of unfolding |
Definition at line 152 of file TOPGeoPrism.cc.
void set | ( | const std::vector< double > & | timeWalkParams, |
double | noise, | ||
double | quadratic | ||
) |
Sets all the parameters and switches status to calibrated.
timeWalkParams | polynomial coefficients of time-walk calibration curve [ns] |
noise | noise term excess coefficient of electronic time resolution [ns] |
quadratic | quadratic term coefficient of electronic time resolution [ns] |
Definition at line 18 of file TOPCalTimeWalk.cc.
void set | ( | int | slot, |
const TH1F * | photonYields, | ||
const TH1F * | backgroundYields, | ||
const TH1F * | alphaRatio, | ||
const TH1F * | activePixels, | ||
const TH2F * | pulseHeights, | ||
const TH1F * | muonZ | ||
) |
Sets the data of a given slot.
The data are given as 1D histograms of 512 bins that correspond to pixelID's. Note: the setter must be called in the ascending order of slot ID's, e.g slot = 1, 2, ... , 16
slot | slot ID |
photonYields | pixel photon yields |
backgroundYields | pixel background yields |
alphaRatio | equalized alpha ratio |
activePixels | active pixels |
pulseHeights | pixel pulse-heights |
muonZ | z-distribution of tracks |
Definition at line 20 of file TOPCalPhotonYields.cc.
void setActive | ( | int | moduleID, |
unsigned | channel | ||
) |
Sets a specific channel as active.
moduleID | module ID (1-based) |
channel | hardware channel number (0-based) |
Definition at line 31 of file TOPCalChannelMask.cc.
void setAlpha | ( | int | moduleID, |
double | alpha, | ||
double | errAlpha | ||
) |
Sets the angle alpha on a single module.
moduleID | module ID (1-based) |
alpha | rotation angle around x |
errAlpha | error on alpha |
Definition at line 25 of file TOPCalModuleAlignment.cc.
void setBeta | ( | int | moduleID, |
double | beta, | ||
double | errBeta | ||
) |
Sets the angle beta on a single module.
moduleID | module ID (1-based) |
beta | rotation angle around y |
errBeta | error on beta |
Definition at line 37 of file TOPCalModuleAlignment.cc.
void setBrokenGlue | ( | int | glueID, |
double | fraction, | ||
double | angle, | ||
const std::string & | material | ||
) |
Sets glue to be broken (delaminated)
glueID | glue ID: bar-mirror (1), bar-bar (2), prism-bar (3) |
fraction | fraction of the delaminated surface |
angle | angle of the delaminated surface |
material | material name to simulate the delaminated glue |
Definition at line 72 of file TOPGeoModule.cc.
void setCalibrated | ( | int | moduleID | ) |
Switches calibration status to calibrated.
moduleID | module ID (1-based) |
Definition at line 97 of file TOPCalModuleAlignment.cc.
void setDead | ( | int | moduleID, |
unsigned | channel | ||
) |
Sets a specific channel as dead.
moduleID | module ID (1-based) |
channel | hardware channel number (0-based) |
Definition at line 41 of file TOPCalChannelMask.cc.
|
private |
Sets envelope quantum efficiency.
Definition at line 87 of file TOPPmtQE.cc.
bool setGains | ( | const std::vector< float > & | gains, |
float | error = 0 |
||
) |
Set gains.
gains | vector of relative gains (size must be c_WindowSize) |
error | error on gains |
Definition at line 20 of file TOPASICGains.cc.
void setGamma | ( | int | moduleID, |
double | gamma, | ||
double | errGamma | ||
) |
Sets the angle gamma on a single module.
moduleID | module ID (1-based) |
gamma | rotation angle around z |
errGamma | error on gamma |
Definition at line 49 of file TOPCalModuleAlignment.cc.
void setNoisy | ( | int | moduleID, |
unsigned | channel | ||
) |
Sets a specific channel as noisy.
moduleID | module ID (1-based) |
channel | hardware channel number (0-based) |
Definition at line 51 of file TOPCalChannelMask.cc.
int setPedestals | ( | const TProfile * | profile, |
double | average = 0 |
||
) |
Set pedestals from profile histogram with c_WindowSize bins.
profile | profile histogram |
average | optional value to add |
Definition at line 23 of file TOPASICPedestals.cc.
void setPeelOffRegions | ( | double | thickness, |
const std::string & | material | ||
) |
Sets parameters of the peel-off cookie volumes.
thickness | volume thickness |
material | material name |
Definition at line 92 of file TOPGeoModule.cc.
void setStatus | ( | int | moduleID, |
unsigned | channel, | ||
EStatus | status | ||
) |
Sets the status for a single channel.
moduleID | module ID (1-based) |
channel | hardware channel number (0-based) |
status | channel status (0: active 1: dead 2: noisy ) |
Definition at line 21 of file TOPCalChannelMask.cc.
void setT0 | ( | int | moduleID, |
double | T0, | ||
double | errT0 | ||
) |
Sets calibration for a single module and switches status to calibrated.
moduleID | module ID (1-based) |
T0 | module T0 |
errT0 | error on T0 |
Definition at line 20 of file TOPCalModuleT0.cc.
void setT0 | ( | int | moduleID, |
unsigned | asic, | ||
double | T0 | ||
) |
Sets calibration for a single ASIC and switches status to calibrated.
moduleID | module ID (1-based) |
asic | ASIC number within a module (0 - 63) |
T0 | shift in time [ns] |
Definition at line 20 of file TOPCalAsicShift.cc.
void setT0 | ( | int | moduleID, |
unsigned | channel, | ||
double | T0, | ||
double | errT0 | ||
) |
Sets calibration for a single channel and switches status to calibrated.
moduleID | module ID (1-based) |
channel | hardware channel number (0-based) |
T0 | channel T0 |
errT0 | error on T0 |
Definition at line 20 of file TOPCalChannelT0.cc.
void setTimeAxis | ( | const std::vector< double > & | sampleTimes, |
double | syncTimeBase | ||
) |
Sets time axis from calibration data and switches status to calibrated.
sampleTimes | vector of 256 elements of sample times |
syncTimeBase | sinchronization time base (width of 2 ASIC windows) |
Definition at line 33 of file TOPSampleTimes.cc.
void setTimeAxis | ( | double | syncTimeBase | ) |
Sets equidistant time axis (uncalibrated).
syncTimeBase | sinchronization time base (width of 2 ASIC windows) |
Definition at line 23 of file TOPSampleTimes.cc.
|
private |
Sets transformation cache.
Definition at line 64 of file TOPGeoModule.cc.
|
private |
Sets the transformation cache.
Definition at line 282 of file TOPCalModuleAlignment.cc.
void setUnusable | ( | int | moduleID | ) |
Switches calibration status to unusable to flag badly calibrated constant.
moduleID | module ID (1-based) |
Definition at line 108 of file TOPCalModuleAlignment.cc.
void setUnusable | ( | int | moduleID | ) |
Switches calibration status to unusable to flag badly calibrated constant.
moduleID | module ID (1-based) |
Definition at line 33 of file TOPCalModuleT0.cc.
void setUnusable | ( | int | moduleID, |
unsigned | asic | ||
) |
Switches calibration status to unusable to flag badly calibrated constant.
moduleID | module ID (1-based) |
asic | ASIC number within a module (0 - 63) |
Definition at line 36 of file TOPCalAsicShift.cc.
void setUnusable | ( | int | moduleID, |
unsigned | channel | ||
) |
Switches calibration status to unusable to flag badly calibrated constant.
moduleID | module ID (1-based) |
channel | hardware channel number (0-based) |
Definition at line 37 of file TOPCalChannelT0.cc.
void setWindowShifts | ( | std::vector< int > | shifts | ) |
Sets window shifts.
shifts | vector of size = 6 with window shifts according to revo9count |
Definition at line 20 of file TOPFrontEndSetting.cc.
void setX | ( | int | moduleID, |
double | x, | ||
double | errX | ||
) |
Sets the displacement x on a single module.
moduleID | module ID (1-based) |
x | displacement along the x axis |
errX | error on the displacement |
Definition at line 61 of file TOPCalModuleAlignment.cc.
void setY | ( | int | moduleID, |
double | y, | ||
double | errY | ||
) |
Sets the displacement y on a single module.
moduleID | module ID (1-based) |
y | displacement along the y axis |
errY | error on the displacement |
Definition at line 73 of file TOPCalModuleAlignment.cc.
void setZ | ( | int | moduleID, |
double | z, | ||
double | errZ | ||
) |
Sets the displacement z on a single module.
moduleID | module ID (1-based) |
z | displacement along the z axis |
errZ | error on the displacement |
Definition at line 85 of file TOPCalModuleAlignment.cc.
void suppressAverage | ( | ) |
Subtracts arithmetic average of a module from constants whose status is not c_Default.
Arithmetic average is calculated from those whose status is c_Calibrated.
Definition at line 52 of file TOPCalChannelT0.cc.
void suppressAverage | ( | ) |
Subtracts arithmetic average from constants whose status is not c_Default.
Arithmetic average is calculated from those whose status is c_Calibrated.
Definition at line 44 of file TOPCalModuleT0.cc.
TOPGeoModule | ( | const TOPGeoModule & | module | ) |
Copy constructor.
Definition at line 26 of file TOPGeoModule.cc.
TOPNominalTDC | ( | int | numWindows, |
int | subBits, | ||
double | syncTimeBase, | ||
int | numofBunches, | ||
double | offset, | ||
double | pileupTime, | ||
double | doubleHitResolution, | ||
double | timeJitter, | ||
double | efficiency, | ||
const std::string & | name = "TOPNominalTDC" |
||
) |
Useful constructor (new xml file version)
numWindows | number of ASIC windows per waveform |
subBits | number of bits per sample |
syncTimeBase | synchonization time base (time width of c_syncWindows) |
numofBunches | number of bunches per syncTimeBase |
offset | time offset |
pileupTime | pile-up time |
doubleHitResolution | double hit resolution time |
timeJitter | r.m.s. of time jitter |
efficiency | electronic efficiency (fraction of hits above threshold) |
name | object name |
Definition at line 22 of file TOPNominalTDC.cc.
TOPSignalShape | ( | std::vector< double > | shape, |
double | timeBin, | ||
double | tau, | ||
double | pole1, | ||
double | pole2 | ||
) |
Full constructor.
shape | waveform values (unnormalized) of positive pulse |
timeBin | time difference between two samples [ns] |
tau | time constant of the exponential tail used for extrapolation [ns] |
pole1 | noise bandwidth: first pole [GHz] |
pole2 | noise bandwidth: second pole [GHz] |
Definition at line 21 of file TOPSignalShape.cc.
|
private |
Unfold prism exit window.
Definition at line 129 of file TOPGeoPrism.cc.
UnfoldedWindow | ( | const ROOT::Math::XYVector & | orig, |
const ROOT::Math::XYVector & | dir, | ||
const ROOT::Math::XYVector & | norm, | ||
const ROOT::Math::XYVector & | slanted | ||
) |
constructor
orig | window origin |
dir | window surface direction (= upper surface normal) |
norm | window surface normal (pointing out of prism) |
slanted | slanted surface normal |
Definition at line 25 of file TOPGeoPrism.cc.
~TOPGeoModule | ( | ) |
|
staticprotected |
conversion unit for length
Definition at line 86 of file TOPGeoBase.h.
|
staticprotected |
conversion unit name
Definition at line 87 of file TOPGeoBase.h.