Belle II Software  release-05-02-19
Collaboration diagram for top:

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  TOPCalIntegratedCharge
 Class to store integrated charge per channel. More...
 
class  TOPCalModuleAlignment
 Alignment constants constants for all 16 modules. More...
 
class  TOPCalModuleT0
 Module T0 calibration constants for all 16 modules. 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, const TOPSampleTimes * >::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) More...
 
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. More...
 
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*") More...
 
void importAsicShifts_BS13d (double s0, double s1, double s2, double s3, int expNo, int firstRun, int lastRun)
 Import ASIC shifts of BS13d. More...
 
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). More...
 
void importCommonT0 (double value, double error, int expNo, int firstRun, int lastRun, bool roughlyCalibrated=false)
 Import common T0 calibration constants. More...
 
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. More...
 
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") More...
 
void getSampleTimeCalibrationInfo ()
 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). More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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!) More...
 
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. More...
 
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. More...
 
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. More...
 
void exportPmtTTSHisto (std::string outFileName="RetrievedHistos.root")
 Example of exporting TTS histograms. More...
 
void importFrontEndSettings (int lookback, int readoutWin, int extraWin, int offset, int expNo, int firstRun, int lastRun)
 Import front-end settings. More...
 
void importDummyCalModuleAlignment (int firstExp=0, int firstRun=0, int lastExp=-1, int lastRun=-1)
 import a dummy payload of TOPCalModuleAlignment DB objects More...
 
void importDummyCalModuleT0 (int firstExp=0, int firstRun=0, int lastExp=-1, int lastRun=-1)
 import a dummy payload of TOPCalCalModuleT0 DB objects More...
 
void importDummyCalChannelT0 (int firstExp=0, int firstRun=0, int lastExp=-1, int lastRun=-1)
 import a dummy payload of TOPCalChannelT0 DB objects More...
 
void importDummyCalTimebase (int firstExp=0, int firstRun=0, int lastExp=-1, int lastRun=-1)
 import a dummy payload of TOPCalTimebase DB objects More...
 
void importDummyCalChannelNoise (int firstExp=0, int firstRun=0, int lastExp=-1, int lastRun=-1)
 import a dummy payload of TOPCalChannelNoise DB objects More...
 
void importDummyCalChannelPulseHeight (int firstExp=0, int firstRun=0, int lastExp=-1, int lastRun=-1)
 import a dummy payload of TOPCalChannelPulseHeight DB objects More...
 
void importDummyCalChannelRQE (int firstExp=0, int firstRun=0, int lastExp=-1, int lastRun=-1)
 import a dummy payload of TOPCalChannelRQE DB objects More...
 
void importDummyCalChannelThresholdEff (int firstExp=0, int firstRun=0, int lastExp=-1, int lastRun=-1)
 import a dummy payload of TOPCalChannelThresholdEff DB objects More...
 
void importDummyCalChannelThreshold (int firstExp=0, int firstRun=0, int lastExp=-1, int lastRun=-1)
 import a dummy payload of TOPCalChannelThreshold DB objects More...
 
void importDummyCalCommonT0 (int firstExp=0, int firstRun=0, int lastExp=-1, int lastRun=-1)
 import a dummy payload of TOPCalCommonT0 DB objects More...
 
void importDummyCalIntegratedCharge (int firstExp=0, int firstRun=0, int lastExp=-1, int lastRun=-1)
 import a dummy payload of TOPCalIntegratedCharge DB objects More...
 
void importDummyCalAsicShift (int firstExp=0, int firstRun=0, int lastExp=-1, int lastRun=-1)
 import a dummy payload of TOPCalAsicShift DB objects More...
 
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 More...
 
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. More...
 
int setPedestals (const TProfile *profile, double average=0)
 Set pedestals from profile histogram with c_WindowSize bins. More...
 
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. More...
 
void setT0 (int moduleID, unsigned asic, double T0)
 Sets calibration for a single ASIC and switches status to calibrated. More...
 
void setUnusable (int moduleID, unsigned asic)
 Switches calibration status to unusable to flag badly calibrated constant. More...
 
double getT0 (int moduleID, unsigned asic) const
 Returns T0 of a single asic. More...
 
bool isCalibrated (int moduleID, unsigned asic) const
 Returns calibration status. More...
 
bool isDefault (int moduleID, unsigned asic) const
 Returns calibration status. More...
 
bool isUnusable (int moduleID, unsigned asic) const
 Returns calibration status. More...
 
void setStatus (int moduleID, unsigned channel, EStatus status)
 Sets the status for a single channel. More...
 
void setActive (int moduleID, unsigned channel)
 Sets a specific channel as active. More...
 
void setDead (int moduleID, unsigned channel)
 Sets a specific channel as dead. More...
 
void setNoisy (int moduleID, unsigned channel)
 Sets a specific channel as noisy. More...
 
EStatus getStatus (int moduleID, unsigned channel) const
 Returns the status of a single channel. More...
 
bool isActive (int moduleID, unsigned channel) const
 Returns false if the channel is dead or noisy, and true is the channel is active. More...
 
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. More...
 
int getNumOf (EStatus check, int moduleID) const
 Counts and returns the number of channels od a module having a given status. More...
 
void setT0 (int moduleID, unsigned channel, double T0, double errT0)
 Sets calibration for a single channel and switches status to calibrated. More...
 
void setUnusable (int moduleID, unsigned channel)
 Switches calibration status to unusable to flag badly calibrated constant. More...
 
void suppressAverage ()
 Subtracts arithmetic average of a module from constants whose status is not c_Default. More...
 
double getT0 (int moduleID, unsigned channel) const
 Returns T0 of a single channel. More...
 
double getT0Error (int moduleID, unsigned channel) const
 Returns error on T0 of a single channel. More...
 
bool isCalibrated (int moduleID, unsigned channel) const
 Returns calibration status. More...
 
bool isDefault (int moduleID, unsigned channel) const
 Returns calibration status. More...
 
bool isUnusable (int moduleID, unsigned channel) const
 Returns calibration status. More...
 
void setAlpha (int moduleID, double alpha, double errAlpha)
 Sets the angle alpha on a single module. More...
 
void setBeta (int moduleID, double beta, double errBeta)
 Sets the angle beta on a single module. More...
 
void setGamma (int moduleID, double gamma, double errGamma)
 Sets the angle gamma on a single module. More...
 
void setX (int moduleID, double x, double errX)
 Sets the displacement x on a single module. More...
 
void setY (int moduleID, double y, double errY)
 Sets the displacement y on a single module. More...
 
void setZ (int moduleID, double z, double errZ)
 Sets the displacement z on a single module. More...
 
void setCalibrated (int moduleID)
 Switches calibration status to calibrated. More...
 
void setUnusable (int moduleID)
 Switches calibration status to unusable to flag badly calibrated constant. More...
 
double getAlpha (int moduleID) const
 Gets the angle alpha on a single module. More...
 
double getBeta (int moduleID) const
 Gets the angle beta on a single module. More...
 
double getGamma (int moduleID) const
 Gets the angle gamma on a single module. More...
 
double getX (int moduleID) const
 Returns the shift x on a single module. More...
 
double getY (int moduleID) const
 Returns the shift y on a single module. More...
 
double getZ (int moduleID) const
 Returns the shift z on a single module. More...
 
double getAlphaErr (int moduleID) const
 Returns the error on alpha on a single module. More...
 
double getBetaErr (int moduleID) const
 Returns the error on beta on a single module. More...
 
double getGammaErr (int moduleID) const
 Returns the error on gamma on a single module. More...
 
double getXErr (int moduleID) const
 Returns the error on x on a single module. More...
 
double getYErr (int moduleID) const
 Returns the error on y on a single module. More...
 
double getZErr (int moduleID) const
 Returns the error on z on a single module. More...
 
bool isCalibrated (int moduleID) const
 Returns calibration status. More...
 
bool isDefault (int moduleID) const
 Returns calibration status. More...
 
bool isUnusable (int moduleID) const
 Returns calibration status. More...
 
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. More...
 
void setT0 (int moduleID, double T0, double errT0)
 Sets calibration for a single module and switches status to calibrated. More...
 
void setUnusable (int moduleID)
 Switches calibration status to unusable to flag badly calibrated constant. More...
 
void suppressAverage ()
 Subtracts arithmetic average from constants whose status is not c_Default. More...
 
double getT0 (int moduleID) const
 Returns T0 of a module. More...
 
double getT0Error (int moduleID) const
 Returns error on T0 of a module. More...
 
bool isCalibrated (int moduleID) const
 Returns calibration status. More...
 
bool isDefault (int moduleID) const
 Returns calibration status. More...
 
bool isUnusable (int moduleID) const
 Returns calibration status. More...
 
void append (unsigned scrodID, unsigned channel, const std::vector< double > &sampleTimes, bool replace=true)
 Appends calibration of a single ASIC channel. More...
 
const TOPSampleTimesgetSampleTimes (unsigned scrodID, unsigned channel) const
 Returns calibration constants for given SCROD and channel. More...
 
bool isAvailable (unsigned scrodID, unsigned channel) const
 Checks if calibration is available. More...
 
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. More...
 
double getTimeWalk (int pulseHeight) const
 Returns time-walk at given pulse height. More...
 
double getSigmaSq (int pulseHeight) const
 Returns an excess of electronic time resolution at given pulse height. More...
 
double getSigma (int pulseHeight) const
 Returns an excess of electronic time resolution at given pulse height. More...
 
void setWindowShifts (std::vector< int > shifts)
 Sets window shifts. More...
 
virtual bool isConsistent () const override
 Check for consistency of data members. More...
 
virtual void print (const std::string &title="Bar segment geometry parameters") const override
 Print the content of the class. More...
 
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. More...
 
virtual void print (const std::string &title) const
 Print the content of the class. More...
 
void printUnderlined (const std::string &title) const
 Print the content of the class. More...
 
virtual void printSurface (const GeoOpticalSurface &surface) const
 Print the content of optical surface. More...
 
double getReflectivity (const GeoOpticalSurface &surface, double energy) const
 Returns reflectivity of optical surface at given photon energy. More...
 
bool isConsistent () const override
 Check for consistency of data members. More...
 
virtual void print (const std::string &title="QBB cold plate geometry parameters") const override
 Print the content of the class. More...
 
bool isConsistent () const override
 Check for consistency of data members. More...
 
virtual void print (const std::string &title="QBB forward end plate geometry parameters") const override
 Print the content of the class. More...
 
bool isConsistent () const override
 Check for consistency of data members. More...
 
virtual void print (const std::string &title="Front-end geometry parameters") const override
 Print the content of the class. More...
 
void appendContour (std::vector< std::pair< double, double > > &contour, double y0, bool fromLeftToRight) const
 Appends curved surface to contour. More...
 
bool isConsistent () const override
 Check for consistency of data members. More...
 
virtual void print (const std::string &title="QBB honeycomb panel geometry parameters") const override
 Print the content of the class. More...
 
void appendModule (const TOPGeoModule &module)
 Appends module (if its ID differs from already appended modules) More...
 
bool isModuleIDValid (int moduleID) const
 Checks if module exists in m_modules. More...
 
const TOPGeoModulegetModule (int moduleID) const
 Returns module. More...
 
const TOPNominalTTSgetTTS (unsigned type) const
 Returns time transition spread of a given PMT type. More...
 
double getPDETuningFactor (unsigned type) const
 Returns photon detection efficiency tuning factor of a given PMT type. More...
 
double getInnerRadius () const
 Returns inner radius of the volume devoted to TOP counter. More...
 
double getOuterRadius () const
 Returns outer radius of the volume devoted to TOP counter. More...
 
double getRadius () const
 Returns average radius of modules. More...
 
double getBackwardZ () const
 Returns backward z of the volume devoted to TOP counter. More...
 
double getForwardZ () const
 Returns forward z of the volume devoted to TOP counter. More...
 
bool isConsistent () const override
 Check for consistency of data members. More...
 
void print (const std::string &title="TOP geometry parameters") const override
 Print the content of the class. More...
 
double getZc () const
 Returns spherical mirror center of curvature in z (in local frame of this segment) More...
 
bool isConsistent () const override
 Check for consistency of data members. More...
 
void print (const std::string &title="Mirror segment geometry parameters") const override
 Print the content of the class. More...
 
void setBrokenGlue (int glueID, double fraction, double angle, const std::string &material)
 Sets glue to be broken (delaminated) More...
 
void setPeelOffRegions (double thickness, const std::string &material)
 Sets parameters of the peel-off cookie volumes. More...
 
TVector3 pointToGlobal (const TVector3 &point) const
 Transforms 3D point from module internal frame to Belle II frame. More...
 
TVector3 momentumToGlobal (const TVector3 &momentum) const
 Transforms momentum vector from module internal frame to Belle II frame. More...
 
TVector3 pointToLocal (const TVector3 &point) const
 Transforms 3D point from Belle II to module internal frame. More...
 
TVector3 momentumToLocal (const TVector3 &momentum) const
 Transforms momentum vector from Belle II to module internal frame. More...
 
void setTransformation () const
 Sets transformation cache.
 
bool isConsistent () const override
 Check for consistency of data members. More...
 
void print (const std::string &title="Module geometry parameters") const override
 Print the content of the class. More...
 
void print (const std::string &title="Module displacement parameters") const override
 Print the content of the class. More...
 
unsigned getPixelColumn (double x) const
 Converts x-coordinate to pixel column (1-based) More...
 
unsigned getPixelRow (double y) const
 Converts y-coordinate to pixel row (1-based) More...
 
unsigned getPixelID (double x, double y) const
 Converts x and y coordinates to PMT pixel ID (1-based) More...
 
bool isConsistent () const override
 Check for consistency of data members. More...
 
void print (const std::string &title="MCP-PMT geometry parameters") const override
 Print the content of the class. More...
 
unsigned getPmtID (unsigned row, unsigned col) const
 Converts row and column numbers to PMT ID (1-based) More...
 
unsigned getRow (unsigned pmtID) const
 Converts PMT ID to row number (1-based) More...
 
unsigned getColumn (unsigned pmtID) const
 Converts PMT ID to column number (1-based) More...
 
int getPixelID (double x, double y, unsigned pmtID) const
 Converts (digitizes) x, y and PMT ID to pixel ID (1-based) More...
 
int getPixelID (unsigned pmtID, unsigned pmtPixelID) const
 Returns pixel ID (1-based) More...
 
void generateDecoupledPMTs (double fraction)
 Generate randomly a fraction of PMT's to be optically decoupled. More...
 
bool isPMTDecoupled (unsigned pmtID) const
 Checks if PMT is optically decoupled. More...
 
bool isConsistent () const override
 Check for consistency of data members. More...
 
void print (const std::string &title="PMT array geometry parameters") const override
 Print the content of the class. More...
 
void print (const std::string &title="PMT array displacement parameters") const override
 Print the content of the class. More...
 
bool isConsistent () const override
 Check for consistency of data members. More...
 
void print (const std::string &title="Prism geometry parameters") const override
 Print the content of the class. More...
 
void appendPeelOffRegion (unsigned ID, double fraction, double angle)
 Appends peel-off cookie region. More...
 
std::vector< std::pair< double, double > > getPeelOffContour (const PeelOffRegion &region) const
 Returns the x-y contour of the peel-off region. More...
 
bool isConsistent () const override
 Check for consistency of data members. More...
 
virtual void print (const std::string &title="QBB prism enclosure geometry parameters") const override
 Print the content of the class. More...
 
std::vector< std::pair< double, double > > getForwardContour () const
 Returns forward x-y contour. More...
 
void printForwardContour () const
 Print forward contour (polygon) - for debugging.
 
std::vector< std::pair< double, double > > getInnerPanelContour () const
 Returns inner honeycomb panel x-y contour. More...
 
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. More...
 
void printOuterPanelContour () const
 Print outer honeycomb panel contour (polygon) - for debugging.
 
std::vector< std::pair< double, double > > getBackwardContour () const
 Returns backward x-y contour. More...
 
void printBackwardContour () const
 Print backward contour (polygon) - for debugging.
 
std::vector< std::pair< double, double > > getPrismEnclosureContour () const
 Returns prism enclosure wall x-y contour. More...
 
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. More...
 
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. More...
 
void printFrontPlateContour () const
 Print prism enclosure front plate contour (polygon) - for debugging.
 
bool isConsistent () const override
 Check for consistency of data members. More...
 
virtual void print (const std::string &title="QBB geometry parameters") const override
 Print the content of the class. More...
 
bool isConsistent () const override
 Check for consistency of data members. More...
 
virtual void print (const std::string &title="QBB side rails geometry parameters") const override
 Print the content of the class. More...
 
double getQE (double lambda) const
 Returns quantum efficiency at given photon wavelength using linear interpolation. More...
 
bool isConsistent () const override
 Check for consistency of data members. More...
 
void print (const std::string &title="Nominal quantum efficiency") const override
 Print the content of the class. More...
 
 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) More...
 
int getTDCcount (double time) const
 Converts time to TDC count. More...
 
int getSample (double time) const
 Converts time to sample number. More...
 
bool isSampleValid (int sample) const
 Check for the validity of sample number. More...
 
bool isConsistent () const override
 Check for consistency of data members. More...
 
void print (const std::string &title="Nominal time-to-digit conversion parameters") const override
 Print the content of the class. More...
 
void appendGaussian (double norm, double mean, double sigma)
 Append Gaussian. More...
 
double normalize ()
 Normalize the distribution (fractions) More...
 
double generateTTS () const
 Generate time according to TTS distribution. More...
 
bool isConsistent () const override
 Check for consistency of data members. More...
 
void print (const std::string &title="Nominal TTS distribution") const override
 Print the content of the class. More...
 
void print () const
 Print the class content.
 
const std::vector< float > & getQE (unsigned pmtPixel) const
 Returns quantum efficiency data points for a given pixel. More...
 
double getQE (unsigned pmtPixel, double lambda) const
 Returns quantum efficiency for a given pixel and wavelength, using linear interpolation. More...
 
const std::vector< float > & getEnvelopeQE () const
 Returns envelope quantum efficiency data points (maximum over pixels) More...
 
double getEnvelopeQE (double lambda) const
 Returns envelope quantum efficiency for a given wavelength (maximum over pixels), using linear interpolation. More...
 
double getEfficiency (unsigned pmtPixel, double lambda, bool BfieldOn) const
 Returns quantum times collection efficiency for a given pixel and wavelength, using linear interpolation. More...
 
double getCE (bool BfieldOn) const
 Returns collection efficiency. More...
 
double getLambdaLast () const
 Returns wavelenght of the last data point (maximal of pixels) More...
 
double getLambdaLast (unsigned pmtPixel) const
 Returns wavelenght of the last data point for a given pixel. More...
 
void setEnvelopeQE () const
 Sets envelope quantum efficiency.
 
double interpolate (double lambda, const std::vector< float > &QE) const
 Interpolate between QE datapoints (linear interpolation). More...
 
void setTimeAxis (double syncTimeBase)
 Sets equidistant time axis (uncalibrated). More...
 
void setTimeAxis (const std::vector< double > &sampleTimes, double syncTimeBase)
 Sets time axis from calibration data and switches status to calibrated. More...
 
std::vector< double > getTimeAxis () const
 Returns time axis (sample times) More...
 
double getFullTime (int window, double sample) const
 Returns time with respect to sample 0 of window 0. More...
 
double getSample (int window, double time) const
 Returns sample with respect to sample 0 of the specified ASIC window (inverse of getTime). More...
 
double getTimeBin (int window, int sampleNumber) const
 Returns time bin of a given sample number and window (e.g. More...
 
 TOPSignalShape (std::vector< double > shape, double timeBin, double tau, double pole1, double pole2)
 Full constructor. More...
 
double getValue (double t) const
 Returns value at time t of the normalized waveform using interpolator. More...
 
float getBulkTransmittance (double lambda) const
 Returns bulk transmittance at given wavelength using linear interpolation. More...
 
bool isConsistent () const override
 Check for consistency of data members. More...
 
void print (const std::string &title="Wavelength filter bulk transmittance") const override
 Print the content of the class. More...
 

Variables

static double s_unit = Unit::cm
 conversion unit for length
 
static std::string s_unitName
 conversion unit name
 

Detailed Description

Function Documentation

◆ append()

void append ( unsigned  scrodID,
unsigned  channel,
const std::vector< double > &  sampleTimes,
bool  replace = true 
)

Appends calibration of a single ASIC channel.

Parameters
scrodIDSCROD ID
channelchannel number within SCROD (0 - 127)
sampleTimesvector of 256 elements (at least) defining time axis
replacereplace or not if constants for this scrod/channel are already in

Definition at line 28 of file TOPCalTimebase.cc.

31  {
32  unsigned key = (scrodID << 16) + (channel % 128);
33  Iterator it = m_map.find(key);
34  if (it == m_map.end()) { // constants not appended yet
35  m_sampleTimes.push_back(TOPSampleTimes(scrodID, channel, m_syncTimeBase));
36  m_sampleTimes.back().setTimeAxis(sampleTimes, m_syncTimeBase);
37  m_map[key] = &m_sampleTimes.back();
38  } else { // constants already there
39  if (replace) {
40  const_cast<TOPSampleTimes*>(it->second)->setTimeAxis(sampleTimes, m_syncTimeBase);
41  B2WARNING("TOPCalTimebase: constants replaced."
42  << LogVar("scrodID", scrodID)
43  << LogVar("channel", channel));
44  } else {
45  B2WARNING("TOPCalTimebase: old constants kept."
46  << LogVar("scrodID", scrodID)
47  << LogVar("channel", channel));
48  }
49  }
50 
51  }

◆ appendContour()

void appendContour ( std::vector< std::pair< double, double > > &  contour,
double  y0,
bool  fromLeftToRight 
) const

Appends curved surface to contour.

Parameters
contour2D contour
y0offset in y0
fromLeftToRightif true, going from left to right otherwise oposite

Definition at line 23 of file TOPGeoHoneycombPanel.cc.

26  {
27  if (m_N <= 0) return;
28 
29  typedef std::pair<double, double> Pair;
30 
31  double R = getRadius();
32  double yc = getMaxThickness() - getMinThickness() - R;
33  double x0 = sqrt(R * R - yc * yc);
34  if (!fromLeftToRight) x0 = -x0;
35  double dx = 2.0 * x0 / m_N;
36  double x = -x0;
37  contour.push_back(Pair(x, y0));
38  for (int i = 1; i < m_N; i++) {
39  x += dx;
40  double y = y0 + sqrt(R * R - x * x) + yc;
41  contour.push_back(Pair(x, y));
42  }
43  contour.push_back(Pair(x0, y0));
44 
45  }

◆ appendGaussian()

void appendGaussian ( double  norm,
double  mean,
double  sigma 
)

Append Gaussian.

Parameters
normnormalization (area)
meanmean value [ns]
sigmasigma (width) [ns]

Definition at line 24 of file TOPNominalTTS.cc.

25  {
26  if (norm <= 0) {
27  B2ERROR("TOPNominalTTS::appendGaussian: normalization is non-positive number");
28  return;
29  }
30  Gauss gauss;
31  gauss.fraction = norm;
32  gauss.position = mean;
33  gauss.sigma = sigma;
34  m_tts.push_back(gauss);
35  m_normalized = false;
36  }

◆ appendModule()

void appendModule ( const TOPGeoModule module)

Appends module (if its ID differs from already appended modules)

Parameters
modulemodule geometry parameters

Definition at line 24 of file TOPGeometry.cc.

25  {
26  if (isModuleIDValid(module.getModuleID())) {
27  B2ERROR("TOPGeometry::appendModule: module already appended."
28  << LogVar("ID", module.getModuleID()));
29  return;
30  }
31  m_modules.push_back(module);
32  }

◆ appendPeelOffRegion()

void appendPeelOffRegion ( unsigned  ID,
double  fraction,
double  angle 
)

Appends peel-off cookie region.

Parameters
IDregion ID (1-based)
fractionfraction of the area
angleangle of the area

Definition at line 83 of file TOPGeoPrism.cc.

84  {
85  for (const auto& region : m_peelOffRegions) {
86  if (region.ID == ID) {
87  B2ERROR("TOPGeoPrism::appendPeelOffRegion: region already appended."
88  << LogVar("region ID", ID));
89  return;
90  }
91  }
92  PeelOffRegion region;
93  region.ID = ID;
94  region.fraction = fraction;
95  region.angle = angle;
96  double halfSize = (getWidth() - getPeelOffSize()) / 2;
97  if (fabs(getPeelOffCenter(region)) > halfSize) {
98  B2ERROR("TOPGeoPrism::appendPeelOffRegion: region doesn't fit into prism."
99  << LogVar("region ID", ID));
100  return;
101  }
102  m_peelOffRegions.push_back(region);
103  }

◆ areAllPrecise()

bool areAllPrecise ( double  spatialPrecision,
double  angularPrecision 
) const

Returns true if calibration precision for all modules is within specified values.

Parameters
spatialPrecisionprecision for displacements
angularPrecisionprecision for rotations

Definition at line 257 of file TOPCalModuleAlignment.cc.

259  {
260  for (int i = 0; i < c_numModules; i++) {
261  if (m_errAlpha[i] > angularPrecision) return false;
262  if (m_errBeta[i] > angularPrecision) return false;
263  if (m_errGamma[i] > angularPrecision) return false;
264  if (m_errX[i] > spatialPrecision) return false;
265  if (m_errY[i] > spatialPrecision) return false;
266  if (m_errZ[i] > spatialPrecision) return false;
267  }
268  return true;
269  }

◆ constructContour()

void constructContour ( double  A,
double  B,
double  fraction,
double  angle,
std::vector< std::pair< double, double > > &  contour 
) const
protected

Construct a 2D contour.

Parameters
Adimension in x
Bdimension in y
fractionsurface fraction
angleangle
contourclock-wise polygon to return

Definition at line 72 of file TOPGeoBarSegment.cc.

74  {
75  if (fraction <= 0) {
76  return;
77  }
78  if (fraction >= 1) {
79  contour.push_back(Pair(-A, B));
80  contour.push_back(Pair(A, B));
81  contour.push_back(Pair(A, -B));
82  contour.push_back(Pair(-A, -B));
83  return;
84  }
85 
86  double alpha0 = atan(B / A);
87  double halfPi = alpha0 > 0 ? M_PI / 2 : -M_PI / 2;
88  int quadrant = 0;
89  while (fabs(angle) > alpha0) {
90  angle -= halfPi;
91  alpha0 = M_PI / 2 - alpha0;
92  double a = A;
93  A = B;
94  B = a;
95  quadrant++;
96  }
97  quadrant = quadrant % 4;
98  if (halfPi < 0) quadrant = (4 - quadrant) % 4;
99 
100  double tanAngle = tan(fabs(angle));
101  double S0 = A / B * tanAngle / 2;
102  if (fraction <= S0) {
103  double x = sqrt(8 * A * B * fraction / tanAngle);
104  double y = x * tanAngle;
105  if (angle > 0) {
106  contour.push_back(Pair(-A, B - y));
107  contour.push_back(Pair(-A, B));
108  contour.push_back(Pair(-A + x, B));
109  } else {
110  contour.push_back(Pair(A, B - y));
111  contour.push_back(Pair(A - x, B));
112  contour.push_back(Pair(A, B));
113  }
114  } else if (1 - fraction <= S0) {
115  double x = sqrt(8 * A * B * (1 - fraction) / tanAngle);
116  double y = x * tanAngle;
117  if (angle > 0) {
118  contour.push_back(Pair(A, -B + y));
119  contour.push_back(Pair(A - x, -B));
120  contour.push_back(Pair(-A, -B));
121  contour.push_back(Pair(-A, B));
122  contour.push_back(Pair(A, B));
123  } else {
124  contour.push_back(Pair(-A + x, -B));
125  contour.push_back(Pair(-A, -B + y));
126  contour.push_back(Pair(-A, B));
127  contour.push_back(Pair(A, B));
128  contour.push_back(Pair(A, -B));
129  }
130  } else {
131  double y = (1 - 2 * fraction) * B;
132  double dy = angle > 0 ? A * tanAngle : -A * tanAngle;
133  contour.push_back(Pair(-A, y - dy));
134  contour.push_back(Pair(-A, B));
135  contour.push_back(Pair(A, B));
136  contour.push_back(Pair(A, y + dy));
137  }
138 
139  switch (quadrant) {
140  case 0:
141  break;
142  case 1:
143  for (auto& point : contour) {
144  double x = -point.second;
145  double y = point.first;
146  point.first = x;
147  point.second = y;
148  }
149  break;
150  case 2:
151  for (auto& point : contour) {
152  double x = -point.first;
153  double y = -point.second;
154  point.first = x;
155  point.second = y;
156  }
157  break;
158  case 3:
159  for (auto& point : contour) {
160  double x = point.second;
161  double y = -point.first;
162  point.first = x;
163  point.second = y;
164  }
165  break;
166  default:
167  B2ERROR("TOPGeoBarSegment::constructContour: bug!");
168  }
169 
170  }

◆ exportPmtTTSHisto()

void exportPmtTTSHisto ( std::string  outFileName = "RetrievedHistos.root")

Example of exporting TTS histograms.

Parameters
outFileNamename of the root file where data will be saved

Definition at line 1222 of file TOPDatabaseImporter.cc.

1223  {
1224 
1225  // this is just an example on how to retrieve TTS histograms
1226  DBArray<TOPPmtTTSHisto> elements("TOPPmtTTSHistos");
1227 
1228  TFile file(outFileName.c_str(), "recreate");
1229 
1230  // prints serialNum of PMTs and hv setting used, and saves TTS histograms to root file
1231  for (const auto& element : elements) {
1232 
1233  B2INFO("serialNum = " << element.getSerialNumber() << ", HV = " << element.getHV());
1234  for (int ic = 0; ic < element.getNumOfPixels(); ic++) {
1235  const auto* ttsHisto = element.getHistogram(ic + 1);
1236  if (ttsHisto) ttsHisto->Write();
1237  }
1238  }
1239 
1240  file.Close();
1241 
1242  return;
1243  }

◆ generateDecoupledPMTs()

void generateDecoupledPMTs ( double  fraction)

Generate randomly a fraction of PMT's to be optically decoupled.

Parameters
fractiondecoupled fraction

Definition at line 76 of file TOPGeoPMTArray.cc.

77  {
78  if (fraction <= 0) return;
79 
80  for (unsigned i = 0; i < getSize(); i++) {
81  if (gRandom->Rndm() < fraction) setDecoupledPMT(i + 1);
82  }
83 
84  }

◆ generateFakeChannelMask()

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.

Parameters
fractionDeadthe fraction of dead PMs to randomly assign
fractionHotthe fraction of noisy PMs to randomly assign
firstExpfirst experiment number of IOV
firstRunfirst run number of IOV
lastExpfirst experiment number of IOV
lastRunlast run number of IOV

Definition at line 676 of file TOPDatabaseImporter.cc.

◆ generateTTS()

double generateTTS ( ) const

Generate time according to TTS distribution.

Returns
time [ns]

Definition at line 48 of file TOPNominalTTS.cc.

◆ getAlpha()

double getAlpha ( int  moduleID) const

Gets the angle alpha on a single module.

Parameters
moduleIDmodule ID (1-based)
Returns
alpha rotation angle around x

Definition at line 108 of file TOPCalModuleAlignment.cc.

◆ getAlphaErr()

double getAlphaErr ( int  moduleID) const

Returns the error on alpha on a single module.

Parameters
moduleIDmodule ID (1-based)
Returns
errAlpha error on the alpha angle

Definition at line 168 of file TOPCalModuleAlignment.cc.

◆ getBackPlateContour()

std::vector< std::pair< double, double > > getBackPlateContour ( ) const

Returns prism enclosure back plate x-y contour.

Returns
polygon

Definition at line 176 of file TOPGeoQBB.cc.

177  {
178  typedef std::pair<double, double> Pair;
179  std::vector<Pair> contour;
180 
181  double x1 = getWidth() / 2;
182  double x2 = x1 - m_prismEnclosure.getHeight() * tan(m_prismEnclosure.getAngle());
183  double y1 = m_outerPanel.getY() + m_outerPanel.getMinThickness();
184  double y2 = y1 - m_sideRails.getHeight();
185  double y3 = y2 - m_prismEnclosure.getHeight();
186  contour.push_back(Pair(-x1, y1));
187  contour.push_back(Pair(x1, y1));
188  contour.push_back(Pair(x1, y2));
189  contour.push_back(Pair(x2, y3));
190  contour.push_back(Pair(-x2, y3));
191  contour.push_back(Pair(-x1, y2));
192 
193  return contour;
194  }

◆ getBackwardContour()

std::vector< std::pair< double, double > > getBackwardContour ( ) const

Returns backward x-y contour.

Returns
polygon

Definition at line 108 of file TOPGeoQBB.cc.

◆ getBackwardZ()

double getBackwardZ ( ) const

Returns backward z of the volume devoted to TOP counter.

Returns
minimal z

Definition at line 104 of file TOPGeometry.cc.

◆ getBeta()

double getBeta ( int  moduleID) const

Gets the angle beta on a single module.

Parameters
moduleIDmodule ID (1-based)
Returns
beta rotation angle around y

Definition at line 118 of file TOPCalModuleAlignment.cc.

◆ getBetaErr()

double getBetaErr ( int  moduleID) const

Returns the error on beta on a single module.

Parameters
moduleIDmodule ID (1-based)
Returns
errBeta error on the beta angle

Definition at line 178 of file TOPCalModuleAlignment.cc.

◆ getBulkTransmittance()

float getBulkTransmittance ( double  lambda) const

Returns bulk transmittance at given wavelength using linear interpolation.

Parameters
lambdaphoton wavelength in [nm]
Returns
bulk transmittance

Definition at line 23 of file TOPWavelengthFilter.cc.

24  {
25  if (m_transmittances.empty()) return 1; // old payload from DB (filter included in QE)
26 
27  double dlam = lambda - m_lambdaFirst;
28  if (dlam < 0) return 0;
29  if (dlam > (m_transmittances.size() - 1) * m_lambdaStep) return m_transmittances.back();
30  unsigned i = int(dlam / m_lambdaStep);
31  if (i > m_transmittances.size() - 2) return m_transmittances.back();
32  return m_transmittances[i] + (m_transmittances[i + 1] - m_transmittances[i]) / m_lambdaStep * (dlam - i * m_lambdaStep);
33  }

◆ getCE()

double getCE ( bool  BfieldOn) const

Returns collection efficiency.

Parameters
BfieldOntrue for magnetic field being ON
Returns
collection efficiency

Definition at line 61 of file TOPPmtQE.cc.

62  {
63  if (BfieldOn) {
64  return m_CE_withB;
65  } else {
66  return m_CE_noB;
67  }
68  }

◆ getColumn()

unsigned getColumn ( unsigned  pmtID) const

Converts PMT ID to column number (1-based)

Parameters
pmtIDPMT ID (1-based)
Returns
column number or 0 for invalid PMT ID

Definition at line 36 of file TOPGeoPMTArray.cc.

◆ getEfficiency()

double getEfficiency ( unsigned  pmtPixel,
double  lambda,
bool  BfieldOn 
) const

Returns quantum times collection efficiency for a given pixel and wavelength, using linear interpolation.

Parameters
pmtPixelpmtPixel number (1-based)
lambdawavelength in [nm]
BfieldOntrue for magnetic field being ON
Returns
quantum efficiency

Definition at line 52 of file TOPPmtQE.cc.

◆ getEnvelopeQE() [1/2]

const std::vector< float > & getEnvelopeQE ( ) const

Returns envelope quantum efficiency data points (maximum over pixels)

Returns
envelope quantum efficiency data points

Definition at line 40 of file TOPPmtQE.cc.

◆ getEnvelopeQE() [2/2]

double getEnvelopeQE ( double  lambda) const

Returns envelope quantum efficiency for a given wavelength (maximum over pixels), using linear interpolation.

Parameters
lambdawavelength in [nm]
Returns
quantum efficiency

Definition at line 46 of file TOPPmtQE.cc.

◆ getForwardContour()

std::vector< std::pair< double, double > > getForwardContour ( ) const

Returns forward x-y contour.

Returns
polygon

Definition at line 23 of file TOPGeoQBB.cc.

◆ getForwardZ()

double getForwardZ ( ) const

Returns forward z of the volume devoted to TOP counter.

Returns
maximal z

Definition at line 116 of file TOPGeometry.cc.

◆ getFrontPlateContour()

std::vector< std::pair< double, double > > getFrontPlateContour ( ) const

Returns prism enclosure front plate x-y contour.

Returns
polygon

Definition at line 205 of file TOPGeoQBB.cc.

◆ getFullTime()

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

Parameters
windowASIC window number
samplesample counted from the first one in the specified ASIC window
Returns
time in [ns]

Definition at line 60 of file TOPSampleTimes.cc.

61  {
62 
63  int sampleNum = int(sample);
64  if (sample < 0) sampleNum--;
65  double frac = sample - sampleNum;
66 
67  sampleNum += window * c_WindowSize; // counted from window 0
68  int n = sampleNum / c_TimeAxisSize;
69  int k = sampleNum % c_TimeAxisSize;
70  if (k < 0) {
71  n--;
72  k += c_TimeAxisSize;
73  }
74 
75  double time = n * getTimeRange() + m_timeAxis[k]; // from sample 0 window 0
76  time += (m_timeAxis[k + 1] - m_timeAxis[k]) * frac; // add fraction
77 
78  return time;
79  }

◆ getGamma()

double getGamma ( int  moduleID) const

Gets the angle gamma on a single module.

Parameters
moduleIDmodule ID (1-based)
Returns
gamma rotation angle around z

Definition at line 128 of file TOPCalModuleAlignment.cc.

◆ getGammaErr()

double getGammaErr ( int  moduleID) const

Returns the error on gamma on a single module.

Parameters
moduleIDmodule ID (1-based)
Returns
errGamma error on the gamma angle

Definition at line 188 of file TOPCalModuleAlignment.cc.

◆ getInnerPanelContour()

std::vector< std::pair< double, double > > getInnerPanelContour ( ) const

Returns inner honeycomb panel x-y contour.

Returns
polygon

Definition at line 56 of file TOPGeoQBB.cc.

◆ getInnerRadius()

double getInnerRadius ( ) const

Returns inner radius of the volume devoted to TOP counter.

Returns
inner radius

Definition at line 66 of file TOPGeometry.cc.

◆ getLambdaLast() [1/2]

double getLambdaLast ( ) const

Returns wavelenght of the last data point (maximal of pixels)

Returns
wavelength in [nm]

Definition at line 70 of file TOPPmtQE.cc.

◆ getLambdaLast() [2/2]

double getLambdaLast ( unsigned  pmtPixel) const

Returns wavelenght of the last data point for a given pixel.

Parameters
pmtPixelpmtPixel number (1-based)
Returns
wavelength in [nm]

Definition at line 80 of file TOPPmtQE.cc.

◆ getModule()

const TOPGeoModule & getModule ( int  moduleID) const

Returns module.

Parameters
moduleIDvalid module ID (1-based)
Returns
module geometry parameters

Definition at line 44 of file TOPGeometry.cc.

◆ getNumOf() [1/2]

int getNumOf ( EStatus  check) const
private

Counts and returns the number of channels having a given status.

Parameters
checkstatus to be checked
Returns
number of channels of this status

Definition at line 101 of file TOPCalChannelMask.cc.

102  {
103  int n = 0;
104  for (const auto& statuses : m_status) {
105  for (const auto status : statuses) {
106  if (status == check) n++;
107  }
108  }
109  return n;
110  }

◆ getNumOf() [2/2]

int getNumOf ( EStatus  check,
int  moduleID 
) const
private

Counts and returns the number of channels od a module having a given status.

Parameters
checkstatus to be checked
moduleIDmodule (slot) ID (1-based)
Returns
number of channels of this status

Definition at line 112 of file TOPCalChannelMask.cc.

◆ getOptimizedOffset()

unsigned getOptimizedOffset ( const std::vector< unsigned > &  values,
const std::vector< unsigned > &  errors,
unsigned  maxDif,
unsigned  maxErr 
)
private

Return the offset that can allow for the maximal number of good pedestal samples.

Parameters
valuespedestal values
errorspedestal errors
maxDifmaximal number that can be stored in c_Bits
maxErrmaximal number that can be stored in 16 - c_Bits
Returns
offset value

Definition at line 67 of file TOPASICPedestals.cc.

71  {
72 
73  std::set<unsigned> sortedValues;
74  for (unsigned i = 0; i < values.size(); i++) {
75  if (errors[i] > maxErr) continue;
76  sortedValues.insert(values[i]);
77  }
78 
79  unsigned nprev = sortedValues.size();
80  unsigned nl = 0;
81  for (auto it = sortedValues.begin(); it != sortedValues.end(); ++it) {
82  unsigned nr = 0;
83  for (auto back = sortedValues.crbegin(); *back - *it > maxDif; ++back) {
84  nr++;
85  }
86  unsigned nbad = nl + nr;
87  if (nbad == 0) return *it;
88  if (nbad >= nprev) return *(--it);
89  nprev = nbad;
90  nl++;
91  }
92 
93  return *sortedValues.begin();
94 
95  }

◆ getOuterPanelContour()

std::vector< std::pair< double, double > > getOuterPanelContour ( ) const

Returns outer honeycomb panel x-y contour.

Returns
polygon

Definition at line 82 of file TOPGeoQBB.cc.

◆ getOuterRadius()

double getOuterRadius ( ) const

Returns outer radius of the volume devoted to TOP counter.

Returns
outer radius

Definition at line 79 of file TOPGeometry.cc.

◆ getPDETuningFactor()

double getPDETuningFactor ( unsigned  type) const

Returns photon detection efficiency tuning factor of a given PMT type.

Parameters
typePMT type
Returns
tuning factor

Definition at line 59 of file TOPGeometry.cc.

◆ getPeelOffContour()

std::vector< Pair > getPeelOffContour ( const PeelOffRegion region) const

Returns the x-y contour of the peel-off region.

Parameters
regionpeel-off region
Returns
clock-wise polygon

Definition at line 107 of file TOPGeoPrism.cc.

◆ getPixelColumn()

unsigned getPixelColumn ( double  x) const

Converts x-coordinate to pixel column (1-based)

Parameters
xcoordinate
Returns
pixel column or 0 if x outside sensitive area

Definition at line 23 of file TOPGeoPMT.cc.

24  {
25  if (fabs(x) >= m_sensSizeX / 2) return 0;
26  return m_numColumns - int((x + m_sensSizeX / 2) / m_sensSizeX * m_numColumns);
27  }

◆ getPixelID() [1/3]

unsigned getPixelID ( double  x,
double  y 
) const

Converts x and y coordinates to PMT pixel ID (1-based)

Parameters
xcoordinate
ycoordinate
Returns
pixel ID or 0 if x or y outside sensitive area

Definition at line 36 of file TOPGeoPMT.cc.

◆ getPixelID() [2/3]

int getPixelID ( double  x,
double  y,
unsigned  pmtID 
) const

Converts (digitizes) x, y and PMT ID to pixel ID (1-based)

Parameters
xcoordinate in PMT local frame
ycoordinate in PMT local frame
pmtIDPMT ID (1-based)
Returns
pixel ID or 0 if (x,y) outside sensitive area or pmtID invalid

Definition at line 42 of file TOPGeoPMTArray.cc.

◆ getPixelID() [3/3]

int getPixelID ( unsigned  pmtID,
unsigned  pmtPixelID 
) const

Returns pixel ID (1-based)

Parameters
pmtIDPMT ID (1-based)
pmtPixelIDPMT pixel ID (1-based)
Returns
pixel ID or 0 for invalid input ID's

Definition at line 60 of file TOPGeoPMTArray.cc.

◆ getPixelRow()

unsigned getPixelRow ( double  y) const

Converts y-coordinate to pixel row (1-based)

Parameters
ycoordinate
Returns
pixel row or 0 if y outside sensitive area

Definition at line 30 of file TOPGeoPMT.cc.

◆ getPmtID()

unsigned getPmtID ( unsigned  row,
unsigned  col 
) const

Converts row and column numbers to PMT ID (1-based)

Parameters
rowrow number (1-based)
colcolumn number (1-based)
Returns
PMT ID or 0 for invalid row or column

Definition at line 23 of file TOPGeoPMTArray.cc.

◆ getPrismEnclosureContour()

std::vector< std::pair< double, double > > getPrismEnclosureContour ( ) const

Returns prism enclosure wall x-y contour.

Returns
polygon

Definition at line 141 of file TOPGeoQBB.cc.

◆ getQE() [1/3]

double getQE ( double  lambda) const

Returns quantum efficiency at given photon wavelength using linear interpolation.

Parameters
lambdaphoton wavelength in [nm]
Returns
quantum efficiency

Definition at line 22 of file TOPNominalQE.cc.

23  {
24  double dlam = lambda - m_lambdaFirst;
25  if (dlam < 0 or dlam > (m_QE.size() - 1) * m_lambdaStep) return 0;
26  unsigned i = int(dlam / m_lambdaStep);
27  if (i > m_QE.size() - 2) return m_QE.back();
28  return m_QE[i] + (m_QE[i + 1] - m_QE[i]) / m_lambdaStep * (dlam - i * m_lambdaStep);
29  }

◆ getQE() [2/3]

const std::vector< float > & getQE ( unsigned  pmtPixel) const

Returns quantum efficiency data points for a given pixel.

Parameters
pmtPixelpmtPixel number (1-based)
Returns
quantum efficiency data points (empty vector for invalid pixel)

Definition at line 23 of file TOPPmtQE.cc.

◆ getQE() [3/3]

double getQE ( unsigned  pmtPixel,
double  lambda 
) const

Returns quantum efficiency for a given pixel and wavelength, using linear interpolation.

Parameters
pmtPixelpmtPixel number (1-based)
lambdawavelength in [nm]
Returns
quantum efficiency

Definition at line 33 of file TOPPmtQE.cc.

◆ getRadius()

double getRadius ( ) const

Returns average radius of modules.

Returns
radius

Definition at line 93 of file TOPGeometry.cc.

◆ getReflectivity()

double getReflectivity ( const GeoOpticalSurface surface,
double  energy 
) const

Returns reflectivity of optical surface at given photon energy.

Parameters
surfaceoptical surface parameters
energyphoton energy in [eV]

Definition at line 74 of file TOPGeoBase.cc.

75  {
76  energy *= Unit::eV;
77  if (surface.hasProperties()) {
78  for (const auto& property : surface.getProperties()) {
79  if (property.getName() == "REFLECTIVITY") {
80  auto energies = property.getEnergies();
81  auto values = property.getValues();
82  if (energies.size() < 2) return 0;
83  if (energy < energies[0] or energy > energies.back()) {
84  B2WARNING("TOPGeoBase::getReflectivity: photon energy out of range - return value not reliable");
85  }
86  auto spline = TSpline3("tmp", energies.data(), values.data(), energies.size());
87  return spline.Eval(energy);
88  }
89  }
90  }
91 
92  B2ERROR("Optical surface " << surface.getName() << " has no property REFLECTIVITY");
93  return 0;
94  }

◆ getRow()

unsigned getRow ( unsigned  pmtID) const

Converts PMT ID to row number (1-based)

Parameters
pmtIDPMT ID (1-based)
Returns
row number or 0 for invalid PMT ID

Definition at line 30 of file TOPGeoPMTArray.cc.

◆ getSample() [1/2]

int getSample ( double  time) const

Converts time to sample number.

Use isSampleValid(int) to check the validity of sample number

Parameters
time[ns]
Returns
sample number

Definition at line 69 of file TOPNominalTDC.cc.

70  {
71  time += m_offset;
72  if (time > 0) {
73  return int(time / m_sampleWidth);
74  } else {
75  return int(time / m_sampleWidth) - 1;
76  }
77  }

◆ getSample() [2/2]

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

Parameters
windowASIC window number
timetime with respect to SSTin of specified ASIC window
Returns
sample

Definition at line 82 of file TOPSampleTimes.cc.

◆ getSampleTimes()

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.

Parameters
scrodIDSCROD ID
channelchannel number (within SCROD or within module)
Returns
calibration constants (always valid pointer)

Definition at line 54 of file TOPCalTimebase.cc.

◆ getSigma()

double getSigma ( int  pulseHeight) const

Returns an excess of electronic time resolution at given pulse height.

Parameters
pulseHeightpulse height [ADC counts]
Returns
excess sigma [ns]

Definition at line 58 of file TOPCalTimeWalk.cc.

◆ getSigmaSq()

double getSigmaSq ( int  pulseHeight) const

Returns an excess of electronic time resolution at given pulse height.

Parameters
pulseHeightpulse height [ADC counts]
Returns
excess sigma squared [ns^2]

Definition at line 51 of file TOPCalTimeWalk.cc.

◆ getStatus()

TOPCalChannelMask::EStatus getStatus ( int  moduleID,
unsigned  channel 
) const

Returns the status of a single channel.

Parameters
moduleIDmodule ID (1-based)
channelhardware channel number (0-based)
Returns
status channel status (1: active 0: dead -1: noisy )

Definition at line 63 of file TOPCalChannelMask.cc.

◆ getT0() [1/3]

double getT0 ( int  moduleID) const

Returns T0 of a module.

Parameters
moduleIDmodule ID (1-based)
Returns
T0

Definition at line 65 of file TOPCalModuleT0.cc.

66  {
67  unsigned module = moduleID - 1;
68  if (module >= c_numModules) {
69  B2WARNING("Invalid module number, returning 0 (" << ClassName() << ")");
70  return 0;
71  }
72  return m_T0[module];
73  }

◆ getT0() [2/3]

double getT0 ( int  moduleID,
unsigned  asic 
) const

Returns T0 of a single asic.

Parameters
moduleIDmodule ID (1-based)
asicASIC number within a module (0 - 63)
Returns
T0

Definition at line 53 of file TOPCalAsicShift.cc.

54  {
55  unsigned module = moduleID - 1;
56  if (module >= c_numModules) {
57  B2WARNING("Invalid module number, returning 0 (" << ClassName() << ")");
58  return 0;
59  }
60  if (asic >= c_numAsics) {
61  B2WARNING("Invalid asic number, returning 0 (" << ClassName() << ")");
62  return 0;
63  }
64  return m_T0[module][asic];
65  }

◆ getT0() [3/3]

double getT0 ( int  moduleID,
unsigned  channel 
) const

Returns T0 of a single channel.

Parameters
moduleIDmodule ID (1-based)
channelhardware channel number (0-based)
Returns
T0

Definition at line 75 of file TOPCalChannelT0.cc.

76  {
77  unsigned module = moduleID - 1;
78  if (module >= c_numModules) {
79  B2WARNING("Invalid module number, returning 0 (" << ClassName() << ")");
80  return 0;
81  }
82  if (channel >= c_numChannels) {
83  B2WARNING("Invalid channel number, returning 0 (" << ClassName() << ")");
84  return 0;
85  }
86  return m_T0[module][channel];
87  }

◆ getT0Error() [1/2]

double getT0Error ( int  moduleID) const

Returns error on T0 of a module.

Parameters
moduleIDmodule ID (1-based)
Returns
error on T0

Definition at line 76 of file TOPCalModuleT0.cc.

◆ getT0Error() [2/2]

double getT0Error ( int  moduleID,
unsigned  channel 
) const

Returns error on T0 of a single channel.

Parameters
moduleIDmodule ID (1-based)
channelhardware channel number (0-based)
Returns
error on T0

Definition at line 90 of file TOPCalChannelT0.cc.

◆ getTDCcount()

int getTDCcount ( double  time) const

Converts time to TDC count.

For times being outside TDC range, TDC overflow value is returned.

Parameters
time[ns]
Returns
TDC count

Definition at line 60 of file TOPNominalTDC.cc.

◆ getTimeAxis()

std::vector< double > getTimeAxis ( ) const

Returns time axis (sample times)

Returns
vector of sample times

Definition at line 50 of file TOPSampleTimes.cc.

◆ getTimeBin()

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)

Parameters
windowASIC window number
sampleNumbersample number counted from begin of the specified ASIC window
Returns
time bin in [ns]

Definition at line 106 of file TOPSampleTimes.cc.

◆ getTimeWalk()

double getTimeWalk ( int  pulseHeight) const

Returns time-walk at given pulse height.

Parameters
pulseHeightpulse height [ADC counts]
Returns
time-walk [ns]

Definition at line 37 of file TOPCalTimeWalk.cc.

◆ getTTS()

const TOPNominalTTS & getTTS ( unsigned  type) const

Returns time transition spread of a given PMT type.

Parameters
typePMT type
Returns
TTS of a given PMT type if found, otherwise nominal TTS

Definition at line 52 of file TOPGeometry.cc.

◆ getValue()

double getValue ( double  t) const

Returns value at time t of the normalized waveform using interpolator.

Parameters
ttime [ns] (t = 0 is at 50% CF leading edge crossing)
Returns
normalized value (normalization: peaking value = 1)

Definition at line 77 of file TOPSignalShape.cc.

78  {
79  if (m_shape.empty()) {
80  B2ERROR("TOPSignalShape::getValue: object not initialized");
81  return 0;
82  }
83  if (t < m_tmin) return 0;
84  if (t > m_tmax) return m_shape.back() * exp(-(t - m_tmax) / m_tau);
85  if (!m_interpolator) {
86  std::vector<double> shape(m_shape); // since argument in TSpline5 is not const!
87  m_interpolator = new TSpline5("signalShape", m_tmin, m_tmax,
88  shape.data(), shape.size());
89  }
90  return m_interpolator->Eval(t);
91  }

◆ getX()

double getX ( int  moduleID) const

Returns the shift x on a single module.

Parameters
moduleIDmodule ID (1-based)
Returns
x shift along the x direction

Definition at line 138 of file TOPCalModuleAlignment.cc.

◆ getXErr()

double getXErr ( int  moduleID) const

Returns the error on x on a single module.

Parameters
moduleIDmodule ID (1-based)
Returns
errX error on the x shift

Definition at line 198 of file TOPCalModuleAlignment.cc.

◆ getY()

double getY ( int  moduleID) const

Returns the shift y on a single module.

Parameters
moduleIDmodule ID (1-based)
Returns
y shift along the y direction

Definition at line 148 of file TOPCalModuleAlignment.cc.

◆ getYErr()

double getYErr ( int  moduleID) const

Returns the error on y on a single module.

Parameters
moduleIDmodule ID (1-based)
Returns
errY error on the y shift

Definition at line 208 of file TOPCalModuleAlignment.cc.

◆ getZ()

double getZ ( int  moduleID) const

Returns the shift z on a single module.

Parameters
moduleIDmodule ID (1-based)
Returns
z shift along the z direction

Definition at line 158 of file TOPCalModuleAlignment.cc.

◆ getZc()

double getZc ( ) const

Returns spherical mirror center of curvature in z (in local frame of this segment)

Returns
center of curvature in z

Definition at line 23 of file TOPGeoMirrorSegment.cc.

24  {
25  double dx = fabs(getXc()) - getWidth() / 2;
26  double dy = fabs(getYc()) - getThickness() / 2;
27  double z = getOuterRadius();
28  if (dx > 0) z = sqrt(z * z - dx * dx);
29  if (dy > 0) z = sqrt(z * z - dy * dy);
30 
31  return getFullLength() / 2 - z;
32  }

◆ getZErr()

double getZErr ( int  moduleID) const

Returns the error on z on a single module.

Parameters
moduleIDmodule ID (1-based)
Returns
errZ error on the z shift

Definition at line 218 of file TOPCalModuleAlignment.cc.

◆ importAsicShifts_BS13d()

void importAsicShifts_BS13d ( double  s0,
double  s1,
double  s2,
double  s3,
int  expNo,
int  firstRun,
int  lastRun 
)

Import ASIC shifts of BS13d.

Parameters
s0shift of carrier 0 [ns]
s1shift of carrier 1 [ns]
s2shift of carrier 2 [ns]
s3shift of carrier 3 [ns]
expNoexperiment number of IOV
firstRunfirst run number of IOV
lastRunlast run number of IOV

Definition at line 346 of file TOPDatabaseImporter.cc.

◆ importChannelMask()

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).

Parameters
fileNameroot file name
expNoexperiment number of IOV
firstRunfirst run number of IOV
lastRunlast run number of IOV

Definition at line 624 of file TOPDatabaseImporter.cc.

◆ importChannelT0()

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*")

Parameters
fileNameroot file name
expNoexperiment number of IOV
firstRunfirst run number of IOV
lastRunlast run number of IOV

Definition at line 294 of file TOPDatabaseImporter.cc.

◆ importCommonT0()

void importCommonT0 ( double  value,
double  error,
int  expNo,
int  firstRun,
int  lastRun,
bool  roughlyCalibrated = false 
)

Import common T0 calibration constants.

Parameters
valuecentral value of T0
erroruncertainty on T0
expNoexperiment number of IOV
firstRunfirst run number of IOV
lastRunlast run number of IOV
roughlyCalibratedif true set payload status to roughly calibrated

Definition at line 450 of file TOPDatabaseImporter.cc.

◆ importDummyCalAsicShift()

void importDummyCalAsicShift ( int  firstExp = 0,
int  firstRun = 0,
int  lastExp = -1,
int  lastRun = -1 
)

import a dummy payload of TOPCalAsicShift DB objects

Parameters
firstExpfirst experiment number of IOV
firstRunfirst run number of IOV
lastExpfirst experiment number of IOV
lastRunlast run number of IOV

Definition at line 1398 of file TOPDatabaseImporter.cc.

◆ importDummyCalChannelNoise()

void importDummyCalChannelNoise ( int  firstExp = 0,
int  firstRun = 0,
int  lastExp = -1,
int  lastRun = -1 
)

import a dummy payload of TOPCalChannelNoise DB objects

Parameters
firstExpfirst experiment number of IOV
firstRunfirst run number of IOV
lastExpfirst experiment number of IOV
lastRunlast run number of IOV

Definition at line 1321 of file TOPDatabaseImporter.cc.

◆ importDummyCalChannelPulseHeight()

void importDummyCalChannelPulseHeight ( int  firstExp = 0,
int  firstRun = 0,
int  lastExp = -1,
int  lastRun = -1 
)

import a dummy payload of TOPCalChannelPulseHeight DB objects

Parameters
firstExpfirst experiment number of IOV
firstRunfirst run number of IOV
lastExpfirst experiment number of IOV
lastRunlast run number of IOV

Definition at line 1332 of file TOPDatabaseImporter.cc.

◆ importDummyCalChannelRQE()

void importDummyCalChannelRQE ( int  firstExp = 0,
int  firstRun = 0,
int  lastExp = -1,
int  lastRun = -1 
)

import a dummy payload of TOPCalChannelRQE DB objects

Parameters
firstExpfirst experiment number of IOV
firstRunfirst run number of IOV
lastExpfirst experiment number of IOV
lastRunlast run number of IOV

Definition at line 1343 of file TOPDatabaseImporter.cc.

◆ importDummyCalChannelT0()

void importDummyCalChannelT0 ( int  firstExp = 0,
int  firstRun = 0,
int  lastExp = -1,
int  lastRun = -1 
)

import a dummy payload of TOPCalChannelT0 DB objects

Parameters
firstExpfirst experiment number of IOV
firstRunfirst run number of IOV
lastExpfirst experiment number of IOV
lastRunlast run number of IOV

Definition at line 1299 of file TOPDatabaseImporter.cc.

◆ importDummyCalChannelThreshold()

void importDummyCalChannelThreshold ( int  firstExp = 0,
int  firstRun = 0,
int  lastExp = -1,
int  lastRun = -1 
)

import a dummy payload of TOPCalChannelThreshold DB objects

Parameters
firstExpfirst experiment number of IOV
firstRunfirst run number of IOV
lastExpfirst experiment number of IOV
lastRunlast run number of IOV

Definition at line 1365 of file TOPDatabaseImporter.cc.

◆ importDummyCalChannelThresholdEff()

void importDummyCalChannelThresholdEff ( int  firstExp = 0,
int  firstRun = 0,
int  lastExp = -1,
int  lastRun = -1 
)

import a dummy payload of TOPCalChannelThresholdEff DB objects

Parameters
firstExpfirst experiment number of IOV
firstRunfirst run number of IOV
lastExpfirst experiment number of IOV
lastRunlast run number of IOV

Definition at line 1354 of file TOPDatabaseImporter.cc.

◆ importDummyCalCommonT0()

void importDummyCalCommonT0 ( int  firstExp = 0,
int  firstRun = 0,
int  lastExp = -1,
int  lastRun = -1 
)

import a dummy payload of TOPCalCommonT0 DB objects

Parameters
firstExpfirst experiment number of IOV
firstRunfirst run number of IOV
lastExpfirst experiment number of IOV
lastRunlast run number of IOV

Definition at line 1376 of file TOPDatabaseImporter.cc.

◆ importDummyCalIntegratedCharge()

void importDummyCalIntegratedCharge ( int  firstExp = 0,
int  firstRun = 0,
int  lastExp = -1,
int  lastRun = -1 
)

import a dummy payload of TOPCalIntegratedCharge DB objects

Parameters
firstExpfirst experiment number of IOV
firstRunfirst run number of IOV
lastExpfirst experiment number of IOV
lastRunlast run number of IOV

Definition at line 1387 of file TOPDatabaseImporter.cc.

◆ importDummyCalModuleAlignment()

void importDummyCalModuleAlignment ( int  firstExp = 0,
int  firstRun = 0,
int  lastExp = -1,
int  lastRun = -1 
)

import a dummy payload of TOPCalModuleAlignment DB objects

Parameters
firstExpfirst experiment number of IOV
firstRunfirst run number of IOV
lastExpfirst experiment number of IOV
lastRunlast run number of IOV

Definition at line 1277 of file TOPDatabaseImporter.cc.

◆ importDummyCalModuleT0()

void importDummyCalModuleT0 ( int  firstExp = 0,
int  firstRun = 0,
int  lastExp = -1,
int  lastRun = -1 
)

import a dummy payload of TOPCalCalModuleT0 DB objects

Parameters
firstExpfirst experiment number of IOV
firstRunfirst run number of IOV
lastExpfirst experiment number of IOV
lastRunlast run number of IOV

Definition at line 1288 of file TOPDatabaseImporter.cc.

◆ importDummyCalTimebase()

void importDummyCalTimebase ( int  firstExp = 0,
int  firstRun = 0,
int  lastExp = -1,
int  lastRun = -1 
)

import a dummy payload of TOPCalTimebase DB objects

Parameters
firstExpfirst experiment number of IOV
firstRunfirst run number of IOV
lastExpfirst experiment number of IOV
lastRunlast run number of IOV

Definition at line 1310 of file TOPDatabaseImporter.cc.

◆ importFrontEndSettings()

void importFrontEndSettings ( int  lookback,
int  readoutWin,
int  extraWin,
int  offset,
int  expNo,
int  firstRun,
int  lastRun 
)

Import front-end settings.

Parameters
lookbackthe number of lookback windows
readoutWinthe number of readout windows
extraWinthe number of extra windows btw. lookback and readout window
offsetoffset to photon peak [RF clocks]
expNoexperiment number of IOV
firstRunfirst run number of IOV
lastRunlast run number of IOV

Definition at line 1245 of file TOPDatabaseImporter.cc.

◆ importLocalT0Calibration()

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.

Parameters
fileNamesfile names separated by space (since vector doesn't work!)
firstExpfirst experiment number of IOV
firstRunfirst run number of IOV
lastExpfirst experiment number of IOV
lastRunlast run number of IOV

Definition at line 199 of file TOPDatabaseImporter.cc.

◆ importModuleT0()

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")

Parameters
fileNameroot file name
expNoexperiment number of IOV
firstRunfirst run number of IOV
lastRunlast run number of IOV

Definition at line 518 of file TOPDatabaseImporter.cc.

◆ importModuleT0Calibration()

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.

Parameters
fileNamename of the dat file with constants of all modules
firstExpfirst experiment number of IOV
firstRunfirst run number of IOV
lastExpfirst experiment number of IOV
lastRunlast run number of IOV

Definition at line 465 of file TOPDatabaseImporter.cc.

◆ importOfflineCommonT0Calibration()

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.

Parameters
fileNamename of the root file with constants of all modules
firstExpfirst experiment number of IOV
firstRunfirst run number of IOV
lastExpfirst experiment number of IOV
lastRunlast run number of IOV

Definition at line 376 of file TOPDatabaseImporter.cc.

◆ importPmtGainData()

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.

Parameters
fileName: name of the root file containing relevant data
treeName: name of the tree containing relevant data
firstExpfirst experiment number of IOV
firstRunfirst run number of IOV
lastExpfirst experiment number of IOV
lastRunlast run number of IOV

Definition at line 799 of file TOPDatabaseImporter.cc.

◆ importPmtInstallationData()

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.

Parameters
fileName: name of the root file containing relevant data
treeName: name of the tree containing relevant data
firstExpfirst experiment number of IOV
firstRunfirst run number of IOV
lastExpfirst experiment number of IOV
lastRunlast run number of IOV

Definition at line 858 of file TOPDatabaseImporter.cc.

◆ importPmtObsoleteData()

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!)

Parameters
fileName: name of the root file containing relevant data
treeName: name of the tree containing relevant data
firstExpfirst experiment number of IOV
firstRunfirst run number of IOV
lastExpfirst experiment number of IOV
lastRunlast run number of IOV

Definition at line 908 of file TOPDatabaseImporter.cc.

◆ importPmtPulseHeightFitResult()

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.

Parameters
fileName: name of the root file containing relevant data, which is obtained from TOPGainEfficiencyMonitor
firstExpfirst experiment number of IOV
firstRunfirst run number of IOV
lastExpfirst experiment number of IOV
lastRunlast run number of IOV

Definition at line 1132 of file TOPDatabaseImporter.cc.

◆ importPmtQEData()

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.

Parameters
fileName: name of the root file containing relevant data
treeName: name of the tree containing relevant data
firstExpfirst experiment number of IOV
firstRunfirst run number of IOV
lastExpfirst experiment number of IOV
lastRunlast run number of IOV

Definition at line 726 of file TOPDatabaseImporter.cc.

◆ importPmtTTSHisto()

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.

Parameters
fileName: name of the root file containing relevant data
treeName: name of the tree containing relevant data
firstExpfirst experiment number of IOV
firstRunfirst run number of IOV
lastExpfirst experiment number of IOV
lastRunlast run number of IOV

Definition at line 1069 of file TOPDatabaseImporter.cc.

◆ importPmtTTSPar()

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.

Parameters
fileName: name of the root file containing relevant data
treeName: name of the tree containing relevant data
firstExpfirst experiment number of IOV
firstRunfirst run number of IOV
lastExpfirst experiment number of IOV
lastRunlast run number of IOV

Definition at line 968 of file TOPDatabaseImporter.cc.

◆ importSampleTimeCalibration()

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)

Parameters
fileNamesfile names separated by space (since vector doesn't work!)
firstExpfirst experiment number of IOV
firstRunfirst run number of IOV
lastExpfirst experiment number of IOV
lastRunlast run number of IOV

Definition at line 73 of file TOPDatabaseImporter.cc.

◆ importTimeWalk()

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

Parameters
listPython list of parameters of time-walk calibration curve [ns]
aelectronic time resolution: noise term excess parameter [ns]
belectronic time resolution: quadratic term parameter [ns]
firstExpfirst experiment number of IOV
firstRunfirst run number of IOV
lastExpfirst experiment number of IOV
lastRunlast run number of IOV

Definition at line 1445 of file TOPDatabaseImporter.cc.

◆ interpolate()

double interpolate ( double  lambda,
const std::vector< float > &  QE 
) const
private

Interpolate between QE datapoints (linear interpolation).

Parameters
lambdawavelength in [nm]
QEquantum efficiency data points
Returns
quantum efficiency at lambda

Definition at line 107 of file TOPPmtQE.cc.

◆ isActive()

bool isActive ( int  moduleID,
unsigned  channel 
) const

Returns false if the channel is dead or noisy, and true is the channel is active.

Parameters
moduleIDmodule ID (1-based)
channelhardware channel number (0-based)

Definition at line 74 of file TOPCalChannelMask.cc.

◆ isAvailable()

bool isAvailable ( unsigned  scrodID,
unsigned  channel 
) const

Checks if calibration is available.

Parameters
scrodIDSCROD ID
channelchannel number (within SCROD or within module)
Returns
true if available

Definition at line 69 of file TOPCalTimebase.cc.

◆ isCalibrated() [1/4]

bool isCalibrated ( int  moduleID) const

Returns calibration status.

Parameters
moduleIDmodule ID (1-based)
Returns
true, if good calibrated

Definition at line 87 of file TOPCalModuleT0.cc.

◆ isCalibrated() [2/4]

bool isCalibrated ( int  moduleID) const

Returns calibration status.

Parameters
moduleIDmodule ID (1-based)
Returns
true, if good calibrated

Definition at line 228 of file TOPCalModuleAlignment.cc.

◆ isCalibrated() [3/4]

bool isCalibrated ( int  moduleID,
unsigned  asic 
) const

Returns calibration status.

Parameters
moduleIDmodule ID (1-based)
asicASIC number within a module (0 - 63)
Returns
true, if good calibrated

Definition at line 68 of file TOPCalAsicShift.cc.

◆ isCalibrated() [4/4]

bool isCalibrated ( int  moduleID,
unsigned  channel 
) const

Returns calibration status.

Parameters
moduleIDmodule ID (1-based)
channelhardware channel number (0-based)
Returns
true, if good calibrated

Definition at line 105 of file TOPCalChannelT0.cc.

◆ isConsistent() [1/18]

bool isConsistent ( ) const
overridevirtual

Check for consistency of data members.

Returns
true if values consistent (valid)

Reimplemented from TOPGeoBase.

Definition at line 22 of file TOPGeoEndPlate.cc.

23  {
24  if (m_thickness <= 0) return false;
25  if (m_height <= 0) return false;
26  if (m_material.empty()) return false;
27  return true;
28  }

◆ isConsistent() [2/18]

bool isConsistent ( ) const
overridevirtual

Check for consistency of data members.

Returns
true if values consistent (valid)

Reimplemented from TOPGeoBase.

Definition at line 36 of file TOPWavelengthFilter.cc.

◆ isConsistent() [3/18]

bool isConsistent ( ) const
overridevirtual

Check for consistency of data members.

Returns
true if values consistent (valid)

Reimplemented from TOPGeoBase.

Definition at line 22 of file TOPGeoSideRails.cc.

23  {
24  if (m_thickness <= 0) return false;
25  if (m_reducedThickness <= 0) return false;
26  if (m_height <= 0) return false;
27  if (m_material.empty()) return false;
28  return true;
29  }

◆ isConsistent() [4/18]

bool isConsistent ( ) const
overridevirtual

Check for consistency of data members.

Returns
true if values consistent (valid)

Reimplemented from TOPGeoBase.

Definition at line 22 of file TOPGeoColdPlate.cc.

23  {
24  if (m_baseThickness <= 0) return false;
25  if (m_baseMaterial.empty()) return false;
26  if (m_coolThickness <= 0) return false;
27  if (m_coolWidth <= 0) return false;
28  if (m_coolMaterial.empty()) return false;
29  return true;
30  }

◆ isConsistent() [5/18]

bool isConsistent ( ) const
overridevirtual

Check for consistency of data members.

Returns
true if values consistent (valid)

Reimplemented from TOPGeoBase.

Definition at line 62 of file TOPNominalTTS.cc.

◆ isConsistent() [6/18]

bool isConsistent ( ) const
overridevirtual

Check for consistency of data members.

Returns
true if values consistent (valid)

Reimplemented from TOPGeoBase.

Definition at line 23 of file TOPGeoPrismEnclosure.cc.

24  {
25  if (m_length <= 0) return false;
26  if (m_height <= 0) return false;
27  if (m_bottomThickness <= 0) return false;
28  if (m_sideThickness <= 0) return false;
29  if (m_backThickness <= 0) return false;
30  if (m_frontThickness <= 0) return false;
31  if (m_extensionThickness <= 0) return false;
32  if (m_material.empty()) return false;
33  return true;
34  }

◆ isConsistent() [7/18]

bool isConsistent ( ) const
overridevirtual

Check for consistency of data members.

Returns
true if values consistent (valid)

Reimplemented from TOPGeoBase.

Definition at line 48 of file TOPGeoHoneycombPanel.cc.

◆ isConsistent() [8/18]

bool isConsistent ( ) const
overridevirtual

Check for consistency of data members.

Returns
true if values consistent (valid)

Reimplemented from TOPGeoBase.

Definition at line 32 of file TOPNominalQE.cc.

◆ isConsistent() [9/18]

bool isConsistent ( ) const
overridevirtual

Check for consistency of data members.

Returns
true if values consistent (valid)

Reimplemented from TOPGeoBarSegment.

Definition at line 35 of file TOPGeoMirrorSegment.cc.

◆ isConsistent() [10/18]

bool isConsistent ( ) const
overridevirtual

Check for consistency of data members.

Returns
true if values consistent (valid)

Reimplemented from TOPGeoBarSegment.

Definition at line 25 of file TOPGeoPrism.cc.

◆ isConsistent() [11/18]

bool isConsistent ( ) const
overridevirtual

Check for consistency of data members.

Returns
true if values consistent (valid)

Reimplemented from TOPGeoBase.

Reimplemented in TOPGeoPrism, and TOPGeoMirrorSegment.

Definition at line 25 of file TOPGeoBarSegment.cc.

◆ isConsistent() [12/18]

bool isConsistent ( ) const
overridevirtual

Check for consistency of data members.

Returns
true if values consistent (valid)

Reimplemented from TOPGeoBase.

Definition at line 232 of file TOPGeoQBB.cc.

◆ isConsistent() [13/18]

bool isConsistent ( ) const
overridevirtual

Check for consistency of data members.

Returns
true if values consistent (valid)

Reimplemented from TOPGeoBase.

Definition at line 22 of file TOPGeoFrontEnd.cc.

23  {
24  if (m_FBWidth <= 0) return false;
25  if (m_FBHeight <= 0) return false;
26  if (m_FBThickness <= 0) return false;
27  if (m_FBGap < 0) return false;
28  if (m_FBMaterial.empty()) return false;
29 
30  if (m_HVWidth <= 0) return false;
31  if (m_HVLength <= 0) return false;
32  if (m_HVThickness <= 0) return false;
33  if (m_HVGap < 0) return false;
34  if (m_HVMaterial.empty()) return false;
35 
36  if (m_BSWidth <= 0) return false;
37  if (m_BSHeight <= 0) return false;
38  if (m_BSLength <= 0) return false;
39  if (m_BSGap < 0) return false;
40  if (m_BSMaterial.empty()) return false;
41  if (m_spacerWidth <= 0) return false;
42  if (m_spacerMaterial.empty()) return false;
43 
44  return true;
45  }

◆ isConsistent() [14/18]

bool isConsistent ( ) const
overridevirtual

Check for consistency of data members.

Returns
true if values consistent (valid)

Reimplemented from TOPGeoBase.

Definition at line 86 of file TOPNominalTDC.cc.

◆ isConsistent() [15/18]

bool isConsistent ( ) const
overridevirtual

Check for consistency of data members.

Returns
true if values consistent (valid)

Reimplemented from TOPGeoBase.

Definition at line 46 of file TOPGeoPMT.cc.

◆ isConsistent() [16/18]

bool isConsistent ( ) const
overridevirtual

Check for consistency of data members.

Returns
true if values consistent (valid)

Reimplemented from TOPGeoBase.

Definition at line 128 of file TOPGeometry.cc.

◆ isConsistent() [17/18]

bool isConsistent ( ) const
overridevirtual

Check for consistency of data members.

Returns
true if values consistent (valid)

Reimplemented from TOPGeoBase.

Definition at line 95 of file TOPGeoPMTArray.cc.

◆ isConsistent() [18/18]

bool isConsistent ( ) const
overridevirtual

Check for consistency of data members.

Returns
true if values consistent (valid)

Reimplemented from TOPGeoBase.

Definition at line 93 of file TOPGeoModule.cc.

94  {
95  if (m_moduleID <= 0) return false;
96  if (!m_bar1.isConsistent()) return false;
97  if (!m_bar2.isConsistent()) return false;
98  if (!m_mirror.isConsistent()) return false;
99  if (!m_prism.isConsistent()) return false;
100  if (!m_pmtArray.isConsistent()) return false;
101  return true;
102  }

◆ isDefault() [1/4]

bool isDefault ( int  moduleID) const

Returns calibration status.

Parameters
moduleIDmodule ID (1-based)
Returns
true, if default (not calibrated)

Definition at line 95 of file TOPCalModuleT0.cc.

◆ isDefault() [2/4]

bool isDefault ( int  moduleID) const

Returns calibration status.

Parameters
moduleIDmodule ID (1-based)
Returns
true, if default (not calibrated)

Definition at line 235 of file TOPCalModuleAlignment.cc.

◆ isDefault() [3/4]

bool isDefault ( int  moduleID,
unsigned  asic 
) const

Returns calibration status.

Parameters
moduleIDmodule ID (1-based)
asicASIC number within a module (0 - 63)
Returns
true, if default (not calibrated)

Definition at line 77 of file TOPCalAsicShift.cc.

◆ isDefault() [4/4]

bool isDefault ( int  moduleID,
unsigned  channel 
) const

Returns calibration status.

Parameters
moduleIDmodule ID (1-based)
channelhardware channel number (0-based)
Returns
true, if default (not calibrated)

Definition at line 114 of file TOPCalChannelT0.cc.

◆ isModuleIDValid()

bool isModuleIDValid ( int  moduleID) const

Checks if module exists in m_modules.

Parameters
moduleIDmodule ID (1-based)
Returns
true if exists

Definition at line 35 of file TOPGeometry.cc.

◆ isPMTDecoupled()

bool isPMTDecoupled ( unsigned  pmtID) const

Checks if PMT is optically decoupled.

Returns
true if decoupled

Definition at line 86 of file TOPGeoPMTArray.cc.

◆ isSampleValid()

bool isSampleValid ( int  sample) const

Check for the validity of sample number.

Parameters
samplesample number
Returns
true if sample number is valid

Definition at line 79 of file TOPNominalTDC.cc.

◆ isUnusable() [1/4]

bool isUnusable ( int  moduleID) const

Returns calibration status.

Parameters
moduleIDmodule ID (1-based)
Returns
true, if bad calibrated

Definition at line 103 of file TOPCalModuleT0.cc.

◆ isUnusable() [2/4]

bool isUnusable ( int  moduleID) const

Returns calibration status.

Parameters
moduleIDmodule ID (1-based)
Returns
true, if bad calibrated

Definition at line 242 of file TOPCalModuleAlignment.cc.

◆ isUnusable() [3/4]

bool isUnusable ( int  moduleID,
unsigned  asic 
) const

Returns calibration status.

Parameters
moduleIDmodule ID (1-based)
asicASIC number within a module (0 - 63)
Returns
true, if bad calibrated

Definition at line 86 of file TOPCalAsicShift.cc.

◆ isUnusable() [4/4]

bool isUnusable ( int  moduleID,
unsigned  channel 
) const

Returns calibration status.

Parameters
moduleIDmodule ID (1-based)
channelhardware channel number (0-based)
Returns
true, if bad calibrated

Definition at line 123 of file TOPCalChannelT0.cc.

◆ momentumToGlobal()

TVector3 momentumToGlobal ( const TVector3 &  momentum) const

Transforms momentum vector from module internal frame to Belle II frame.

Parameters
momentummomentum vector in module internal frame
Returns
momentum vector in Belle II frame

Definition at line 60 of file TOPGeoModule.cc.

◆ momentumToLocal()

TVector3 momentumToLocal ( const TVector3 &  momentum) const

Transforms momentum vector from Belle II to module internal frame.

Parameters
momentummomentum vector in Belle II frame
Returns
momentum vector in module internal frame

Definition at line 72 of file TOPGeoModule.cc.

◆ normalize()

double normalize ( )

Normalize the distribution (fractions)

Returns
value used to normalize fractions

Definition at line 38 of file TOPNominalTTS.cc.

◆ pointToGlobal()

TVector3 pointToGlobal ( const TVector3 &  point) const

Transforms 3D point from module internal frame to Belle II frame.

Parameters
point3D point in module internal frame (basf2 units!)
Returns
3D point in Belle II frame (basf2 units!)

Definition at line 54 of file TOPGeoModule.cc.

◆ pointToLocal()

TVector3 pointToLocal ( const TVector3 &  point) const

Transforms 3D point from Belle II to module internal frame.

Parameters
point3D point in Belle II frame (basf2 units!)
Returns
3D point in module internal frame (basf2 units!)

Definition at line 66 of file TOPGeoModule.cc.

◆ print() [1/21]

void print ( const std::string &  title) const
virtual

◆ print() [2/21]

void print ( const std::string &  title = "Bar segment geometry parameters") const
overridevirtual

Print the content of the class.

Parameters
titletitle to be printed

Reimplemented from TOPGeoBase.

Reimplemented in TOPGeoPrism, and TOPGeoMirrorSegment.

Definition at line 40 of file TOPGeoBarSegment.cc.

◆ print() [3/21]

void print ( const std::string &  title = "Front-end geometry parameters") const
overridevirtual

Print the content of the class.

Parameters
titletitle to be printed

Reimplemented from TOPGeoBase.

Definition at line 48 of file TOPGeoFrontEnd.cc.

◆ print() [4/21]

void print ( const std::string &  title = "MCP-PMT geometry parameters") const
overridevirtual

Print the content of the class.

Parameters
titletitle to be printed

Reimplemented from TOPGeoBase.

Definition at line 73 of file TOPGeoPMT.cc.

◆ print() [5/21]

void print ( const std::string &  title = "Mirror segment geometry parameters") const
overridevirtual

Print the content of the class.

Parameters
titletitle to be printed

Reimplemented from TOPGeoBarSegment.

Definition at line 46 of file TOPGeoMirrorSegment.cc.

◆ print() [6/21]

void print ( const std::string &  title = "Module displacement parameters") const
overridevirtual

Print the content of the class.

Parameters
titletitle to be printed

Reimplemented from TOPGeoBase.

Definition at line 22 of file TOPGeoModuleDisplacement.cc.

23  {
24  TOPGeoBase::print(title);
25  cout << " translation vector: (" << getX() << ", "
26  << getY() << ", " << getZ() << ")" << " " << s_unitName << endl;
27  cout << " rotation angles: ";
28  cout << getAlpha() << " ";
29  cout << getBeta() << " ";
30  cout << getGamma() << " ";
31  cout << endl;
32  }

◆ print() [7/21]

void print ( const std::string &  title = "Module geometry parameters") const
overridevirtual

Print the content of the class.

Parameters
titletitle to be printed

Reimplemented from TOPGeoBase.

Definition at line 105 of file TOPGeoModule.cc.

◆ print() [8/21]

void print ( const std::string &  title = "Nominal quantum efficiency") const
overridevirtual

Print the content of the class.

Parameters
titletitle to be printed

Reimplemented from TOPGeoBase.

Definition at line 42 of file TOPNominalQE.cc.

◆ print() [9/21]

void print ( const std::string &  title = "Nominal time-to-digit conversion parameters") const
overridevirtual

Print the content of the class.

Parameters
titletitle to be printed

Reimplemented from TOPGeoBase.

Definition at line 95 of file TOPNominalTDC.cc.

◆ print() [10/21]

void print ( const std::string &  title = "Nominal TTS distribution") const
overridevirtual

Print the content of the class.

Parameters
titletitle to be printed

Reimplemented from TOPGeoBase.

Definition at line 70 of file TOPNominalTTS.cc.

◆ print() [11/21]

void print ( const std::string &  title = "PMT array displacement parameters") const
overridevirtual

Print the content of the class.

Parameters
titletitle to be printed

Reimplemented from TOPGeoBase.

Definition at line 22 of file TOPGeoPMTArrayDisplacement.cc.

23  {
24  TOPGeoBase::print(title);
25  cout << " translation vector: (" << getX() << ", " << getY() << ")"
26  << " " << s_unitName << endl;
27  cout << " rotation angle: " << m_alpha << endl;
28  }

◆ print() [12/21]

void print ( const std::string &  title = "PMT array geometry parameters") const
overridevirtual

Print the content of the class.

Parameters
titletitle to be printed

Reimplemented from TOPGeoBase.

Definition at line 110 of file TOPGeoPMTArray.cc.

◆ print() [13/21]

void print ( const std::string &  title = "Prism geometry parameters") const
overridevirtual

Print the content of the class.

Parameters
titletitle to be printed

Reimplemented from TOPGeoBarSegment.

Definition at line 49 of file TOPGeoPrism.cc.

◆ print() [14/21]

void print ( const std::string &  title = "QBB cold plate geometry parameters") const
overridevirtual

Print the content of the class.

Parameters
titletitle to be printed

Reimplemented from TOPGeoBase.

Definition at line 33 of file TOPGeoColdPlate.cc.

◆ print() [15/21]

void print ( const std::string &  title = "QBB forward end plate geometry parameters") const
overridevirtual

Print the content of the class.

Parameters
titletitle to be printed

Reimplemented from TOPGeoBase.

Definition at line 31 of file TOPGeoEndPlate.cc.

◆ print() [16/21]

void print ( const std::string &  title = "QBB geometry parameters") const
overridevirtual

Print the content of the class.

Parameters
titletitle to be printed

Reimplemented from TOPGeoBase.

Definition at line 248 of file TOPGeoQBB.cc.

◆ print() [17/21]

void print ( const std::string &  title = "QBB honeycomb panel geometry parameters") const
overridevirtual

Print the content of the class.

Parameters
titletitle to be printed

Reimplemented from TOPGeoBase.

Definition at line 62 of file TOPGeoHoneycombPanel.cc.

◆ print() [18/21]

void print ( const std::string &  title = "QBB prism enclosure geometry parameters") const
overridevirtual

Print the content of the class.

Parameters
titletitle to be printed

Reimplemented from TOPGeoBase.

Definition at line 37 of file TOPGeoPrismEnclosure.cc.

◆ print() [19/21]

void print ( const std::string &  title = "QBB side rails geometry parameters") const
overridevirtual

Print the content of the class.

Parameters
titletitle to be printed

Reimplemented from TOPGeoBase.

Definition at line 32 of file TOPGeoSideRails.cc.

◆ print() [20/21]

void print ( const std::string &  title = "TOP geometry parameters") const
overridevirtual

Print the content of the class.

Parameters
titletitle to be printed

Reimplemented from TOPGeoBase.

Definition at line 144 of file TOPGeometry.cc.

◆ print() [21/21]

void print ( const std::string &  title = "Wavelength filter bulk transmittance") const
overridevirtual

Print the content of the class.

Parameters
titletitle to be printed

Reimplemented from TOPGeoBase.

Definition at line 47 of file TOPWavelengthFilter.cc.

◆ printSurface()

void printSurface ( const GeoOpticalSurface surface) const
virtual

Print the content of optical surface.

Parameters
surfaceoptical surface parameters

Definition at line 46 of file TOPGeoBase.cc.

◆ printUnderlined()

void printUnderlined ( const std::string &  title) const
protected

Print the content of the class.

Parameters
titletitle to be printed

Definition at line 37 of file TOPGeoBase.cc.

◆ set()

void set ( const std::vector< double > &  timeWalkParams,
double  noise,
double  quadratic 
)

Sets all the parameters and switches status to calibrated.

Parameters
timeWalkParamspolynomial coefficients of time-walk calibration curve [ns]
noisenoise term excess coefficient of electronic time resolution [ns]
quadraticquadratic term coefficient of electronic time resolution [ns]

Definition at line 28 of file TOPCalTimeWalk.cc.

◆ setActive()

void setActive ( int  moduleID,
unsigned  channel 
)

Sets a specific channel as active.

Parameters
moduleIDmodule ID (1-based)
channelhardware channel number (0-based)

Definition at line 33 of file TOPCalChannelMask.cc.

◆ setAlpha()

void setAlpha ( int  moduleID,
double  alpha,
double  errAlpha 
)

Sets the angle alpha on a single module.

Parameters
moduleIDmodule ID (1-based)
alpharotation angle around x
errAlphaerror on alpha

Definition at line 22 of file TOPCalModuleAlignment.cc.

◆ setBeta()

void setBeta ( int  moduleID,
double  beta,
double  errBeta 
)

Sets the angle beta on a single module.

Parameters
moduleIDmodule ID (1-based)
betarotation angle around y
errBetaerror on beta

Definition at line 33 of file TOPCalModuleAlignment.cc.

◆ setBrokenGlue()

void setBrokenGlue ( int  glueID,
double  fraction,
double  angle,
const std::string &  material 
)

Sets glue to be broken (delaminated)

Parameters
glueIDglue ID: bar-mirror (1), bar-bar (2), prism-bar (3)
fractionfraction of the delaminated surface
angleangle of the delaminated surface
materialmaterial name to simulate the delaminated glue

Definition at line 25 of file TOPGeoModule.cc.

◆ setCalibrated()

void setCalibrated ( int  moduleID)

Switches calibration status to calibrated.

Parameters
moduleIDmodule ID (1-based)

Definition at line 88 of file TOPCalModuleAlignment.cc.

◆ setDead()

void setDead ( int  moduleID,
unsigned  channel 
)

Sets a specific channel as dead.

Parameters
moduleIDmodule ID (1-based)
channelhardware channel number (0-based)

Definition at line 43 of file TOPCalChannelMask.cc.

◆ setGains()

bool setGains ( const std::vector< float > &  gains,
float  error = 0 
)

Set gains.

Parameters
gainsvector of relative gains (size must be c_WindowSize)
errorerror on gains
Returns
true, on success

Definition at line 22 of file TOPASICGains.cc.

23  {
24 
25  if (gains.size() != c_WindowSize) {
26  B2ERROR("TOPASICGains::setGains: vector with wrong number of elements");
27  return false;
28  }
29 
30  for (int i = 0; i < c_WindowSize; i++) {
31  float gain = gains[i] * m_unit;
32  if (gain > 0 and (gain + 0.5) < 0x10000) {
33  m_gains[i] = int(gain + 0.5);
34  } else {
35  return false;
36  }
37  }
38  error *= m_unit;
39  m_gainError = int(error + 0.5);
40  return true;
41 
42  }

◆ setGamma()

void setGamma ( int  moduleID,
double  gamma,
double  errGamma 
)

Sets the angle gamma on a single module.

Parameters
moduleIDmodule ID (1-based)
gammarotation angle around z
errGammaerror on gamma

Definition at line 44 of file TOPCalModuleAlignment.cc.

◆ setNoisy()

void setNoisy ( int  moduleID,
unsigned  channel 
)

Sets a specific channel as noisy.

Parameters
moduleIDmodule ID (1-based)
channelhardware channel number (0-based)

Definition at line 53 of file TOPCalChannelMask.cc.

◆ setPedestals()

int setPedestals ( const TProfile *  profile,
double  average = 0 
)

Set pedestals from profile histogram with c_WindowSize bins.

Parameters
profileprofile histogram
averageoptional value to add
Returns
number of pedestals that can not be packed into 16-bit word

Definition at line 25 of file TOPASICPedestals.cc.

◆ setPeelOffRegions()

void setPeelOffRegions ( double  thickness,
const std::string &  material 
)

Sets parameters of the peel-off cookie volumes.

Parameters
thicknessvolume thickness
materialmaterial name

Definition at line 45 of file TOPGeoModule.cc.

◆ setStatus()

void setStatus ( int  moduleID,
unsigned  channel,
EStatus  status 
)

Sets the status for a single channel.

Parameters
moduleIDmodule ID (1-based)
channelhardware channel number (0-based)
statuschannel status (0: active 1: dead 2: noisy )

Definition at line 23 of file TOPCalChannelMask.cc.

◆ setT0() [1/3]

void setT0 ( int  moduleID,
double  T0,
double  errT0 
)

Sets calibration for a single module and switches status to calibrated.

Parameters
moduleIDmodule ID (1-based)
T0module T0
errT0error on T0

Definition at line 22 of file TOPCalModuleT0.cc.

◆ setT0() [2/3]

void setT0 ( int  moduleID,
unsigned  asic,
double  T0 
)

Sets calibration for a single ASIC and switches status to calibrated.

Parameters
moduleIDmodule ID (1-based)
asicASIC number within a module (0 - 63)
T0shift in time [ns]

Definition at line 22 of file TOPCalAsicShift.cc.

◆ setT0() [3/3]

void setT0 ( int  moduleID,
unsigned  channel,
double  T0,
double  errT0 
)

Sets calibration for a single channel and switches status to calibrated.

Parameters
moduleIDmodule ID (1-based)
channelhardware channel number (0-based)
T0channel T0
errT0error on T0

Definition at line 22 of file TOPCalChannelT0.cc.

◆ setTimeAxis() [1/2]

void setTimeAxis ( const std::vector< double > &  sampleTimes,
double  syncTimeBase 
)

Sets time axis from calibration data and switches status to calibrated.

Parameters
sampleTimesvector of 256 elements of sample times
syncTimeBasesinchronization time base (width of 2 ASIC windows)

Definition at line 35 of file TOPSampleTimes.cc.

◆ setTimeAxis() [2/2]

void setTimeAxis ( double  syncTimeBase)

Sets equidistant time axis (uncalibrated).

Parameters
syncTimeBasesinchronization time base (width of 2 ASIC windows)

Definition at line 25 of file TOPSampleTimes.cc.

◆ setUnusable() [1/4]

void setUnusable ( int  moduleID)

Switches calibration status to unusable to flag badly calibrated constant.

Parameters
moduleIDmodule ID (1-based)

Definition at line 35 of file TOPCalModuleT0.cc.

◆ setUnusable() [2/4]

void setUnusable ( int  moduleID)

Switches calibration status to unusable to flag badly calibrated constant.

Parameters
moduleIDmodule ID (1-based)

Definition at line 98 of file TOPCalModuleAlignment.cc.

◆ setUnusable() [3/4]

void setUnusable ( int  moduleID,
unsigned  asic 
)

Switches calibration status to unusable to flag badly calibrated constant.

Parameters
moduleIDmodule ID (1-based)
asicASIC number within a module (0 - 63)

Definition at line 38 of file TOPCalAsicShift.cc.

◆ setUnusable() [4/4]

void setUnusable ( int  moduleID,
unsigned  channel 
)

Switches calibration status to unusable to flag badly calibrated constant.

Parameters
moduleIDmodule ID (1-based)
channelhardware channel number (0-based)

Definition at line 39 of file TOPCalChannelT0.cc.

◆ setWindowShifts()

void setWindowShifts ( std::vector< int >  shifts)

Sets window shifts.

Parameters
shiftsvector of size = 6 with window shifts according to revo9count

Definition at line 22 of file TOPFrontEndSetting.cc.

23  {
24  if (shifts.size() != 6) {
25  B2ERROR("TOPFrontEndSetting::setWindowShifts: vector size must be 6");
26  return;
27  }
28  for (int i = 0; i < 6; i++) m_windowShifts[i] = shifts[i];
29  }

◆ setX()

void setX ( int  moduleID,
double  x,
double  errX 
)

Sets the displacement x on a single module.

Parameters
moduleIDmodule ID (1-based)
xdisplacement along the x axis
errXerror on the displacement

Definition at line 55 of file TOPCalModuleAlignment.cc.

◆ setY()

void setY ( int  moduleID,
double  y,
double  errY 
)

Sets the displacement y on a single module.

Parameters
moduleIDmodule ID (1-based)
ydisplacement along the y axis
errYerror on the displacement

Definition at line 66 of file TOPCalModuleAlignment.cc.

◆ setZ()

void setZ ( int  moduleID,
double  z,
double  errZ 
)

Sets the displacement z on a single module.

Parameters
moduleIDmodule ID (1-based)
zdisplacement along the z axis
errZerror on the displacement

Definition at line 77 of file TOPCalModuleAlignment.cc.

◆ suppressAverage() [1/2]

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 46 of file TOPCalModuleT0.cc.

◆ suppressAverage() [2/2]

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 54 of file TOPCalChannelT0.cc.

◆ TOPNominalTDC()

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)

Parameters
numWindowsnumber of ASIC windows per waveform
subBitsnumber of bits per sample
syncTimeBasesynchonization time base (time width of c_syncWindows)
numofBunchesnumber of bunches per syncTimeBase
offsettime offset
pileupTimepile-up time
doubleHitResolutiondouble hit resolution time
timeJitterr.m.s. of time jitter
efficiencyelectronic efficiency (fraction of hits above threshold)
nameobject name

Definition at line 24 of file TOPNominalTDC.cc.

◆ TOPSignalShape()

TOPSignalShape ( std::vector< double >  shape,
double  timeBin,
double  tau,
double  pole1,
double  pole2 
)

Full constructor.

Parameters
shapewaveform values (unnormalized) of positive pulse
timeBintime difference between two samples [ns]
tautime constant of the exponential tail used for extrapolation [ns]
pole1noise bandwidth: first pole [GHz]
pole2noise bandwidth: second pole [GHz]

Definition at line 23 of file TOPSignalShape.cc.

Belle2::TOPNominalQE::m_lambdaFirst
float m_lambdaFirst
wavelength of the first data point [nm]
Definition: TOPNominalQE.h:156
Belle2::TOPNominalQE::m_QE
std::vector< float > m_QE
QE data points.
Definition: TOPNominalQE.h:159
Belle2::TOPGeoFrontEnd::m_FBMaterial
std::string m_FBMaterial
front board material
Definition: TOPGeoFrontEnd.h:250
Belle2::TOPCalChannelT0::c_numModules
@ c_numModules
number of modules
Definition: TOPCalChannelT0.h:119
Belle2::TOPNominalQE::m_lambdaStep
float m_lambdaStep
wavelength step [nm]
Definition: TOPNominalQE.h:157
Belle2::TOPGeoPMTArray::getSize
unsigned getSize() const
Returns array size.
Definition: TOPGeoPMTArray.h:122
Belle2::TOPGeoFrontEnd::m_HVThickness
float m_HVThickness
HV board thickness.
Definition: TOPGeoFrontEnd.h:254
Belle2::TOPCalChannelMask::m_status
EStatus m_status[c_numModules][c_numChannels]
channel status
Definition: TOPCalChannelMask.h:186
Belle2::TOPGeoFrontEnd::m_FBThickness
float m_FBThickness
front board thickness
Definition: TOPGeoFrontEnd.h:247
Belle2::TOPGeoPrismEnclosure::m_material
std::string m_material
material name
Definition: TOPGeoPrismEnclosure.h:157
Belle2::TOPCalModuleAlignment::m_errY
float m_errY[c_numModules]
error on the y displacement
Definition: TOPCalModuleAlignment.h:248
Belle2::TOPGeoMirrorSegment::getOuterRadius
double getOuterRadius() const
Returns spherical mirror outer radius of curvature.
Definition: TOPGeoMirrorSegment.h:97
Belle2::TOPSignalShape::m_tmax
double m_tmax
time of the last waveform sample [ns]
Definition: TOPSignalShape.h:143
Belle2::TOPCalAsicShift::c_numModules
@ c_numModules
number of modules
Definition: TOPCalAsicShift.h:104
Belle2::TOPGeoPrismEnclosure::getHeight
double getHeight() const
Returns height up to the side rails.
Definition: TOPGeoPrismEnclosure.h:91
Belle2::TOPASICGains::m_gainError
unsigned short m_gainError
gain error (fixed point format)
Definition: TOPASICGains.h:107
Belle2::TOPGeoEndPlate::m_thickness
float m_thickness
thickness
Definition: TOPGeoEndPlate.h:87
Belle2::TOPGeoEndPlate::m_material
std::string m_material
material name
Definition: TOPGeoEndPlate.h:89
Belle2::TOPGeoFrontEnd::m_BSMaterial
std::string m_BSMaterial
board stack material
Definition: TOPGeoFrontEnd.h:264
Belle2::TOPGeoFrontEnd::m_spacerWidth
float m_spacerWidth
board stack spacer width
Definition: TOPGeoFrontEnd.h:265
Belle2::TOPGeoColdPlate::m_baseMaterial
std::string m_baseMaterial
base plate material name
Definition: TOPGeoColdPlate.h:109
Belle2::TOPGeoFrontEnd::m_BSGap
float m_BSGap
gap between board stack and front board
Definition: TOPGeoFrontEnd.h:262
Belle2::TOPGeoSideRails::m_reducedThickness
float m_reducedThickness
thickness at prism enclosure
Definition: TOPGeoSideRails.h:97
Belle2::TOPGeoColdPlate::m_coolThickness
float m_coolThickness
cooling plate thickness
Definition: TOPGeoColdPlate.h:110
Belle2::TOPCalChannelT0::m_T0
float m_T0[c_numModules][c_numChannels]
calibration constants
Definition: TOPCalChannelT0.h:123
Belle2::TOPGeoQBB::getWidth
double getWidth() const
Returns full width.
Definition: TOPGeoQBB.h:112
Belle2::TOPGeoModule::m_bar2
TOPGeoBarSegment m_bar2
bar segment 2 (backward bar)
Definition: TOPGeoModule.h:410
Belle2::TOPCalModuleAlignment::m_errGamma
float m_errGamma[c_numModules]
error on gamma
Definition: TOPCalModuleAlignment.h:246
Belle2::TOPGeoBase::s_unitName
static std::string s_unitName
conversion unit name
Definition: TOPGeoBase.h:97
Belle2::TOPSampleTimes::m_timeAxis
float m_timeAxis[c_TimeAxisSize+1]
time axis + right border point
Definition: TOPSampleTimes.h:215
Belle2::TOPGeoPrismEnclosure::m_extensionThickness
float m_extensionThickness
extension plate thickness
Definition: TOPGeoPrismEnclosure.h:156
Belle2::TOPNominalTDC::m_sampleWidth
float m_sampleWidth
time between two samples
Definition: TOPNominalTDC.h:291
Belle2::TOPGeoPrismEnclosure::m_bottomThickness
float m_bottomThickness
bottom thickness
Definition: TOPGeoPrismEnclosure.h:152
Belle2::TOPCalModuleT0::c_numModules
@ c_numModules
number of modules
Definition: TOPCalModuleT0.h:111
Belle2::TOPCalModuleAlignment::m_errAlpha
float m_errAlpha[c_numModules]
error on alpha
Definition: TOPCalModuleAlignment.h:244
Belle2::TOPGeoBarSegment::getFullLength
double getFullLength() const
Returns bar segment length including glue.
Definition: TOPGeoBarSegment.h:129
Belle2::TOPGeoHoneycombPanel::getRadius
double getRadius() const
Returns radius of curved surface.
Definition: TOPGeoHoneycombPanel.h:102
Belle2::TOPGeoEndPlate::m_height
float m_height
height
Definition: TOPGeoEndPlate.h:88
Belle2::TOPSignalShape::m_interpolator
TSpline5 * m_interpolator
cache for the interpolator
Definition: TOPSignalShape.h:149
Belle2::Pair
std::pair< double, double > Pair
Shorthand for std::pair<double, double>
Definition: TOPGeoBarSegment.cc:59
Belle2::TOPCalChannelMask::check
bool check(const int module, const unsigned channel) const
Check input module and channel arguments are sane.
Definition: TOPCalChannelMask.cc:84
Belle2::TOPGeoFrontEnd::m_BSLength
float m_BSLength
board stack length
Definition: TOPGeoFrontEnd.h:261
Belle2::TOPGeoSideRails::m_thickness
float m_thickness
thickness
Definition: TOPGeoSideRails.h:96
Belle2::Iterator
map< unsigned, const TOPSampleTimes * >::const_iterator Iterator
Iteratior for m_map.
Definition: TOPCalTimebase.cc:25
Belle2::TOPGeoFrontEnd::m_FBGap
float m_FBGap
gap between front board and PMT array
Definition: TOPGeoFrontEnd.h:248
Belle2::TOPGeoPrismEnclosure::m_sideThickness
float m_sideThickness
side wall thickness
Definition: TOPGeoPrismEnclosure.h:153
Belle2::TOPGeoModuleDisplacement::getX
double getX() const
Returns translation in x.
Definition: TOPGeoModuleDisplacement.h:67
Belle2::TOPGeoModuleDisplacement::getBeta
double getBeta() const
Returns rotation angle around y.
Definition: TOPGeoModuleDisplacement.h:91
Belle2::TOPCalAsicShift::m_T0
float m_T0[c_numModules][c_numAsics]
calibration constants
Definition: TOPCalAsicShift.h:108
Belle2::TOPCalModuleAlignment::m_errBeta
float m_errBeta[c_numModules]
error on beta
Definition: TOPCalModuleAlignment.h:245
Belle2::TOPGeoModuleDisplacement::getGamma
double getGamma() const
Returns rotation angle around z.
Definition: TOPGeoModuleDisplacement.h:97
Belle2::TOPCalModuleAlignment::c_numModules
@ c_numModules
number of modules
Definition: TOPCalModuleAlignment.h:234
Belle2::TOPSampleTimes::getTimeRange
double getTimeRange() const
Returns time axis range (time interval corresponding to 4 asic windows)
Definition: TOPSampleTimes.h:118
Belle2::TOPGeoMirrorSegment::getYc
double getYc() const
Returns spherical mirror center of curvature in y.
Definition: TOPGeoMirrorSegment.h:109
Belle2::TOPGeoFrontEnd::m_HVLength
float m_HVLength
HV board length.
Definition: TOPGeoFrontEnd.h:253
Belle2::TOPGeoFrontEnd::m_spacerMaterial
std::string m_spacerMaterial
board stack spacer material
Definition: TOPGeoFrontEnd.h:266
Belle2::TOPCalModuleT0::m_T0
float m_T0[c_numModules]
calibration constants
Definition: TOPCalModuleT0.h:114
Belle2::TOPWavelengthFilter::m_lambdaStep
float m_lambdaStep
wavelength step [nm]
Definition: TOPWavelengthFilter.h:96
Belle2::Unit::eV
static const double eV
[electronvolt]
Definition: Unit.h:122
Belle2::TOPGeoPrismEnclosure::m_length
float m_length
length
Definition: TOPGeoPrismEnclosure.h:149
Belle2::TOPCalTimebase::m_sampleTimes
std::vector< TOPSampleTimes > m_sampleTimes
calibration constants
Definition: TOPCalTimebase.h:136
Belle2::TOPGeoModuleDisplacement::getZ
double getZ() const
Returns translation in z.
Definition: TOPGeoModuleDisplacement.h:79
Belle2::TOPGeoMirrorSegment::getXc
double getXc() const
Returns spherical mirror center of curvature in x.
Definition: TOPGeoMirrorSegment.h:103
Belle2::TOPGeoPMT::m_sensSizeX
float m_sensSizeX
sensitive volume (photo-cathode) size in x
Definition: TOPGeoPMT.h:298
Belle2::TOPGeoPrismEnclosure::getAngle
double getAngle() const
Returns angle of side wall.
Definition: TOPGeoPrismEnclosure.h:97
Belle2::TOPNominalTDC::m_offset
float m_offset
time offset
Definition: TOPNominalTDC.h:283
Belle2::TOPCalTimebase::m_map
std::map< unsigned, const TOPSampleTimes * > m_map
cache for a map
Definition: TOPCalTimebase.h:139
Belle2::TOPGeoPMTArrayDisplacement::m_alpha
float m_alpha
rotation angle around z
Definition: TOPGeoPMTArrayDisplacement.h:88
Belle2::TOPNominalTTS::m_normalized
bool m_normalized
normalization flag
Definition: TOPNominalTTS.h:112
Belle2::TOPGeoFrontEnd::m_HVGap
float m_HVGap
gap between HV board and front board
Definition: TOPGeoFrontEnd.h:255
Belle2::TOPGeoModuleDisplacement::getY
double getY() const
Returns translation in y.
Definition: TOPGeoModuleDisplacement.h:73
Belle2::TOPGeoHoneycombPanel::getMinThickness
double getMinThickness() const
Returns panel minimal thickness.
Definition: TOPGeoHoneycombPanel.h:90
LogVar
Class to store variables with their name which were sent to the logging service.
Definition: LogVariableStream.h:24
Belle2::TOPGeoBarSegment::getWidth
double getWidth() const
Returns bar segment width.
Definition: TOPGeoBarSegment.h:111
Belle2::TOPGeoBarSegment::isConsistent
virtual bool isConsistent() const override
Check for consistency of data members.
Definition: TOPGeoBarSegment.cc:25
Belle2::TOPGeoPrismEnclosure::m_frontThickness
float m_frontThickness
front wall thickness
Definition: TOPGeoPrismEnclosure.h:155
Belle2::TOPGeoFrontEnd::m_BSWidth
float m_BSWidth
board stack width
Definition: TOPGeoFrontEnd.h:259
Belle2::TOPGeometry::m_modules
std::vector< TOPGeoModule > m_modules
geometry parameters of modules
Definition: TOPGeometry.h:293
Belle2::TOPGeoColdPlate::m_coolWidth
float m_coolWidth
cooling plate width
Definition: TOPGeoColdPlate.h:111
Belle2::TOPCalTimebase::m_syncTimeBase
double m_syncTimeBase
synchronization time base (width of 2 ASIC windows)
Definition: TOPCalTimebase.h:135
Belle2::TOPGeoColdPlate::m_coolMaterial
std::string m_coolMaterial
cooling plate material name
Definition: TOPGeoColdPlate.h:112
Belle2::TOPPmtQE::m_CE_withB
float m_CE_withB
relative collection efficiency, with B field
Definition: TOPPmtQE.h:170
Belle2::TOPGeoModule::m_bar1
TOPGeoBarSegment m_bar1
bar segment 1 (forward bar)
Definition: TOPGeoModule.h:409
Belle2::TOPGeoFrontEnd::m_FBWidth
float m_FBWidth
front board width
Definition: TOPGeoFrontEnd.h:245
Belle2::TOPGeoPMTArrayDisplacement::getY
double getY() const
Returns translation in y.
Definition: TOPGeoPMTArrayDisplacement.h:64
Belle2::TOPGeoFrontEnd::m_HVWidth
float m_HVWidth
HV board width.
Definition: TOPGeoFrontEnd.h:252
Belle2::TOPCalModuleAlignment::m_errX
float m_errX[c_numModules]
error on the x displacement
Definition: TOPCalModuleAlignment.h:247
Belle2::TOPSignalShape::m_shape
std::vector< double > m_shape
waveform values
Definition: TOPSignalShape.h:141
Belle2::TOPGeoPrismEnclosure::m_backThickness
float m_backThickness
back wall thickness
Definition: TOPGeoPrismEnclosure.h:154
Belle2::TOPCalChannelT0::c_numChannels
@ c_numChannels
number of channels per module
Definition: TOPCalChannelT0.h:120
Belle2::TOPGeoFrontEnd::m_FBHeight
float m_FBHeight
front board height
Definition: TOPGeoFrontEnd.h:246
Belle2::TOPGeoPrism::getPeelOffCenter
double getPeelOffCenter(const PeelOffRegion &region) const
Returns peel-off offset in x of the given region.
Definition: TOPGeoPrism.h:181
Belle2::TOPGeoModuleDisplacement::getAlpha
double getAlpha() const
Returns rotation angle around x.
Definition: TOPGeoModuleDisplacement.h:85
Belle2::TOPASICGains::m_unit
unsigned short m_unit
unit of fixed point number
Definition: TOPASICGains.h:106
Belle2::TOPGeoModule::m_pmtArray
TOPGeoPMTArray m_pmtArray
geometry parameters of PMT array
Definition: TOPGeoModule.h:413
Belle2::TOPGeoSideRails::m_height
float m_height
height
Definition: TOPGeoSideRails.h:98
Belle2::TOPGeoModule::m_prism
TOPGeoPrism m_prism
prism
Definition: TOPGeoModule.h:412
Belle2::TOPGeoPMT::m_numColumns
unsigned m_numColumns
number of pixel columns
Definition: TOPGeoPMT.h:301
Belle2::TOPGeoPrism::m_peelOffRegions
std::vector< PeelOffRegion > m_peelOffRegions
peel-off regions
Definition: TOPGeoPrism.h:225
Belle2::TOPGeoBase::print
virtual void print(const std::string &title) const
Print the content of the class.
Definition: TOPGeoBase.cc:30
Belle2::TOPGeoHoneycombPanel::getMaxThickness
double getMaxThickness() const
Returns panel maximal thickness.
Definition: TOPGeoHoneycombPanel.h:96
Belle2::TOPGeoColdPlate::m_baseThickness
float m_baseThickness
base plate thickness
Definition: TOPGeoColdPlate.h:108
Belle2::TOPASICGains::c_WindowSize
@ c_WindowSize
number of samples
Definition: TOPASICGains.h:38
Belle2::TOPSignalShape::m_tau
double m_tau
time constant of the exponential tail [ns]
Definition: TOPSignalShape.h:144
Belle2::TOPGeoHoneycombPanel::getY
double getY() const
Returns y position of the flat surface in local (bar) frame.
Definition: TOPGeoHoneycombPanel.h:114
Belle2::TOPGeoQBB::m_prismEnclosure
TOPGeoPrismEnclosure m_prismEnclosure
prism enclosure
Definition: TOPGeoQBB.h:284
Belle2::TOPGeoFrontEnd::m_HVMaterial
std::string m_HVMaterial
HV board material.
Definition: TOPGeoFrontEnd.h:257
Belle2::TOPGeoModule::m_mirror
TOPGeoMirrorSegment m_mirror
mirror segment
Definition: TOPGeoModule.h:411
Belle2::TOPGeoPrism::getPeelOffSize
double getPeelOffSize() const
Returns cookie size in x (corresponding to 2x2 PMT)
Definition: TOPGeoPrism.h:156
Belle2::TOPFrontEndSetting::m_windowShifts
int m_windowShifts[6]
window shifts as a function of revo9count%6
Definition: TOPFrontEndSetting.h:135
Belle2::TOPWavelengthFilter::m_lambdaFirst
float m_lambdaFirst
wavelength of the first data point [nm]
Definition: TOPWavelengthFilter.h:95
Belle2::TOPNominalTTS::m_tts
std::vector< Gauss > m_tts
TTS distribution composed of a sum of Gaussians.
Definition: TOPNominalTTS.h:111
Belle2::TOPGeometry::isModuleIDValid
bool isModuleIDValid(int moduleID) const
Checks if module exists in m_modules.
Definition: TOPGeometry.cc:35
Belle2::TOPGeoHoneycombPanel::m_N
int m_N
number of flat surfaces to approximate curved surface
Definition: TOPGeoHoneycombPanel.h:160
Belle2::TOPGeoSideRails::m_material
std::string m_material
material name
Definition: TOPGeoSideRails.h:99
Belle2::TOPGeoPMTArray::setDecoupledPMT
void setDecoupledPMT(unsigned pmtID)
Sets PMT as optically decoupled.
Definition: TOPGeoPMTArray.h:76
Belle2::TOPGeoSideRails::getHeight
double getHeight() const
Returns height.
Definition: TOPGeoSideRails.h:74
Belle2::TOPCalAsicShift::c_numAsics
@ c_numAsics
number of ASIC's per module
Definition: TOPCalAsicShift.h:105
Belle2::TOPASICGains::m_gains
unsigned short m_gains[c_WindowSize]
gains (in fixed point format)
Definition: TOPASICGains.h:108
Belle2::TOPSignalShape::m_tmin
double m_tmin
time of the first waveform sample [ns]
Definition: TOPSignalShape.h:142
Belle2::TOPGeoPMTArrayDisplacement::getX
double getX() const
Returns translation in x.
Definition: TOPGeoPMTArrayDisplacement.h:58
Belle2::TOPGeoModule::m_moduleID
int m_moduleID
module ID
Definition: TOPGeoModule.h:403
Belle2::TOPWavelengthFilter::m_transmittances
std::vector< float > m_transmittances
bulk transmittance data points
Definition: TOPWavelengthFilter.h:97
Belle2::TOPPmtQE::m_CE_noB
float m_CE_noB
relative collection efficiency, without B field
Definition: TOPPmtQE.h:169
Belle2::TOPGeoBarSegment::getThickness
double getThickness() const
Returns bar segment thickness.
Definition: TOPGeoBarSegment.h:117
Belle2::TOPCalModuleAlignment::m_errZ
float m_errZ[c_numModules]
error on the z displacement
Definition: TOPCalModuleAlignment.h:249
Belle2::TOPGeoQBB::m_sideRails
TOPGeoSideRails m_sideRails
side rails
Definition: TOPGeoQBB.h:283
Belle2::TOPGeoQBB::m_outerPanel
TOPGeoHoneycombPanel m_outerPanel
outer honeycomb panel
Definition: TOPGeoQBB.h:282
Belle2::TOPGeoPrismEnclosure::m_height
float m_height
height up to the side rails
Definition: TOPGeoPrismEnclosure.h:150
Belle2::TOPGeoFrontEnd::m_BSHeight
float m_BSHeight
board stack height
Definition: TOPGeoFrontEnd.h:260