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

Classes

class  TOPAlignmentCollectorModule
 Collector for geometrical alignment of a TOP module with dimuons or Bhabhas. More...
 
class  TOPAsicShiftsBS13dCollectorModule
 Collector for carrier shifts of BS13d. More...
 
class  TOPChannelMaskCollectorModule
 Collector for preparing masks of hot and dead channels. More...
 
class  TOPCommonT0BFCollectorModule
 Collector for common T0 calibration with a fit of bunch finder residuals (method BF) More...
 
class  TOPCommonT0LLCollectorModule
 Collector for common T0 calibration with neg. More...
 
class  TOPModuleT0DeltaTCollectorModule
 Collector for module T0 calibration with chi2 minimization of time differences between slots (method DeltaT). More...
 
class  TOPModuleT0LLCollectorModule
 Collector for module T0 calibration with neg. More...
 
class  TOPPulseHeightCollectorModule
 Collector for channel pulse-height distributions. More...
 
class  OpticalGunModule
 Source of optical photons for the simulation of the TOP laser system. More...
 
class  TOPAlignerModule
 Alignment of TOP. More...
 
class  TOPBackgroundModule
 TOP backgound module. More...
 
class  TOPBunchFinderModule
 Bunch finder: searches for the bunch crossing where the interaction happened using track-based TOP likelihood. More...
 
class  TOPChannelMaskerModule
 Masks dead PMs from the reconstruction. More...
 
class  TOPChannelT0CalibratorModule
 A module for alternative channel T0 calibration with collision data Note: after this kind of calibration one cannot do the geometrical alignment This module can also be used to check the calibration. More...
 
class  TOPChannelT0MCModule
 TOP Channel T0 MC Extraction module (under development) More...
 
class  TOPCommonT0CalibratorModule
 A module for common T0 calibration with collision data (dimuons or bhabhas) More...
 
class  TOPCosmicT0FinderModule
 Event T0 finder for global cosmic runs. More...
 
class  TOPDigitizerModule
 TOP digitizer. More...
 
class  TOPTriggerDigitizerModule
 Digitizer that provides time stamps for TOP trigger. More...
 
class  TOPCalPulseGeneratorModule
 Generator of calibration pulses Output to TOPSimCalPulses. More...
 
class  TOPDoublePulseGeneratorModule
 Generator of double calibration pulses Output to TOPDigits. More...
 
class  TOPDQMModule
 TOP DQM histogrammer. More...
 
class  TOPGainEfficiencyCalculatorModule
 Module for channel-by-channel gain/efficiency analysis. More...
 
class  TOPLaserHitSelectorModule
 Module for pixel-by-pixel gain/efficiency analysis. More...
 
class  TOPGeometryParInitializerModule
 Class for initializing TOPGeometryPar. More...
 
class  TOPInterimFENtupleModule
 Module to produce ntuple from TOPDigits and TOPRawDigits. More...
 
class  TOPLaserCalibratorModule
 T0 Laser calibration module (under development) More...
 
class  TOPLaserCalibratorCollectorModule
 Collector module for the TOP channelT0 calibration and, more in general, for the time resolution studies using the laser and pulser data. More...
 
class  TOPMCTrackMakerModule
 Constructs Tracks and ExtHits from MCParticles and TOPBarHits Utility needed for testing and debugging of TOP reconstruction. More...
 
class  TOPModuleT0CalibratorModule
 A module for module T0 calibration with collision data (dimuons or bhabhas) Useful when the geometrical alignment need not to be repeated. More...
 
class  TOPNtupleModule
 Module to write out a ntuple summarizing TOP reconstruction output. More...
 
class  TOPPackerModule
 Raw data packer. More...
 
class  TOPPDFCheckerModule
 Module for checking analytic PDF used in likelihood calculation. More...
 
class  TOPPDFDebuggerModule
 TOP reconstruction module. More...
 
class  TOPRawDigitConverterModule
 TOPRawDigits to TOPDigits converter. More...
 
class  TOPReconstructorModule
 TOP reconstruction module. More...
 
class  TOPRingPlotterModule
 A module to plot the x-t images from TOP, and in general study the distribution of the digits associated to the particles in a particleList. More...
 
class  TOPTBCComparatorModule
 Module for the comparison of different sets of time base correction (TBC) constants and to produce monitoring plots out of a given set. More...
 
struct  Hit
 Structure to hold some of the calpulse data. More...
 
struct  TwoTimes
 Structure to hold calpulse raw times expressed in samples since sample 0 of window 0. More...
 
class  TOPTimeBaseCalibratorModule
 Time base calibrator. More...
 
class  TOPTimeRecalibratorModule
 Utility module for re-calibrating time of TOPDigits pulseWidth and timeError are not changed although they may depend no calibration! More...
 
class  TOPUnpackerModule
 Raw data unpacker. More...
 
class  TOPWaveformFeatureExtractorModule
 Waveform feature extractor: module adds rawDigits that are found in waveforms by feature extraction but are not already present in RawDigits. More...
 
class  TOPWaveformQualityPlotterModule
 Plots and histograms of waveforms and feature extracted parameters. More...
 
class  TOPXTalkChargeShareSetterModule
 Crosstalk & chargeshare flag setter. More...
 

Enumerations

enum  {
  c_NChannelPerAsic = 8,
  c_NModule = 16,
  c_NChannelPerPMT = 16,
  c_NChannelPerPMTRow = 4,
  c_NPMTPerRow = 16,
  c_NPMTPerModule = 32,
  c_NPixelPerRow = 64,
  c_NPixelPerModule = 512
}
 enum for maximum number of array elements (# of hits per event)
 

Functions

 TOPAlignmentCollectorModule ()
 Constructor.
 
virtual void prepare () final
 Replacement for initialize(). More...
 
virtual void collect () final
 Replacement for event(). More...
 
 TOPAsicShiftsBS13dCollectorModule ()
 Constructor.
 
virtual void prepare () final
 Replacement for initialize(). More...
 
virtual void collect () final
 Replacement for event(). More...
 
 TOPChannelMaskCollectorModule ()
 Constructor.
 
virtual void prepare () final
 Replacement for initialize(). More...
 
virtual void collect () final
 Replacement for event(). More...
 
 TOPCommonT0BFCollectorModule ()
 Constructor.
 
virtual void prepare () final
 Replacement for initialize(). More...
 
virtual void collect () final
 Replacement for event(). More...
 
 TOPCommonT0LLCollectorModule ()
 Constructor.
 
virtual void prepare () final
 Replacement for initialize(). More...
 
virtual void collect () final
 Replacement for event(). More...
 
 TOPModuleT0DeltaTCollectorModule ()
 Constructor.
 
virtual void prepare () final
 Replacement for initialize(). More...
 
virtual void collect () final
 Replacement for event(). More...
 
 TOPModuleT0LLCollectorModule ()
 Constructor.
 
virtual void prepare () final
 Replacement for initialize(). More...
 
virtual void collect () final
 Replacement for event(). More...
 
 TOPPulseHeightCollectorModule ()
 Constructor.
 
virtual void prepare () final
 Replacement for initialize(). More...
 
virtual void collect () final
 Replacement for event(). More...
 
 OpticalGunModule ()
 Constructor.
 
virtual ~OpticalGunModule ()
 Destructor.
 
virtual void initialize () override
 Initialize the Module. More...
 
virtual void beginRun () override
 Called when entering a new run. More...
 
virtual void event () override
 Event processor.
 
virtual void endRun () override
 End-of-run action. More...
 
virtual void terminate () override
 Termination action. More...
 
void printModuleParams () const
 Prints module parameters.
 
bool isInsideSlit (const TVector3 &point, const TVector3 &direction) const
 Checks if photon flies through the slit. More...
 
TVector3 getDirectionGaussian () const
 Return photon direction according to a projected 2D gaussian distribution based on numerical aperture NA.
 
TVector3 getDirectionUniform () const
 Return photon direction according to a projected uniform distribution with opening angle alpha. More...
 
TVector3 getDirectionLambertian () const
 Return photon direction according to a lambertian distribution with opening angle alpha.
 
TVector3 getDirectionCustom () const
 Return photon direction according to a a custom distribution of theta.
 
 TOPAlignerModule ()
 Constructor.
 
virtual ~TOPAlignerModule ()
 Destructor.
 
virtual void initialize () override
 Initialize the Module. More...
 
virtual void beginRun () override
 Called when entering a new run. More...
 
virtual void event () override
 Event processor.
 
virtual void endRun () override
 End-of-run action. More...
 
virtual void terminate () override
 Termination action. More...
 
bool selectTrack (const TOP::TOPtrack &trk)
 track selection More...
 
 TOPBackgroundModule ()
 Constructor.
 
virtual ~TOPBackgroundModule ()
 Destructor.
 
virtual void initialize () override
 Initialize the Module. More...
 
virtual void beginRun () override
 Called when entering a new run. More...
 
virtual void event () override
 Event processor. More...
 
void myprint (TH1F *histo, const char *path, const char *xtit, const char *ytit, double tresh)
 Print histogram 1D, helper function.
 
virtual void endRun () override
 End-of-run action. More...
 
virtual void terminate () override
 Termination action. More...
 
void printModuleParams () const
 Prints module parameters.
 
 TOPBunchFinderModule ()
 Constructor.
 
virtual void initialize () override
 Initialize the Module. More...
 
virtual void beginRun () override
 Called when entering a new run.
 
virtual void event () override
 Event processor.
 
virtual void terminate () override
 Termination action. More...
 
Const::ChargedStable getMostProbable (const Track &track)
 Returns most probable charged stable particle according to dEdx and predefined prior probabilities. More...
 
 TOPChannelMaskerModule ()
 Constructor: Sets the description of the module.
 
virtual void initialize () override
 initialize method: registers datastore objects (the TOP hits)
 
virtual void beginRun () override
 Called when entering a new run. More...
 
virtual void event () override
 event method: removes channels from the reconstruction pdf, flags hits from noisy channels as junk
 
 TOPChannelT0CalibratorModule ()
 Constructor.
 
virtual ~TOPChannelT0CalibratorModule ()
 Destructor.
 
virtual void initialize () override
 Initialize the Module. More...
 
virtual void beginRun () override
 Called when entering a new run. More...
 
virtual void event () override
 Event processor.
 
virtual void endRun () override
 End-of-run action. More...
 
virtual void terminate () override
 Termination action. More...
 
 TOPChannelT0MCModule ()
 Constructor.
 
virtual ~TOPChannelT0MCModule ()
 Destructor.
 
virtual void initialize () override
 Initialize the Module. More...
 
virtual void beginRun () override
 Called when entering a new run.
 
virtual void event () override
 Event processor.
 
virtual void endRun () override
 End-of-run action.
 
virtual void terminate () override
 Termination action. More...
 
 TOPCommonT0CalibratorModule ()
 Constructor.
 
virtual ~TOPCommonT0CalibratorModule ()
 Destructor.
 
virtual void initialize () override
 Initialize the Module. More...
 
virtual void beginRun () override
 Called when entering a new run. More...
 
virtual void event () override
 Event processor.
 
virtual void endRun () override
 End-of-run action. More...
 
virtual void terminate () override
 Termination action. More...
 
bool isRunningOffsetSubtracted ()
 Checks if running offset is subtracted in TOPDigits. More...
 
 TOPCosmicT0FinderModule ()
 Constructor.
 
virtual ~TOPCosmicT0FinderModule ()
 Destructor.
 
virtual void initialize () override
 Initialize the Module. More...
 
virtual void beginRun () override
 Called when entering a new run. More...
 
virtual void event () override
 Event processor.
 
virtual void endRun () override
 End-of-run action. More...
 
virtual void terminate () override
 Termination action. More...
 
 TOPDigitizerModule ()
 Constructor.
 
virtual void initialize () override
 Initialize the Module. More...
 
virtual void beginRun () override
 Called when entering a new run.
 
virtual void event () override
 Event processor.
 
TimeOffset getTimeOffset (double trgOffset, int moduleID, int pixelID)
 Returns a complete time offset by adding time mis-calibration to trgOffset. More...
 
double generatePulseHeight (int moduleID, int pixelID) const
 Generates and returns pulse height. More...
 
 TOPTriggerDigitizerModule ()
 Constructor.
 
virtual ~TOPTriggerDigitizerModule ()
 Destructor.
 
virtual void initialize () override
 Initialize the Module. More...
 
virtual void beginRun () override
 Called when entering a new run.
 
virtual void event () override
 Event processor.
 
virtual void endRun () override
 End-of-run action.
 
virtual void terminate () override
 Termination action. More...
 
 TOPCalPulseGeneratorModule ()
 Constructor.
 
virtual ~TOPCalPulseGeneratorModule ()
 Destructor.
 
virtual void initialize () override
 Initialize the Module. More...
 
virtual void beginRun () override
 Called when entering a new run. More...
 
virtual void event () override
 Event processor.
 
virtual void endRun () override
 End-of-run action. More...
 
virtual void terminate () override
 Termination action. More...
 
 TOPDoublePulseGeneratorModule ()
 Constructor.
 
virtual ~TOPDoublePulseGeneratorModule ()
 Destructor.
 
virtual void initialize () override
 Initialize the Module. More...
 
virtual void beginRun () override
 Called when entering a new run. More...
 
virtual void event () override
 Event processor.
 
virtual void endRun () override
 End-of-run action. More...
 
virtual void terminate () override
 Termination action. More...
 
void storeSampleTimes (std::string fileName)
 Optionally store sample times used by the generator as root histograms fileName root output file name.
 
void saveAsHistogram (const std::vector< double > &vec, const std::string &name, const std::string &title, const std::string &xTitle="", const std::string &yTitle="") const
 Save vector to histogram and write it out. More...
 
 TOPDQMModule ()
 Constructor.
 
virtual ~TOPDQMModule ()
 Destructor.
 
virtual void defineHisto () override
 Histogram definitions such as TH1(), TH2(), TNtuple(), TTree().... More...
 
virtual void initialize () override
 Initialize the Module. More...
 
virtual void beginRun () override
 Called when entering a new run. More...
 
virtual void event () override
 Event processor.
 
virtual void endRun () override
 End-of-run action. More...
 
virtual void terminate () override
 Termination action. More...
 
 TOPGainEfficiencyCalculatorModule ()
 Constructor.
 
virtual ~TOPGainEfficiencyCalculatorModule ()
 Destructor.
 
virtual void initialize () override
 Load time vs charge 2D histogram from a given input file (paramter "inputFile") and prepare hit timing and pulse charge distribution for each channel.
 
virtual void defineHisto () override
 Define TTree branches to store fit results for each channel This TTree is saved in an output file given by "histoFileName" parameter of "HistoManager" module.
 
virtual void beginRun () override
 The main processes, fitting charge distribution and calculating gain/efficiency, are done in this function.
 
virtual void event () override
 This will be empty as the all the processes are done in beginRun() function thus input file can be a dummy file.
 
virtual void endRun () override
 Draw plots to show fitting results for each channel and save them into a given PDF file (outputPDFFile).
 
virtual void terminate () override
 Termination action. More...
 
void LoadHistograms (const std::string &histotype)
 Load 2D histograms from a given input file (output of TOPLaserHitSelector) and create timing and charge distribution as projection histograms for the x- and y-axis, respectively. More...
 
void FitHistograms (EHistogramType LoadHisto)
 Fit charge (or integrated charged) distribution to calculate gain and efficiency for each channel.
 
void DummyFillBranch (EHistogramType LoadHisto)
 Fill Dummy for Branch. More...
 
void DrawResult (const std::string &histotype, EHistogramType LoadHisto)
 Draw results of gain/efficiency calculation for each channel to a given output file.
 
static double TOPGainFunc (double *var, double *par)
 Fit function of pulse charge (or charnge) distribution for channel(pixel)-by-channel gain extraction, given by "[0]*pow(x-[4],[1])*exp(-pow(x-[4],[2])/[3])" smeared by Gaussian with a constant sigma to consider baseline fluctuation.
 
static double FindPeakForSmallerXThan (TH1 *histo, double xmax=0)
 Find peak and return its position for a limited range of x (x smaller than the given value (xmax))
 
 TOPLaserHitSelectorModule ()
 Constructor.
 
virtual ~TOPLaserHitSelectorModule ()
 Destructor.
 
virtual void initialize () override
 Initialize the Module. More...
 
virtual void defineHisto () override
 create timing-height 2D histograms for all 8192 pixels
 
virtual void beginRun () override
 Called when entering a new run. More...
 
virtual void event () override
 Event processor.
 
virtual void endRun () override
 End-of-run action. More...
 
virtual void terminate () override
 Termination action. More...
 
 TOPGeometryParInitializerModule ()
 Constructor.
 
virtual void initialize () override
 Initialize the Module. More...
 
 TOPInterimFENtupleModule ()
 Constructor.
 
virtual ~TOPInterimFENtupleModule ()
 Destructor.
 
virtual void initialize () override
 Initialize the Module. More...
 
virtual void defineHisto () override
 Module funcions to define histograms.
 
virtual void beginRun () override
 Called when entering a new run. More...
 
virtual void event () override
 Event processor.
 
virtual void endRun () override
 End-of-run action. More...
 
virtual void terminate () override
 Termination action. More...
 
void getReferenceTiming ()
 Find reference timing. More...
 
 TOPLaserCalibratorModule ()
 Constructor.
 
virtual ~TOPLaserCalibratorModule ()
 Destructor.
 
virtual void initialize () override
 Initialize the Module. More...
 
virtual void beginRun () override
 Called when entering a new run. More...
 
virtual void event () override
 Event processor.
 
virtual void endRun () override
 End-of-run action. More...
 
virtual void terminate () override
 Termination action. More...
 
 TOPMCTrackMakerModule ()
 Constructor.
 
virtual ~TOPMCTrackMakerModule ()
 Destructor.
 
virtual void initialize () override
 Initialize the Module. More...
 
virtual void beginRun () override
 Called when entering a new run. More...
 
virtual void event () override
 Event processor.
 
virtual void endRun () override
 End-of-run action. More...
 
virtual void terminate () override
 Termination action. More...
 
 TOPModuleT0CalibratorModule ()
 Constructor.
 
virtual ~TOPModuleT0CalibratorModule ()
 Destructor.
 
virtual void initialize () override
 Initialize the Module. More...
 
virtual void beginRun () override
 Called when entering a new run. More...
 
virtual void event () override
 Event processor.
 
virtual void endRun () override
 End-of-run action. More...
 
virtual void terminate () override
 Termination action. More...
 
bool isRunningOffsetSubtracted ()
 Checks if running offset is subtracted in TOPDigits. More...
 
 TOPNtupleModule ()
 Constructor.
 
virtual ~TOPNtupleModule ()
 Destructor.
 
virtual void initialize () override
 Initialize the Module. More...
 
virtual void beginRun () override
 Called when entering a new run. More...
 
virtual void event () override
 Event processor.
 
virtual void endRun () override
 End-of-run action. More...
 
virtual void terminate () override
 Termination action. More...
 
 TOPPackerModule ()
 Constructor.
 
virtual ~TOPPackerModule ()
 Destructor.
 
virtual void initialize () override
 Initialize the Module. More...
 
virtual void beginRun () override
 Called when entering a new run. More...
 
virtual void event () override
 Event processor.
 
virtual void endRun () override
 End-of-run action. More...
 
virtual void terminate () override
 Termination action. More...
 
void packProductionDraft ()
 Pack in format: c_Draft (tentative production format) this format was never implemented in firmware!
 
void packType0Ver16 ()
 Pack in format: c_Type0Ver16 (Feature-extracted data) this format was never implemented in firmware!
 
void packProductionDebug ()
 Pack in format: Production Debugging Data Format 01.
 
 TOPPDFCheckerModule ()
 Constructor.
 
virtual ~TOPPDFCheckerModule ()
 Destructor.
 
virtual void defineHisto () override
 Histogram definitions such as TH1(), TH2(), TNtuple(), TTree().... More...
 
virtual void initialize () override
 Initialize the Module. More...
 
virtual void beginRun () override
 Called when entering a new run. More...
 
virtual void event () override
 Event processor.
 
virtual void endRun () override
 End-of-run action. More...
 
virtual void terminate () override
 Termination action. More...
 
bool isFromThisParticle (const TOPDigit &digit, const MCParticle *particle)
 Checks if digit comes from given MC particle.
 
 TOPPDFDebuggerModule ()
 Constructor.
 
virtual ~TOPPDFDebuggerModule ()
 Destructor.
 
virtual void initialize () override
 Initialize the Module. More...
 
virtual void beginRun () override
 Called when entering a new run. More...
 
virtual void event () override
 Event processor.
 
void associatePDFPeaks (const TOP::TOPreco &reco, int moduleID, int pdg)
 Associate PDF peaks with photons using S-plot technique.
 
virtual void endRun () override
 End-of-run action. More...
 
virtual void terminate () override
 Termination action. More...
 
 TOPRawDigitConverterModule ()
 Constructor.
 
virtual ~TOPRawDigitConverterModule ()
 Destructor.
 
virtual void initialize () override
 Initialize the Module. More...
 
virtual void beginRun () override
 Called when entering a new run. More...
 
virtual void event () override
 Event processor.
 
virtual void endRun () override
 End-of-run action. More...
 
virtual void terminate () override
 Termination action. More...
 
 TOPReconstructorModule ()
 Constructor.
 
virtual ~TOPReconstructorModule ()
 Destructor.
 
virtual void initialize () override
 Initialize the Module. More...
 
virtual void beginRun () override
 Called when entering a new run. More...
 
virtual void event () override
 Event processor.
 
virtual void endRun () override
 End-of-run action. More...
 
virtual void terminate () override
 Termination action. More...
 
 TOPTBCComparatorModule ()
 Constructor.
 
void defineHisto () override
 Defining the histograms. More...
 
int analyzeCalFile ()
 Analyzes the calibrations stored in the file m_calSetFile. More...
 
int makeComparisons ()
 Last function to be called, compared the histograms of different datasets filled by analyzeCalFile() Every new comparison histogram added to the module has to be filled here.
 
void initialize () override
 Initialize the module.
 
void beginRun () override
 Called when entering a new run.
 
void event () override
 Event processor.
 
void endRun () override
 End-of-run action. More...
 
void terminate () override
 Termination action. More...
 
int parseInputDirectoryLine (std::string)
 Utility function to get the directory name and the label from a line of the m_inputDirectoryList file Sets the values of m_calSetDirectory and m_calSetLabel.
 
int parseSlotAndScrodIDfromFileName (std::string)
 Utility function to parse the slot and BS id from the calibration file names.
 
TH1F * calculateHistoRatio (TH1F *, TH1F *, TH1F *)
 Utility function to take the ratio of two histograms using TH1::Divide(), without overwriting the output name and title initialized in defineHisto().
 
TH2F * calculateHistoRatio (TH2F *, TH2F *, TH2F *)
 Utility function to take the ratio of two histograms using TH2::Divide(), without overwriting the output name and title initialized in defineHisto().
 
 TOPTimeBaseCalibratorModule ()
 Constructor.
 
virtual ~TOPTimeBaseCalibratorModule ()
 Destructor.
 
virtual void initialize () override
 Initialize the Module. More...
 
virtual void beginRun () override
 Called when entering a new run. More...
 
virtual void event () override
 Event processor.
 
virtual void endRun () override
 End-of-run action. More...
 
virtual void terminate () override
 Termination action. More...
 
bool calibrateChannel (std::vector< TwoTimes > &ntuple, unsigned scrodID, unsigned scrodChannel, TH1F &Hchi2, TH1F &Hndf, TH1F &HDeltaT)
 calibrate single channel More...
 
bool matrixInversion (const std::vector< TwoTimes > &ntuple, unsigned scrodID, unsigned scrodChannel, double meanTimeDifference, TH1F &Hchi2, TH1F &Hndf, TH1F &HDeltaT)
 Method by matrix inversion. More...
 
bool iterativeTBC (const std::vector< TwoTimes > &ntuple, unsigned scrodID, unsigned scrodChannel, double meanTimeDifference, TH1F &Hchi2, TH1F &Hndf, TH1F &HDeltaT)
 Method by iteration of chi2 minimization. More...
 
void Iteration (const std::vector< TwoTimes > &ntuple, std::vector< double > &xval)
 Iteration function called by iterativeTBC() More...
 
double Chisq (const std::vector< TwoTimes > &ntuple, const std::vector< double > &xxval)
 Return the chisqure of one set of TBC constants (xval) in iTBC calculaton. More...
 
void saveAsHistogram (const std::vector< double > &vec, const std::string &name, const std::string &title, const std::string &xTitle="", const std::string &yTitle="") const
 Save vector to histogram and write it out. More...
 
void saveAsHistogram (const std::vector< double > &vec, const std::vector< double > &err, const std::string &name, const std::string &title, const std::string &xTitle="", const std::string &yTitle="") const
 Save vector and errors to histogram and write it out. More...
 
void saveAsHistogram (const TMatrixDSym &M, const std::string &name, const std::string &title) const
 Save matrix to histogram and write it out. More...
 
 TOPTimeRecalibratorModule ()
 Constructor.
 
virtual void initialize () override
 Initialize the Module. More...
 
virtual void beginRun () override
 Called when entering a new run. More...
 
virtual void event () override
 Event processor.
 
 TOPUnpackerModule ()
 Constructor.
 
virtual ~TOPUnpackerModule ()
 Destructor.
 
virtual void initialize () override
 Initialize the Module. More...
 
virtual void beginRun () override
 Called when entering a new run. More...
 
virtual void event () override
 Event processor.
 
void unpackProductionDraft (const int *buffer, int bufferSize)
 Unpack raw data given in a tentative production format (will vanish in future) More...
 
void unpackType0Ver16 (const int *buffer, int bufferSize)
 Unpack raw data given in feature-extraction production format. More...
 
bool unpackHeadersInterimFEVer01 (const int *buffer, int bufferSize, bool swapBytes)
 Tries to unpack raw data assuming it is in feature-extraction interim format. More...
 
int unpackInterimFEVer01 (const int *buffer, int bufferSize, bool pedestalSubtracted)
 Unpack raw data given in feature-extraction interim format. More...
 
int unpackProdDebug (const int *buffer, int bufferSize, TOP::RawDataType dataFormat, bool pedestalSubtracted)
 Unpack raw data given in production debugging format. More...
 
virtual void endRun () override
 End-of-run action. More...
 
virtual void terminate () override
 Termination action. More...
 
 TOPWaveformFeatureExtractorModule ()
 Constructor.
 
virtual ~TOPWaveformFeatureExtractorModule ()
 Destructor.
 
virtual void initialize () override
 Initialize the Module. More...
 
virtual void beginRun () override
 Called when entering a new run. More...
 
virtual void event () override
 Event processor.
 
virtual void endRun () override
 End-of-run action. More...
 
virtual void terminate () override
 Termination action. More...
 
 TOPWaveformQualityPlotterModule ()
 Constructor.
 
void defineHisto () override
 Books the empty histograms.
 
void initialize () override
 Module initialization, calls defineHisto and gets waveform.
 
void basicDebuggingPlots (const TOPRawWaveform &rawwave)
 Fills the debugging 1D histograms and hitmaps. More...
 
void drawWaveforms (const TOPRawWaveform &rawwave)
 Draws the full waveforms onto the TProfiles. More...
 
void event () override
 Event processor.
 
void endRun () override
 End-of-run action. More...
 

Detailed Description

Function Documentation

โ—† analyzeCalFile()

int analyzeCalFile ( )

Analyzes the calibrations stored in the file m_calSetFile.

This is the main function in which the analysis and the hisogram filling takes place. Every new monitoring histogram added to the module has to be filled here.

Definition at line 200 of file TOPTBCComparatorModule.cc.

201  {
202  // Here the histograms are filled
203  // WARNING! What root calls "RMS" is actually a standard deviation
204 
205  // Sanity check on the parsed parameters
206  if (m_slotID < 0 || m_boardstackID < 0 || m_scrodID < 0) {
207  B2WARNING("Negative slot, BS or scrod ID found while calling analyzeCalFile(). Looks like they have not been initialized, or that a function re-initialized them");
208  return 0;
209  }
210 
211  // Loop over all the histograms that should be found in the file
212  for (short iChannel = 0; iChannel < 128; iChannel++) {
213 
214  // Pics up one histogram just to check that the channel iChannel was actually used to calculate the calibrations
215  if (!m_calSetFile->Get(str(format("timeDiff_ch%1%") % (iChannel)).c_str())) {
216  continue;
217  }
218 
219 
220  // ---------
221  // 1) Define some channel numbering quantities
222  // Watchout: m_slotID is in [1..16] so slot m_slotID is on the element m_slotID-1 of the array
223  // ---------
224 
225  short hardwareChannel = iChannel + 128 * m_boardstackID; // 0-511 across the whole module, BS by BS
226  auto& chMapper = TOP::TOPGeometryPar::Instance()->getChannelMapper();
227  short pixelID = chMapper.getPixelID(hardwareChannel); // 1-512 across the whole module, in rows
228  short colNum = (pixelID - 1) % 64 + 1; // 1- 64 column ID (right to left looking from the quartz to the PMTs)
229  short rowNum = (pixelID - 1) / 64 + 1 ; // 1- 8 row ID (bottom to top looking from the quartz to the PMTs)
230  short globalChannel = hardwareChannel + 512 * (m_slotID -
231  1); // channel number across the whole detector, 0-8191. Used for cal monitorin only
232 
233 
234  // ---------
235  // 2) Channel-by-channel DeltaT summaries (average on the 256 samples of each set)
236  // ---------
237 
238  // Checks that the histogram needed here is not corrupted before using it
239  if (!m_calSetFile->Get(str(format("timeDiffcal_ch%1%") % (iChannel)).c_str())) {
240  B2WARNING("Error opening " << str(format("timeDiffcal_ch%1%") % (iChannel)));
241  } else {
242  TH2F* h_timeDiffcal = (TH2F*)m_calSetFile->Get(str(format("timeDiffcal_ch%1%") % (iChannel)).c_str());
243  TH1D* h_projection = h_timeDiffcal->ProjectionY("h_projection", 1, m_numSamples); // full projection
244 
245  m_slotAverageDeltaT[m_slotID - 1][m_calSetID]->SetBinContent(hardwareChannel + 1, h_projection->GetMean());
246  m_slotAverageDeltaT[m_slotID - 1][m_calSetID]->SetBinError(hardwareChannel + 1,
247  h_projection->GetMeanError()); // Do we trust root on this?
248  m_slotSigmaDeltaT[m_slotID - 1][m_calSetID]->SetBinContent(hardwareChannel + 1,
249  h_projection->GetRMS()); // WARNING! What root calls "RMS" is actually a standard deviation
250  m_slotSigmaDeltaT[m_slotID - 1][m_calSetID]->SetBinError(hardwareChannel + 1,
251  h_projection->GetRMSError()); // WARNING! What root calls "RMS" is actually a standard deviation
252 
253  m_slotAverageDeltaTMap[m_slotID - 1][m_calSetID]->SetBinContent(colNum, rowNum, h_projection->GetMean());
254  m_slotSigmaDeltaTMap[m_slotID - 1][m_calSetID]->SetBinContent(colNum, rowNum,
255  h_projection->GetRMS());
256 
257  m_topAverageDeltaT[m_calSetID]->SetBinContent(globalChannel + 1, h_projection->GetMean());
258  m_topSigmaDeltaT[m_calSetID]->SetBinContent(globalChannel + 1, h_projection->GetRMS());
259  }
260 
261  // ---------
262  // 3) Channel-by-channel average occupancy
263  // ---------
264 
265  // Checks that the histogram needed here is not corrupted before using it
266  if (!m_calSetFile->Get(str(format("sampleOccup_ch%1%") % (iChannel)).c_str())) {
267  B2WARNING("Error opening " << str(format("sampleOccup_ch%1%") % (iChannel)));
268  } else {
269  TH1F* h_sampleOccup = (TH1F*)m_calSetFile->Get(str(format("sampleOccup_ch%1%") % (iChannel)).c_str());
270 
271  // reads the occupancy histogram bin-by-by to look for (almost) empty samples
272  int nEmpty = 0;
273  for (int iSample = 1; iSample < m_numSamples + 1 ; iSample++) {
274  if (h_sampleOccup->GetBinContent(iSample) < m_minCalPulses) nEmpty++;
275  }
276 
277  m_slotSampleOccupancy[m_slotID - 1][m_calSetID]->SetBinContent(hardwareChannel + 1, h_sampleOccup->Integral() / m_numSamples);
278  m_slotEmptySamples[m_slotID - 1][m_calSetID]->SetBinContent(hardwareChannel + 1, nEmpty);
279 
280  m_slotSampleOccupancyMap[m_slotID - 1][m_calSetID]->SetBinContent(colNum, rowNum, h_sampleOccup->Integral() / m_numSamples);
281  m_slotEmptySamplesMap[m_slotID - 1][m_calSetID]->SetBinContent(colNum, rowNum, nEmpty);
282 
283  m_topSampleOccupancy[m_calSetID]->SetBinContent(globalChannel + 1, h_sampleOccup->Integral() / m_numSamples);
284 
285  }
286 
287 
288 
289  }
290  return 1;
291  }

โ—† basicDebuggingPlots()

void basicDebuggingPlots ( const TOPRawWaveform rawwave)

Fills the debugging 1D histograms and hitmaps.

Parameters
rawwavethe raw waveform

Definition at line 75 of file TOPWaveformQualityPlotterModule.cc.

76  {
77  int scrodid = v.getScrodID();
78  int asicid = v.getASICNumber();
79  int channelid = v.getASICChannel();
80  int carrierid = v.getCarrierNumber();
81  m_scrod_id->Fill(scrodid);
82  m_asic_ch->Fill(channelid);
83  m_asic->Fill(asicid);
84  m_carrier->Fill(carrierid);
85  m_asic_win->Fill(v.getStorageWindow());
86  m_entries->Fill(v.getWaveform().size());
87  m_moduleID->Fill(v.getModuleID());
88  m_pixelID->Fill(v.getPixelID());
89 
90  if (m_hitmap.find(scrodid) == m_hitmap.end()) { // cppcheck-suppress stlFindInsert
91  m_hitmap[scrodid] = new TH2F((string("scrod ") + to_string(scrodid) + string("Hitmap")).c_str(),
92  (string("scrod ") + to_string(scrodid) + string("carrier vs. asic;asic;carrier")).c_str(), 4, 0, 4, 4, 0, 4);
93  }
94  m_hitmap[scrodid]->Fill(asicid, carrierid);
95  const vector<short>& waveform = v.getWaveform();
96  if (waveform.empty()) {
97  return;
98  }
99  for (short adc : waveform) {
100  m_samples->Fill(adc);
101  }
102  }

โ—† beginRun() [1/25]

void beginRun ( )
overridevirtual

Called when entering a new run.

Set run dependent things like run header parameters, alignment, etc.

Reimplemented from Module.

Definition at line 81 of file TOPLaserCalibratorModule.cc.

82  {
83  }

โ—† beginRun() [2/25]

void beginRun ( )
overridevirtual

Called when entering a new run.

Set run dependent things like run header parameters, alignment, etc.

Reimplemented from Module.

Definition at line 113 of file TOPCosmicT0FinderModule.cc.

114  {
115  }

โ—† beginRun() [3/25]

void beginRun ( )
overridevirtual

Called when entering a new run.

Set run dependent things like run header parameters, alignment, etc.

Reimplemented from HistoModule.

Definition at line 154 of file TOPInterimFENtupleModule.cc.

155  {
156  }

โ—† beginRun() [4/25]

void beginRun ( )
overridevirtual

Called when entering a new run.

Set run dependent things like run header parameters, alignment, etc.

Reimplemented from Module.

Definition at line 90 of file TOPMCTrackMakerModule.cc.

91  {
92  }

โ—† beginRun() [5/25]

void beginRun ( )
overridevirtual

Called when entering a new run.

Set run dependent things like run header parameters, alignment, etc.

Reimplemented from Module.

Definition at line 80 of file TOPWaveformFeatureExtractorModule.cc.

81  {
82  }

โ—† beginRun() [6/25]

void beginRun ( )
overridevirtual

Called when entering a new run.

Set run dependent things like run header parameters, alignment, etc.

Reimplemented from Module.

Definition at line 119 of file TOPNtupleModule.cc.

120  {
121  }

โ—† beginRun() [7/25]

void beginRun ( )
overridevirtual

Called when entering a new run.

Set run dependent things like run header parameters, alignment, etc.

Reimplemented from Module.

Definition at line 99 of file TOPPackerModule.cc.

100  {
101  }

โ—† beginRun() [8/25]

void beginRun ( )
overridevirtual

Called when entering a new run.

Set run dependent things like run header parameters, alignment, etc.

Reimplemented from Module.

Definition at line 103 of file TOPCalPulseGeneratorModule.cc.

104  {
105  }

โ—† beginRun() [9/25]

void beginRun ( )
overridevirtual

Called when entering a new run.

Set run dependent things like run header parameters, alignment, etc.

Reimplemented from Module.

Definition at line 148 of file TOPDoublePulseGeneratorModule.cc.

149  {
150  StoreObjPtr<EventMetaData> evtMetaData;
151  if (m_useDatabase) {
152  if (!(*m_timebase).isValid()) {
153  B2FATAL("Sample time calibration requested but not available for run "
154  << evtMetaData->getRun()
155  << " of experiment " << evtMetaData->getExperiment());
156  }
157  }
158 
159  }

โ—† beginRun() [10/25]

void beginRun ( )
overridevirtual

Called when entering a new run.

Set run dependent things like run header parameters, alignment, etc.

Reimplemented from Module.

Definition at line 85 of file TOPTimeRecalibratorModule.cc.

86  {
87  StoreObjPtr<EventMetaData> evtMetaData;
88 
89  // check if calibrations are available when needed - if not, terminate
90 
92  if (not m_timebase.isValid()) {
93  B2FATAL("Sample time calibration requested but not available for run "
94  << evtMetaData->getRun()
95  << " of experiment " << evtMetaData->getExperiment());
96  }
97  }
99  if (not m_channelT0.isValid()) {
100  B2FATAL("Channel T0 calibration requested but not available for run "
101  << evtMetaData->getRun()
102  << " of experiment " << evtMetaData->getExperiment());
103  }
104  }
106  if (not m_asicShift.isValid()) {
107  B2FATAL("ASIC shifts calibration requested but not available for run "
108  << evtMetaData->getRun()
109  << " of experiment " << evtMetaData->getExperiment());
110  }
111  }
113  if (not m_moduleT0.isValid()) {
114  B2FATAL("Module T0 calibration requested but not available for run "
115  << evtMetaData->getRun()
116  << " of experiment " << evtMetaData->getExperiment());
117  }
118  }
120  if (not m_commonT0.isValid()) {
121  B2FATAL("Common T0 calibration requested but not available for run "
122  << evtMetaData->getRun()
123  << " of experiment " << evtMetaData->getExperiment());
124  }
125  }
127  if (not m_timeWalk.isValid()) {
128  // B2FATAL("Time-walk calibration requested but not available for run "
129  B2WARNING("Time-walk calibration is not available for run "
130  << evtMetaData->getRun()
131  << " of experiment " << evtMetaData->getExperiment());
132  }
133  }
134 
135  if (not m_feSetting.isValid()) {
136  B2FATAL("Front-end settings are not available for run "
137  << evtMetaData->getRun()
138  << " of experiment " << evtMetaData->getExperiment());
139  }
140 
141  }

โ—† beginRun() [11/25]

void beginRun ( )
overridevirtual

Called when entering a new run.

Set run dependent things like run header parameters, alignment, etc.

Reimplemented from Module.

Definition at line 193 of file TOPBackgroundModule.cc.

194  {
195  // Print run number
196  B2INFO("TOPBackground: Processing:");
197 
198  }

โ—† beginRun() [12/25]

void beginRun ( )
overridevirtual

Called when entering a new run.

Set run dependent things like run header parameters, alignment, etc.

Reimplemented from Module.

Definition at line 149 of file TOPPDFDebuggerModule.cc.

150  {
151  }

โ—† beginRun() [13/25]

void beginRun ( )
overridevirtual

Called when entering a new run.

Set run dependent things like run header parameters, alignment, etc.

Reimplemented from HistoModule.

Definition at line 133 of file TOPPDFCheckerModule.cc.

134  {
135  }

โ—† beginRun() [14/25]

void beginRun ( )
overridevirtual

Called when entering a new run.

Set run dependent things like run header parameters, alignment, etc.

Reimplemented from Module.

Definition at line 189 of file TOPAlignerModule.cc.

190  {
191  }

โ—† beginRun() [15/25]

void beginRun ( )
overridevirtual

Called when entering a new run.

Set run dependent things like run header parameters, alignment, etc.

Reimplemented from Module.

Definition at line 63 of file TOPChannelMaskerModule.cc.

64  {
65 
66  if (not m_channelMask.isValid()) {
67  B2FATAL("channel mask not available");
68  }
69  if (not m_channelT0.isValid()) {
70  B2FATAL("channel T0 calibration not available");
71  }
72  if (not m_timebase.isValid()) {
73  B2FATAL("timebase calibration not available");
74  }
75 
76  }

โ—† beginRun() [16/25]

void beginRun ( )
overridevirtual

Called when entering a new run.

Set run dependent things like run header parameters, alignment, etc.

Reimplemented from Module.

Definition at line 128 of file TOPReconstructorModule.cc.

129  {
130  }

โ—† beginRun() [17/25]

void beginRun ( )
overridevirtual

Called when entering a new run.

Set run dependent things like run header parameters, alignment, etc.

Reimplemented from Module.

Definition at line 132 of file TOPRawDigitConverterModule.cc.

133  {
134 
135  StoreObjPtr<EventMetaData> evtMetaData;
136 
137  // check if calibrations are available when needed - if not, terminate
138 
140  if (not m_timebase.isValid()) {
141  B2FATAL("Sample time calibration requested but not available for run "
142  << evtMetaData->getRun()
143  << " of experiment " << evtMetaData->getExperiment());
144  }
145  }
147  if (not m_channelT0.isValid()) {
148  B2FATAL("Channel T0 calibration requested but not available for run "
149  << evtMetaData->getRun()
150  << " of experiment " << evtMetaData->getExperiment());
151  }
152  }
154  if (not m_asicShift.isValid()) {
155  B2FATAL("ASIC shifts calibration requested but not available for run "
156  << evtMetaData->getRun()
157  << " of experiment " << evtMetaData->getExperiment());
158  }
159  }
161  if (not m_moduleT0.isValid()) {
162  B2FATAL("Module T0 calibration requested but not available for run "
163  << evtMetaData->getRun()
164  << " of experiment " << evtMetaData->getExperiment());
165  }
166  }
168  if (not m_commonT0.isValid()) {
169  B2FATAL("Common T0 calibration requested but not available for run "
170  << evtMetaData->getRun()
171  << " of experiment " << evtMetaData->getExperiment());
172  }
173  }
174  if (not m_timeWalk.isValid()) {
175  // B2FATAL("Time-walk calibration is not available for run "
176  B2WARNING("Time-walk calibration is not available for run "
177  << evtMetaData->getRun()
178  << " of experiment " << evtMetaData->getExperiment());
179  }
180  if (m_pedestalRMS > 0 and not m_noises.isValid()) {
181  B2FATAL("Channel noise levels are not available for run "
182  << evtMetaData->getRun()
183  << " of experiment " << evtMetaData->getExperiment());
184  }
185 
186  if (not m_feSetting.isValid()) {
187  B2FATAL("Front-end settings are not available for run "
188  << evtMetaData->getRun()
189  << " of experiment " << evtMetaData->getExperiment());
190  }
191 
192  }

โ—† beginRun() [18/25]

void beginRun ( )
overridevirtual

Called when entering a new run.

Set run dependent things like run header parameters, alignment, etc.

Reimplemented from Module.

Definition at line 199 of file TOPChannelT0CalibratorModule.cc.

200  {
201  }

โ—† beginRun() [19/25]

void beginRun ( )
overridevirtual

Called when entering a new run.

Set run dependent things like run header parameters, alignment, etc.

Reimplemented from Module.

Definition at line 183 of file TOPCommonT0CalibratorModule.cc.

184  {
185  }

โ—† beginRun() [20/25]

void beginRun ( )
overridevirtual

Called when entering a new run.

Set run dependent things like run header parameters, alignment, etc.

Reimplemented from Module.

Definition at line 184 of file TOPModuleT0CalibratorModule.cc.

185  {
186  if (m_moduleT0.hasChanged()) {
187  StoreObjPtr<EventMetaData> evtMetaData;
188  B2WARNING("ModuleT0 payload has changed. Calibration results may not be correct."
189  << LogVar("run", evtMetaData->getRun()));
190  }
191  }

โ—† beginRun() [21/25]

void beginRun ( )
overridevirtual

Called when entering a new run.

Set run dependent things like run header parameters, alignment, etc.

Reimplemented from HistoModule.

Definition at line 152 of file TOPLaserHitSelectorModule.cc.

153  {
154  }

โ—† beginRun() [22/25]

void beginRun ( )
overridevirtual

Called when entering a new run.

Set run dependent things like run header parameters, alignment, etc.

Reimplemented from HistoModule.

Definition at line 372 of file TOPDQMModule.cc.

373  {
374  m_BoolEvtMonitor->Reset();
375 
376  m_recoTimeDiff->Reset();
377  m_recoTimeDiff_Phic->Reset();
378  m_recoPull->Reset();
379  m_recoPull_Phic->Reset();
380  m_recoTime->Reset();
381  m_recoTimeBg->Reset();
382  m_recoTimeMinT0->Reset();
383 
384  m_goodHits->Reset();
385  m_badHits->Reset();
386  m_window_vs_slot->Reset();
387  m_bunchOffset->Reset();
388  m_time->Reset();
389  m_goodTDCAll->Reset();
390  m_badTDCAll->Reset();
391  m_goodHitsPerEventProf->Reset();
392  m_goodHitsPerEventAll->Reset();
393  m_badHitsPerEventProf->Reset();
394  m_badHitsPerEventAll->Reset();
395  m_TOPOccAfterInjLER->Reset();
396  m_TOPOccAfterInjHER->Reset();
397  m_TOPEOccAfterInjLER->Reset();
398  m_TOPEOccAfterInjHER->Reset();
399 
400  for (int i = 0; i < m_numModules; i++) {
401  m_window_vs_asic[i]->Reset();
402  m_goodHitsXY[i]->Reset();
403  m_badHitsXY[i]->Reset();
404  m_goodHitsAsics[i]->Reset();
405  m_badHitsAsics[i]->Reset();
406  m_goodTdc[i]->Reset();
407  m_badTdc[i]->Reset();
408  m_goodTiming[i]->Reset();
409  m_goodChannelHits[i]->Reset();
410  m_badChannelHits[i]->Reset();
411  m_goodHitsPerEvent[i]->Reset();
412  m_badHitsPerEvent[i]->Reset();
413  m_goodHitsXYTrack[i]->Reset();
414  m_goodHitsXYTrackBkg[i]->Reset();
415  }
416  }

โ—† beginRun() [23/25]

void beginRun ( )
overridevirtual

Called when entering a new run.

Set run dependent things like run header parameters, alignment, etc.

Reimplemented from Module.

Definition at line 170 of file OpticalGunModule.cc.

171  {
172  }

โ—† beginRun() [24/25]

void beginRun ( )
overridevirtual

Called when entering a new run.

Set run dependent things like run header parameters, alignment, etc.

Reimplemented from Module.

Definition at line 142 of file TOPTimeBaseCalibratorModule.cc.

143  {
144  }

โ—† beginRun() [25/25]

void beginRun ( )
overridevirtual

Called when entering a new run.

Set run dependent things like run header parameters, alignment, etc.

Reimplemented from Module.

Definition at line 109 of file TOPUnpackerModule.cc.

110  {
111  m_channelStatistics.clear();
112  }

โ—† calibrateChannel()

bool calibrateChannel ( std::vector< TwoTimes > &  ntuple,
unsigned  scrodID,
unsigned  scrodChannel,
TH1F &  Hchi2,
TH1F &  Hndf,
TH1F &  HDeltaT 
)
private

calibrate single channel

Parameters
ntuplentuple data
scrodIDSCROD ID
scrodChannelchannel number within SCROD (0 - 127)
Hchi2histogram to store normalized chi^2
Hndfhistogram to store degrees of freedom
HDeltaThistogram to store fittet double pulse delay
Returns
true on success

Definition at line 310 of file TOPTimeBaseCalibratorModule.cc.

โ—† Chisq()

double Chisq ( const std::vector< TwoTimes > &  ntuple,
const std::vector< double > &  xxval 
)
private

Return the chisqure of one set of TBC constants (xval) in iTBC calculaton.

Parameters
ntuplentuple data
xxvalTBC constants of 256 samples, and xxval[0]=0, xxval[256]=2*FTSW

Definition at line 666 of file TOPTimeBaseCalibratorModule.cc.

โ—† collect() [1/8]

void collect ( )
finalprivatevirtual

Replacement for event().

Fill your calibration data objects here.

Reimplemented from CalibrationCollectorModule.

Definition at line 93 of file TOPAsicShiftsBS13dCollectorModule.cc.

94  {
95 
96  if (m_requireRecBunch) {
97  if (not m_recBunch.isValid()) return;
98  if (not m_recBunch->isReconstructed()) return;
99  }
100 
101  auto time_vs_BS = getObjectPtr<TH2F>("time_vs_BS");
102  auto timeReference = getObjectPtr<TH1F>("time_reference");
103  std::vector<TH1F*> timeCarriers;
104  for (unsigned i = 0; i < 4; i++) {
105  string name = "time_carr_" + to_string(i);
106  auto h = getObjectPtr<TH1F>(name);
107  timeCarriers.push_back(h);
108  }
109 
110  for (const auto& digit : m_topDigits) {
111  if (digit.getModuleID() != 13) continue;
112  if (digit.getHitQuality() != TOPDigit::c_Good) continue;
113  double time = digit.getTime() - m_timeOffset;
114  time_vs_BS->Fill(digit.getChannel(), time);
115  if (digit.getBoardstackNumber() < 3) {
116  timeReference->Fill(time);
117  } else {
118  auto c = digit.getCarrierNumber();
119  timeCarriers[c]->Fill(time);
120  }
121  }
122 
123  }

โ—† collect() [2/8]

void collect ( )
finalprivatevirtual

Replacement for event().

Fill your calibration data objects here

Reimplemented from CalibrationCollectorModule.

Definition at line 70 of file TOPCommonT0BFCollectorModule.cc.

71  {
72 
73  if (not m_recBunch.isValid()) return;
74  if (not m_recBunch->isReconstructed()) return;
75  if (m_recBunch->getNumTracks() != 2) return;
76 
77  auto h1a = getObjectPtr<TH1F>("offset_a");
78  auto h1b = getObjectPtr<TH1F>("offset_b");
79  auto offset = m_recBunch->getCurrentOffset();
80  if (m_commonT0->isCalibrated()) offset += m_commonT0->getT0();
81 
82  // wrap-around into [-1/2, 1/2] of bunch cycle
83  auto a = offset - round(offset / m_bunchTimeSep) * m_bunchTimeSep;
84  h1a->Fill(a);
85 
86  // wrap-around into [0, 1] of bunch cycle
87  auto b = offset - round(offset / m_bunchTimeSep - 0.5) * m_bunchTimeSep;
88  h1b->Fill(b);
89 
90  }

โ—† collect() [3/8]

void collect ( )
finalprivatevirtual

Replacement for event().

Fill your calibration data objects here

Reimplemented from CalibrationCollectorModule.

Definition at line 72 of file TOPChannelMaskCollectorModule.cc.

73  {
74 
75  std::vector<TH1F*> slots;
76  for (const auto& name : m_names) {
77  auto h = getObjectPtr<TH1F>(name);
78  slots.push_back(h);
79  }
80 
81  std::vector<TH2F*> asics;
82  for (const auto& name : m_asicNames) {
83  auto h = getObjectPtr<TH2F>(name);
84  asics.push_back(h);
85  }
86 
87  int NGood = 0;
88  for (const auto& digit : m_digits) {
89  if (digit.getHitQuality() == TOPDigit::c_Junk) continue;
90  NGood++;
91  unsigned m = digit.getModuleID() - 1;
92  if (m < slots.size()) slots[m]->Fill(digit.getChannel());
93  if (m < asics.size()) asics[m]->Fill(digit.getChannel() / 8, digit.getRawTime() / 64 + 220);
94  }
95 
96  auto h = getObjectPtr<TH1F>("nhits");
97  h->Fill(NGood);
98 
99  }

โ—† collect() [4/8]

void collect ( )
finalprivatevirtual

Replacement for event().

Fill your calibration data objects here

Reimplemented from CalibrationCollectorModule.

Definition at line 92 of file TOPPulseHeightCollectorModule.cc.

93  {
94 
95  std::vector<TH2F*> slots;
96  for (const auto& name : m_names) {
97  auto h = getObjectPtr<TH2F>(name);
98  slots.push_back(h);
99  }
100 
101  auto h1a = getObjectPtr<TH1F>("time");
102  auto h1b = getObjectPtr<TH1F>("time_sel");
103  auto h2a = getObjectPtr<TH2F>("ph_vs_width");
104  auto h2b = getObjectPtr<TH2F>("ph_vs_width_sel");
105 
106  for (const auto& digit : m_digits) {
107  if (digit.getHitQuality() != TOPDigit::c_Good) continue;
108  auto t = digit.getTime();
109  auto w = digit.getPulseWidth();
110  auto ph = digit.getPulseHeight();
111  h1a->Fill(t);
112  h2a->Fill(w, ph);
113  if (m_widthWindow.size() == 2) {
114  if (w < m_widthWindow[0] or w > m_widthWindow[1]) continue;
115  }
116  if (m_timeWindow.size() == 2) {
117  if (t < m_timeWindow[0] or t > m_timeWindow[1]) continue;
118  }
119  h1b->Fill(t);
120  h2b->Fill(w, ph);
121  unsigned m = digit.getModuleID() - 1;
122  if (m < slots.size()) slots[m]->Fill(digit.getChannel(), ph);
123  }
124 
125  }

โ—† collect() [5/8]

void collect ( )
finalprivatevirtual

Replacement for event().

Fill your calibration data objects here

Reimplemented from CalibrationCollectorModule.

Definition at line 80 of file TOPModuleT0DeltaTCollectorModule.cc.

81  {
82 
83  if (m_timeZeros.getEntries() != 2) return;
84 
85  const auto* timeZero1 = m_timeZeros[0];
86  const auto* timeZero2 = m_timeZeros[1];
87  if (timeZero1->getModuleID() > timeZero2->getModuleID()) {
88  timeZero1 = m_timeZeros[1];
89  timeZero2 = m_timeZeros[0];
90  }
91 
92  int slot1 = timeZero1->getModuleID();
93  int slot2 = timeZero2->getModuleID();
94  if (slot1 > 9 or slot2 - slot1 < 7 or slot2 - slot1 > 9) return;
95  string name = "deltaT0_" + to_string(slot1) + "-" + to_string(slot2);
96  auto h = getObjectPtr<TH1F>(name);
97  if (not h) return;
98 
99  double t1 = timeZero1->getTime();
100  if (m_moduleT0->isCalibrated(slot1)) t1 += m_moduleT0->getT0(slot1);
101  double t2 = timeZero2->getTime();
102  if (m_moduleT0->isCalibrated(slot2)) t2 += m_moduleT0->getT0(slot2);
103  h->Fill(t1 - t2);
104 
105  auto slotPairs = getObjectPtr<TH2F>("slots");
106  slotPairs->Fill(slot1, slot2);
107  }

โ—† collect() [6/8]

void collect ( )
finalprivatevirtual

Replacement for event().

Fill your calibration data objects here

Reimplemented from CalibrationCollectorModule.

Definition at line 158 of file TOPCommonT0LLCollectorModule.cc.

159  {
160  // bunch must be reconstructed
161 
162  if (not m_recBunch.isValid()) return;
163  if (not m_recBunch->isReconstructed()) return;
164 
165  // create reconstruction object and set various options
166 
167  int Nhyp = 1;
168  double mass = m_selector.getChargedStable().getMass();
169  int pdg = m_selector.getChargedStable().getPDGCode();
170  TOPreco reco(Nhyp, &mass, &pdg, m_minBkgPerBar, m_scaleN0);
171  reco.setPDFoption(m_PDFOption);
172  const auto& tdc = TOPGeometryPar::Instance()->getGeometry()->getNominalTDC();
173  double timeMin = tdc.getTimeMin();
174  double timeMax = tdc.getTimeMax();
175 
176  // add photon hits to reconstruction object with time corrected-back for common T0
177 
178  double T0 = 0;
179  if (m_commonT0->isCalibrated()) T0 = m_commonT0->getT0();
180  for (const auto& digit : m_digits) {
181  if (digit.getHitQuality() == TOPDigit::c_Good) {
182  double t = digit.getTime();
183  if (digit.isCommonT0Calibrated()) t += T0;
184  if (digit.hasStatus(TOPDigit::c_BunchOffsetSubtracted)) {
185  t += m_recBunch->getAverageOffset();
186  }
187  reco.addData(digit.getModuleID(), digit.getPixelID(), t, digit.getTimeError());
188  }
189  }
190 
191  // loop over reconstructed tracks, make a selection and accumulate log likelihoods
192 
193  int ntra = 0;
194  for (const auto& track : m_tracks) {
195 
196  // track selection
197  TOPtrack trk(&track);
198  if (not trk.isValid()) continue;
199 
200  if (not m_selector.isSelected(trk)) continue;
201 
202  // run reconstruction
203  reco.reconstruct(trk);
204  if (reco.getFlag() != 1) continue; // track is not in the acceptance of TOP
205 
206  // minimization procedure: accumulate
207  int sub = gRandom->Integer(c_numSets); // generate sub-sample number
208  auto h = getObjectPtr<TH1D>(m_names[sub]);
209  for (int ibin = 0; ibin < h->GetNbinsX(); ibin++) {
210  double t0 = h->GetBinCenter(ibin + 1);
211  double chi = h->GetBinContent(ibin + 1);
212  chi += -2 * reco.getLogL(t0, timeMin, timeMax, m_sigmaSmear);
213  h->SetBinContent(ibin + 1, chi);
214  }
215  auto h1 = getObjectPtr<TH1F>("tracks_per_set");
216  h1->Fill(sub);
217 
218  // fill histograms of hits
219  auto h2 = getObjectPtr<TH1F>("numHits");
220  auto h3 = getObjectPtr<TH2F>("timeHits");
221  for (const auto& digit : m_digits) {
222  if (digit.getHitQuality() != TOPDigit::c_Good) continue;
223  if (digit.getModuleID() != trk.getModuleID()) continue;
224  if (digit.getTime() < timeMin) continue;
225  if (digit.getTime() > timeMax) continue;
226  h2->Fill(digit.getModuleID());
227  int bs = digit.getBoardstackNumber();
228  h3->Fill((digit.getModuleID() * 4 + bs - 1.5) / 4.0 , digit.getTime());
229  }
230  ntra++;
231  }
232 
233  // fill just another control histogram
234 
235  if (ntra > 0) {
236  auto h4 = getObjectPtr<TH1F>("offset");
237  h4->Fill(m_recBunch->getCurrentOffset());
238  }
239 
240  }

โ—† collect() [7/8]

void collect ( )
finalprivatevirtual

Replacement for event().

Fill your calibration data objects here

Reimplemented from CalibrationCollectorModule.

Definition at line 237 of file TOPAlignmentCollectorModule.cc.

238  {
239  // bunch must be reconstructed
240 
241  if (not m_recBunch.isValid()) return;
242  if (not m_recBunch->isReconstructed()) return;
243 
244  // add photons
245 
247 
248  for (const auto& digit : m_digits) {
249  if (digit.getHitQuality() == TOPDigit::c_Good)
250  TOPalign::addData(digit.getModuleID(), digit.getPixelID(), digit.getTime(),
251  digit.getTimeError());
252  }
253 
255 
256  // track-by-track iterations
257 
258  for (const auto& track : m_tracks) {
259 
260  // construct TOPtrack from mdst track
261  TOPtrack trk(&track);
262  if (not trk.isValid()) continue;
263 
264  // skip if track not hitting target module
265  if (trk.getModuleID() != m_targetMid) continue;
266 
267  // track selection
268  if (not m_selector.isSelected(trk)) continue;
269 
270  // generate sub-sample number
271  int sub = gRandom->Integer(c_numSets);
272  auto& align = m_align[sub];
273  auto& countFails = m_countFails[sub];
274  const auto& name = m_treeNames[sub];
275  auto h1 = getObjectPtr<TH2F>("tracks_per_slot");
276  h1->Fill(trk.getModuleID(), sub);
277 
278  // do an iteration
279  int err = align.iterate(trk, m_selector.getChargedStable());
280  m_iter++;
281 
282  // check number of consecutive failures, and in case reset
283  if (err == 0) {
284  countFails = 0;
285  } else if (countFails <= m_maxFails) {
286  countFails++;
287  } else {
288  B2INFO("Reached maximum allowed number of failed iterations. "
289  "Resetting TOPalign object of set = " << sub << " at iter = " << m_iter);
290  align.reset();
291  countFails = 0;
292  }
293 
294  // get new parameter values and estimated errors
295  m_vAlignPars = align.getParameters();
296  m_vAlignParsErr = align.getErrors();
297  m_ntrk = align.getNumUsedTracks();
298  m_errorCode = err;
299  m_valid = align.isValid();
300  m_numPhot = align.getNumOfPhotons();
301 
302  // set other ntuple variables
303  const auto& localPosition = m_selector.getLocalPosition();
304  m_x = localPosition.X();
305  m_y = localPosition.Y();
306  m_z = localPosition.Z();
307  const auto& localMomentum = m_selector.getLocalMomentum();
308  m_p = localMomentum.Mag();
309  m_theta = localMomentum.Theta();
310  m_phi = localMomentum.Phi();
311  const auto& pocaPosition = m_selector.getPOCAPosition();
312  m_pocaR = pocaPosition.Perp();
313  m_pocaZ = pocaPosition.Z();
314  m_pocaX = pocaPosition.X();
315  m_pocaY = pocaPosition.Y();
317  m_charge = trk.getCharge();
318  m_PDG = trk.getPDGcode();
319 
320  // fill output tree
321  auto alignTree = getObjectPtr<TTree>(name);
322  alignTree->Fill();
323 
324  // fill control histograms
325  std::string slotName = "_s" + to_string(m_targetMid);
326  auto h2 = getObjectPtr<TH1F>("local_z" + slotName);
327  h2->Fill(m_z);
328  auto h3 = getObjectPtr<TH2F>("cth_vs_p" + slotName);
329  h3->Fill(m_p, cos(m_theta));
330  auto h4 = getObjectPtr<TH2F>("poca_xy" + slotName);
331  h4->Fill(m_pocaX, m_pocaY);
332  auto h5 = getObjectPtr<TH1F>("poca_z" + slotName);
333  h5->Fill(m_pocaZ);
334  auto h6 = getObjectPtr<TH1F>("Ecms" + slotName);
335  h6->Fill(m_cmsE);
336  auto h7 = getObjectPtr<TH1F>("charge" + slotName);
337  h7->Fill(m_charge);
338  auto h8 = getObjectPtr<TH2F>("timeHits" + slotName);
339  for (const auto& digit : m_digits) {
340  if (digit.getHitQuality() != TOPDigit::c_Good) continue;
341  if (digit.getModuleID() != m_targetMid) continue;
342  h8->Fill(digit.getChannel(), digit.getTime());
343  }
344  auto h9 = getObjectPtr<TH1F>("numPhot" + slotName);
345  h9->Fill(m_numPhot);
346 
347  } // tracks
348 
349  }

โ—† collect() [8/8]

void collect ( )
finalprivatevirtual

Replacement for event().

Fill your calibration data objects here

Reimplemented from CalibrationCollectorModule.

Definition at line 158 of file TOPModuleT0LLCollectorModule.cc.

159  {
160  // bunch must be reconstructed
161 
162  if (not m_recBunch.isValid()) return;
163  if (not m_recBunch->isReconstructed()) return;
164 
165  // create reconstruction object and set various options
166 
167  int Nhyp = 1;
168  double mass = m_selector.getChargedStable().getMass();
169  int pdg = m_selector.getChargedStable().getPDGCode();
170  TOPreco reco(Nhyp, &mass, &pdg, m_minBkgPerBar, m_scaleN0);
171  reco.setPDFoption(m_PDFOption);
172  const auto& tdc = TOPGeometryPar::Instance()->getGeometry()->getNominalTDC();
173  double timeMin = tdc.getTimeMin();
174  double timeMax = tdc.getTimeMax();
175 
176  // add photon hits to reconstruction object with time corrected-back for module T0
177 
178  for (const auto& digit : m_digits) {
179  if (digit.getHitQuality() == TOPDigit::c_Good) {
180  double t = digit.getTime();
181  auto slot = digit.getModuleID();
182  if (digit.isModuleT0Calibrated()) t += m_moduleT0->getT0(slot);
183  if (digit.hasStatus(TOPDigit::c_BunchOffsetSubtracted)) {
184  t += m_recBunch->getAverageOffset();
185  }
186  reco.addData(digit.getModuleID(), digit.getPixelID(), t, digit.getTimeError());
187  }
188  }
189 
190  // loop over reconstructed tracks, make a selection and accumulate log likelihoods
191 
192  int ntra = 0;
193  for (const auto& track : m_tracks) {
194 
195  // track selection
196  TOPtrack trk(&track);
197  if (not trk.isValid()) continue;
198 
199  if (not m_selector.isSelected(trk)) continue;
200 
201  // run reconstruction
202  reco.reconstruct(trk);
203  if (reco.getFlag() != 1) continue; // track is not in the acceptance of TOP
204 
205  // minimization procedure: accumulate
206  int sub = gRandom->Integer(c_numSets); // generate sub-sample number
207  unsigned module = trk.getModuleID() - 1;
208  if (module >= m_names[sub].size()) continue;
209  auto h = getObjectPtr<TH1D>(m_names[sub][module]);
210  for (int ibin = 0; ibin < h->GetNbinsX(); ibin++) {
211  double t0 = h->GetBinCenter(ibin + 1);
212  double chi = h->GetBinContent(ibin + 1);
213  chi += -2 * reco.getLogL(t0, timeMin, timeMax, m_sigmaSmear);
214  h->SetBinContent(ibin + 1, chi);
215  }
216  auto h1 = getObjectPtr<TH2F>("tracks_per_slot");
217  h1->Fill(trk.getModuleID(), sub);
218 
219  // fill histograms of hits
220  auto h2 = getObjectPtr<TH1F>("numHits");
221  auto h3 = getObjectPtr<TH2F>("timeHits");
222  for (const auto& digit : m_digits) {
223  if (digit.getHitQuality() != TOPDigit::c_Good) continue;
224  if (digit.getModuleID() != trk.getModuleID()) continue;
225  if (digit.getTime() < timeMin) continue;
226  if (digit.getTime() > timeMax) continue;
227  h2->Fill(digit.getModuleID());
228  int bs = digit.getBoardstackNumber();
229  h3->Fill((digit.getModuleID() * 4 + bs - 1.5) / 4.0 , digit.getTime());
230  }
231  ntra++;
232  }
233 
234  // fill just another control histogram
235 
236  if (ntra > 0) {
237  auto h4 = getObjectPtr<TH1F>("offset");
238  h4->Fill(m_recBunch->getCurrentOffset());
239  }
240 
241  }

โ—† defineHisto() [1/3]

void defineHisto ( )
overridevirtual

Histogram definitions such as TH1(), TH2(), TNtuple(), TTree()....

are supposed to be placed in this function.

Reimplemented from HistoModule.

Definition at line 78 of file TOPPDFCheckerModule.cc.

โ—† defineHisto() [2/3]

void defineHisto ( )
overridevirtual

Histogram definitions such as TH1(), TH2(), TNtuple(), TTree()....

are supposed to be placed in this function.

Reimplemented from HistoModule.

Definition at line 84 of file TOPDQMModule.cc.

โ—† defineHisto() [3/3]

void defineHisto ( )
overridevirtual

Defining the histograms.

Reads once the m_inputDirectoryList to initialize the proper amount of histograms. Every new histogram added to the module has to be initialized here.

Reimplemented from HistoModule.

Definition at line 54 of file TOPTBCComparatorModule.cc.

โ—† drawWaveforms()

void drawWaveforms ( const TOPRawWaveform rawwave)

Draws the full waveforms onto the TProfiles.

Parameters
rawwavethe raw waveform

Definition at line 105 of file TOPWaveformQualityPlotterModule.cc.

โ—† DummyFillBranch()

void DummyFillBranch ( EHistogramType  LoadHisto)

Fill Dummy for Branch.

Use it when there aren't 2D-Histogram.

Definition at line 442 of file TOPGainEfficiencyCalculatorModule.cc.

461  {
462  (*itr)->Fill();
463  }
464  }
465 
466 
467  void TOPGainEfficiencyCalculatorModule::DrawResult(const std::string& histotype, EHistogramType LoadHisto)
468  {
469  std::ostringstream pdfFilename;
470  pdfFilename << m_outputPDFFile << "_" << histotype;
471  if (m_targetPmtChId != -1)
472  pdfFilename << "_" << "ch" << std::setw(2) << std::setfill('0') << m_targetPmtChId;

โ—† endRun() [1/25]

void endRun ( )
overridevirtual

End-of-run action.

Save run-related stuff, such as statistics.

Reimplemented from Module.

Definition at line 109 of file TOPLaserCalibratorModule.cc.

โ—† endRun() [2/25]

void endRun ( )
overridevirtual

End-of-run action.

Save run-related stuff, such as statistics.

Reimplemented from Module.

Definition at line 282 of file TOPCosmicT0FinderModule.cc.

โ—† endRun() [3/25]

void endRun ( )
overridevirtual

End-of-run action.

Save run-related stuff, such as statistics.

Reimplemented from HistoModule.

Definition at line 325 of file TOPInterimFENtupleModule.cc.

โ—† endRun() [4/25]

void endRun ( )
overridevirtual

End-of-run action.

Save run-related stuff, such as statistics.

Reimplemented from Module.

Definition at line 144 of file TOPMCTrackMakerModule.cc.

โ—† endRun() [5/25]

void endRun ( )
overridevirtual

End-of-run action.

Save run-related stuff, such as statistics.

Reimplemented from Module.

Definition at line 142 of file TOPWaveformFeatureExtractorModule.cc.

โ—† endRun() [6/25]

void endRun ( )
overridevirtual

End-of-run action.

Save run-related stuff, such as statistics.

Reimplemented from Module.

Definition at line 232 of file TOPNtupleModule.cc.

โ—† endRun() [7/25]

void endRun ( )
overridevirtual

End-of-run action.

Save run-related stuff, such as statistics.

Reimplemented from Module.

Definition at line 123 of file TOPPackerModule.cc.

โ—† endRun() [8/25]

void endRun ( )
overridevirtual

End-of-run action.

Save run-related stuff, such as statistics.

Reimplemented from Module.

Definition at line 129 of file TOPCalPulseGeneratorModule.cc.

โ—† endRun() [9/25]

void endRun ( )
overridevirtual

End-of-run action.

Save run-related stuff, such as statistics.

Reimplemented from HistoModule.

Definition at line 175 of file TOPWaveformQualityPlotterModule.cc.

โ—† endRun() [10/25]

void endRun ( )
overridevirtual

End-of-run action.

Save run-related stuff, such as statistics.

Reimplemented from Module.

Definition at line 219 of file TOPDoublePulseGeneratorModule.cc.

โ—† endRun() [11/25]

void endRun ( )
overridevirtual

End-of-run action.

Save run-related stuff, such as statistics.

Reimplemented from HistoModule.

Definition at line 212 of file TOPPDFCheckerModule.cc.

โ—† endRun() [12/25]

void endRun ( )
overridevirtual

End-of-run action.

Save run-related stuff, such as statistics.

Reimplemented from Module.

Definition at line 400 of file TOPBackgroundModule.cc.

โ—† endRun() [13/25]

void endRun ( )
overridevirtual

End-of-run action.

Save run-related stuff, such as statistics.

Reimplemented from Module.

Definition at line 276 of file TOPAlignerModule.cc.

โ—† endRun() [14/25]

void endRun ( )
overridevirtual

End-of-run action.

Save run-related stuff, such as statistics.

Reimplemented from Module.

Definition at line 278 of file TOPPDFDebuggerModule.cc.

โ—† endRun() [15/25]

void endRun ( )
overridevirtual

End-of-run action.

Save run-related stuff, such as statistics.

Reimplemented from Module.

Definition at line 475 of file TOPRawDigitConverterModule.cc.

โ—† endRun() [16/25]

void endRun ( )
overridevirtual

End-of-run action.

Save run-related stuff, such as statistics.

Reimplemented from Module.

Definition at line 218 of file TOPReconstructorModule.cc.

โ—† endRun() [17/25]

void endRun ( )
overridevirtual

End-of-run action.

Save run-related stuff, such as statistics.

Reimplemented from Module.

Definition at line 303 of file TOPChannelT0CalibratorModule.cc.

โ—† endRun() [18/25]

void endRun ( )
overridevirtual

End-of-run action.

Save run-related stuff, such as statistics.

Reimplemented from Module.

Definition at line 282 of file TOPCommonT0CalibratorModule.cc.

โ—† endRun() [19/25]

void endRun ( )
overridevirtual

End-of-run action.

Save run-related stuff, such as statistics.

Reimplemented from Module.

Definition at line 290 of file TOPModuleT0CalibratorModule.cc.

โ—† endRun() [20/25]

void endRun ( )
overridevirtual

End-of-run action.

Save run-related stuff, such as statistics.

Reimplemented from HistoModule.

Definition at line 258 of file TOPLaserHitSelectorModule.cc.

โ—† endRun() [21/25]

void endRun ( )
overridevirtual

End-of-run action.

Save run-related stuff, such as statistics.

Reimplemented from HistoModule.

Definition at line 550 of file TOPDQMModule.cc.

โ—† endRun() [22/25]

void endRun ( )
overridevirtual

End-of-run action.

Save run-related stuff, such as statistics.

Reimplemented from Module.

Definition at line 249 of file OpticalGunModule.cc.

โ—† endRun() [23/25]

void endRun ( )
overridevirtual

End-of-run action.

The main analysis loop over the calibration sets happens here. This function has to be modified only if the directory structure of the TOPTimeBaseCalibrator module output is changed Both the core functions analyzeCalFile() and makeComparisons() are called here.

Reimplemented from HistoModule.

Definition at line 349 of file TOPTBCComparatorModule.cc.

โ—† endRun() [24/25]

void endRun ( )
overridevirtual

End-of-run action.

Save run-related stuff, such as statistics.

Reimplemented from Module.

Definition at line 215 of file TOPTimeBaseCalibratorModule.cc.

โ—† endRun() [25/25]

void endRun ( )
overridevirtual

End-of-run action.

Save run-related stuff, such as statistics.

Reimplemented from Module.

Definition at line 1210 of file TOPUnpackerModule.cc.

โ—† event()

void event ( )
overridevirtual

Event processor.

Convert TOPSimHits of the event to TOPHits.

Reimplemented from Module.

Definition at line 200 of file TOPBackgroundModule.cc.

โ—† generatePulseHeight()

double generatePulseHeight ( int  moduleID,
int  pixelID 
) const
private

Generates and returns pulse height.

Parameters
moduleIDmodule ID (1-based)
pixelIDpixel ID (1-based)
Returns
pulse height [ADC counts]

Definition at line 524 of file TOPDigitizerModule.cc.

525  {
526  if (m_useDatabase) {
527  const auto& channelMapper = TOPGeometryPar::Instance()->getChannelMapper();
528  auto channel = channelMapper.getChannel(pixelID);
529  if (m_pulseHeights->isCalibrated(moduleID, channel)) {
530  const auto& par = m_pulseHeights->getParameters(moduleID, channel);
531  PulseHeightGenerator generator(par.x0, par.p1, par.p2, m_ADCmax);
532  return generator.generate();
533  }
534  }
535 
537  }

โ—† getDirectionUniform()

TVector3 getDirectionUniform ( ) const
private

Return photon direction according to a projected uniform distribution with opening angle alpha.

Be careful.

Definition at line 295 of file OpticalGunModule.cc.

โ—† getMostProbable()

Const::ChargedStable getMostProbable ( const Track track)
private

Returns most probable charged stable particle according to dEdx and predefined prior probabilities.

Parameters
trackreconstructed track
Returns
charged stable

Definition at line 516 of file TOPBunchFinderModule.cc.

517  {
518 
519  std::vector<double> logL;
520  std::vector<double> priors;
521 
522  if (m_usePIDLikelihoods) {
523  const auto* pid = track.getRelated<PIDLikelihood>();
524  if (!pid) {
525  m_nodEdxCount++;
526  return Const::pion;
527  }
528  auto subset = Const::PIDDetectorSet(Const::SVD);
529  subset += Const::PIDDetectorSet(Const::CDC);
530  for (const auto& type : Const::chargedStableSet) {
531  logL.push_back(pid->getLogL(type, subset));
532  priors.push_back(m_priors[abs(type.getPDGCode())]);
533  }
534  } else {
535  const auto* cdcdedx = track.getRelated<CDCDedxLikelihood>();
536  const auto* vxddedx = track.getRelated<VXDDedxLikelihood>();
537  if (!cdcdedx and !vxddedx) {
538  m_nodEdxCount++;
539  return Const::pion;
540  }
541  for (const auto& type : Const::chargedStableSet) {
542  if (cdcdedx and vxddedx) {
543  logL.push_back(cdcdedx->getLogL(type) + vxddedx->getLogL(type));
544  } else if (cdcdedx) {
545  logL.push_back(cdcdedx->getLogL(type));
546  } else {
547  logL.push_back(vxddedx->getLogL(type));
548  }
549  priors.push_back(m_priors[abs(type.getPDGCode())]);
550  }
551  }
552 
553  // get maximal logL
554  auto logL_max = logL[0];
555  for (auto x : logL) {
556  if (x > logL_max) logL_max = x;
557  }
558 
559  // calculate probabilities, normalizaton is not needed
560  std::vector<double> probability(logL.size());
561  for (unsigned i = 0; i < logL.size(); ++i) {
562  probability[i] = exp(logL[i] - logL_max) * priors[i];
563  }
564 
565  // find most probable
566  unsigned i0 = 0;
567  for (unsigned i = 0; i < probability.size(); ++i) {
568  if (probability[i] > probability[i0]) i0 = i;
569  }
570  return Const::chargedStableSet.at(i0);
571 
572  }

โ—† getReferenceTiming()

void getReferenceTiming ( )
private

Find reference timing.

In case that the waveform analysis is enabled, try to find a pair of calibration pulses and timing of the first one is used as reference timing for the correcponding asic. If not enabled, feature extracted timing for a calibration channel is used.

Definition at line 333 of file TOPInterimFENtupleModule.cc.

โ—† getTimeOffset()

TOPDigitizerModule::TimeOffset getTimeOffset ( double  trgOffset,
int  moduleID,
int  pixelID 
)
private

Returns a complete time offset by adding time mis-calibration to trgOffset.

Parameters
trgOffsettrigger related time offset
moduleIDslot ID
pixelIDpixel ID
Returns
time offset and its error squared

Definition at line 487 of file TOPDigitizerModule.cc.

โ—† initialize() [1/29]

void initialize ( )
overridevirtual

Initialize the Module.

This method is called at the beginning of data processing.

Reimplemented from Module.

Definition at line 58 of file TOPChannelT0MCModule.cc.

59  {
60 
61  m_digits.isRequired();
62 
63  }

โ—† initialize() [2/29]

void initialize ( )
overridevirtual

Initialize the Module.

This method is called at the beginning of data processing.

Reimplemented from Module.

Definition at line 75 of file TOPLaserCalibratorModule.cc.

โ—† initialize() [3/29]

void initialize ( )
overridevirtual

Initialize the Module.

This method is called at the beginning of data processing.

Reimplemented from Module.

Definition at line 82 of file TOPCosmicT0FinderModule.cc.

โ—† initialize() [4/29]

void initialize ( )
overridevirtual

Initialize the Module.

This method is called at the beginning of data processing.

Reimplemented from Module.

Definition at line 69 of file TOPTriggerDigitizerModule.cc.

70  {
71  // input
72  StoreArray<TOPRawWaveform> waveforms;
73  waveforms.isRequired();
74 
75  // output
76  StoreArray<TOPTriggerDigit> digits;
77  digits.registerInDataStore();
78  digits.registerRelationTo(waveforms);
79  StoreObjPtr<TOPTriggerMCInfo> mcInfo;
80  mcInfo.registerInDataStore();
81 
82  if (m_samplingPhase < 0 or m_samplingPhase >= c_SamplingCycle)
83  B2ERROR("samplingPhase must be positive and less than " << c_SamplingCycle);
84 
85  }

โ—† initialize() [5/29]

void initialize ( )
overridevirtual

Initialize the Module.

This method is called at the beginning of data processing.

Reimplemented from HistoModule.

Definition at line 75 of file TOPInterimFENtupleModule.cc.

โ—† initialize() [6/29]

void initialize ( )
overridevirtual

Initialize the Module.

This method is called at the beginning of data processing.

Reimplemented from Module.

Definition at line 63 of file TOPMCTrackMakerModule.cc.

โ—† initialize() [7/29]

void initialize ( )
overridevirtual

Initialize the Module.

This method is called at the beginning of data processing.

Reimplemented from Module.

Definition at line 68 of file TOPNtupleModule.cc.

โ—† initialize() [8/29]

void initialize ( )
overridevirtual

Initialize the Module.

This method is called at the beginning of data processing.

Reimplemented from Module.

Definition at line 70 of file TOPPackerModule.cc.

โ—† initialize() [9/29]

void initialize ( )
overridevirtual

Initialize the Module.

This method is called at the beginning of data processing.

Reimplemented from Module.

Definition at line 72 of file TOPWaveformFeatureExtractorModule.cc.

โ—† initialize() [10/29]

void initialize ( )
overridevirtual

Initialize the Module.

This method is called at the beginning of data processing.

Reimplemented from Module.

Definition at line 70 of file TOPCalPulseGeneratorModule.cc.

โ—† initialize() [11/29]

void initialize ( )
overridevirtual

Initialize the Module.

This method is called at the beginning of data processing.

Reimplemented from Module.

Definition at line 114 of file TOPBackgroundModule.cc.

โ—† initialize() [12/29]

void initialize ( )
overridevirtual

Initialize the Module.

This method is called at the beginning of data processing.

Reimplemented from Module.

Definition at line 110 of file TOPBunchFinderModule.cc.

โ—† initialize() [13/29]

void initialize ( )
overridevirtual

Initialize the Module.

This method is called at the beginning of data processing.

Reimplemented from Module.

Definition at line 90 of file TOPDoublePulseGeneratorModule.cc.

โ—† initialize() [14/29]

void initialize ( )
overridevirtual

Initialize the Module.

This method is called at the beginning of data processing.

Reimplemented from Module.

Definition at line 71 of file TOPTimeRecalibratorModule.cc.

โ—† initialize() [15/29]

void initialize ( )
overridevirtual

Initialize the Module.

This method is called at the beginning of data processing.

Reimplemented from Module.

Definition at line 53 of file TOPGeometryParInitializerModule.cc.

54  {
55  auto* gp = TOPGeometryPar::Instance();
56  if (gp->isValid()) {
57  B2WARNING("TOPGeometryPar has already been initialized");
58  return;
59  }
60 
61  if (m_useDB) {
62  gp->Initialize();
63  } else {
64  bool found = false;
65  GearDir detectorDir("/Detector");
66  for (const GearDir& component : detectorDir.getNodes("DetectorComponent")) {
67  if (component.getString("@name") == "TOP") {
68  gp->Initialize(GearDir(component, "Content"));
69  found = true;
70  break;
71  }
72  }
73  if (not found) B2ERROR("Component TOP does not exist or is empty");
74  }
75 
76  }

โ—† initialize() [16/29]

void initialize ( )
overridevirtual

Initialize the Module.

This method is called at the beginning of data processing.

Reimplemented from Module.

Definition at line 92 of file TOPPDFDebuggerModule.cc.

โ—† initialize() [17/29]

void initialize ( )
overridevirtual

Initialize the Module.

This method is called at the beginning of data processing.

Reimplemented from HistoModule.

Definition at line 105 of file TOPPDFCheckerModule.cc.

โ—† initialize() [18/29]

void initialize ( )
overridevirtual

Initialize the Module.

This method is called at the beginning of data processing.

Reimplemented from Module.

Definition at line 111 of file TOPAlignerModule.cc.

โ—† initialize() [19/29]

void initialize ( )
overridevirtual

Initialize the Module.

This method is called at the beginning of data processing.

Reimplemented from Module.

Definition at line 84 of file TOPReconstructorModule.cc.

โ—† initialize() [20/29]

void initialize ( )
overridevirtual

Initialize the Module.

This method is called at the beginning of data processing.

Reimplemented from Module.

Definition at line 114 of file TOPRawDigitConverterModule.cc.

โ—† initialize() [21/29]

void initialize ( )
overridevirtual

Initialize the Module.

This method is called at the beginning of data processing.

Reimplemented from Module.

Definition at line 92 of file TOPCommonT0CalibratorModule.cc.

โ—† initialize() [22/29]

void initialize ( )
overridevirtual

Initialize the Module.

This method is called at the beginning of data processing.

Reimplemented from Module.

Definition at line 96 of file TOPChannelT0CalibratorModule.cc.

โ—† initialize() [23/29]

void initialize ( )
overridevirtual

Initialize the Module.

This method is called at the beginning of data processing.

Reimplemented from Module.

Definition at line 93 of file TOPModuleT0CalibratorModule.cc.

โ—† initialize() [24/29]

void initialize ( )
overridevirtual

Initialize the Module.

This method is called at the beginning of data processing.

Reimplemented from HistoModule.

Definition at line 96 of file TOPLaserHitSelectorModule.cc.

โ—† initialize() [25/29]

void initialize ( )
overridevirtual

Initialize the Module.

This method is called at the beginning of data processing.

Reimplemented from Module.

Definition at line 101 of file TOPDigitizerModule.cc.

โ—† initialize() [26/29]

void initialize ( )
overridevirtual

Initialize the Module.

This method is called at the beginning of data processing.

better use isRequired(), but RawFTSW is not in sim

Reimplemented from HistoModule.

Definition at line 359 of file TOPDQMModule.cc.

โ—† initialize() [27/29]

void initialize ( )
overridevirtual

Initialize the Module.

This method is called at the beginning of data processing.

Reimplemented from Module.

Definition at line 95 of file OpticalGunModule.cc.

โ—† initialize() [28/29]

void initialize ( )
overridevirtual

Initialize the Module.

This method is called at the beginning of data processing.

Reimplemented from Module.

Definition at line 105 of file TOPTimeBaseCalibratorModule.cc.

โ—† initialize() [29/29]

void initialize ( )
overridevirtual

Initialize the Module.

This method is called at the beginning of data processing.

Reimplemented from Module.

Definition at line 78 of file TOPUnpackerModule.cc.

โ—† isInsideSlit()

bool isInsideSlit ( const TVector3 &  point,
const TVector3 &  direction 
) const
private

Checks if photon flies through the slit.

Parameters
pointphoton emission point
directionphoton emission direction
Returns
true, if photon flies through the slit

Definition at line 261 of file OpticalGunModule.cc.

โ—† isRunningOffsetSubtracted() [1/2]

bool isRunningOffsetSubtracted ( )
private

Checks if running offset is subtracted in TOPDigits.

Returns
true if subtracted at least in one digit

Definition at line 348 of file TOPCommonT0CalibratorModule.cc.

โ—† isRunningOffsetSubtracted() [2/2]

bool isRunningOffsetSubtracted ( )
private

Checks if running offset is subtracted in TOPDigits.

Returns
true if subtracted at least in one digit

Definition at line 375 of file TOPModuleT0CalibratorModule.cc.

โ—† Iteration()

void Iteration ( const std::vector< TwoTimes > &  ntuple,
std::vector< double > &  xval 
)
private

Iteration function called by iterativeTBC()

Parameters
ntuplentuple data
xvalTBC constants of 256 samples, time interval is the difference of nearby xvals, xval[0]=0 and xval[256]=2*m_syncTimeBase

Definition at line 620 of file TOPTimeBaseCalibratorModule.cc.

โ—† iterativeTBC()

bool iterativeTBC ( const std::vector< TwoTimes > &  ntuple,
unsigned  scrodID,
unsigned  scrodChannel,
double  meanTimeDifference,
TH1F &  Hchi2,
TH1F &  Hndf,
TH1F &  HDeltaT 
)
private

Method by iteration of chi2 minimization.

Parameters
ntuplentuple data
scrodIDSCROD ID
scrodChannelchannel number within SCROD (0 - 127)
meanTimeDifferenceaverage time difference [samples]
Hchi2histogram to store normalized chi^2
Hndfhistogram to store degrees of freedom
HDeltaThistogram to store fittet double pulse delay
Returns
true on success

Definition at line 535 of file TOPTimeBaseCalibratorModule.cc.

โ—† LoadHistograms()

void LoadHistograms ( const std::string &  histotype)

Load 2D histograms from a given input file (output of TOPLaserHitSelector) and create timing and charge distribution as projection histograms for the x- and y-axis, respectively.

Timing cut is also applied for charge distributiion

Definition at line 228 of file TOPGainEfficiencyCalculatorModule.cc.

โ—† matrixInversion()

bool matrixInversion ( const std::vector< TwoTimes > &  ntuple,
unsigned  scrodID,
unsigned  scrodChannel,
double  meanTimeDifference,
TH1F &  Hchi2,
TH1F &  Hndf,
TH1F &  HDeltaT 
)
private

Method by matrix inversion.

Parameters
ntuplentuple data
scrodIDSCROD ID
scrodChannelchannel number within SCROD (0 - 127)
meanTimeDifferenceaverage time difference [samples]
Hchi2histogram to store normalized chi^2
Hndfhistogram to store degrees of freedom
HDeltaThistogram to store fittet double pulse delay
Returns
true on success

Definition at line 397 of file TOPTimeBaseCalibratorModule.cc.

โ—† prepare() [1/8]

void prepare ( )
finalprivatevirtual

Replacement for initialize().

Register calibration dataobjects here as well.

Reimplemented from CalibrationCollectorModule.

Definition at line 54 of file TOPAsicShiftsBS13dCollectorModule.cc.

โ—† prepare() [2/8]

void prepare ( )
finalprivatevirtual

Replacement for initialize().

Register calibration dataobjects here as well

Reimplemented from CalibrationCollectorModule.

Definition at line 51 of file TOPCommonT0BFCollectorModule.cc.

โ—† prepare() [3/8]

void prepare ( )
finalprivatevirtual

Replacement for initialize().

Register calibration dataobjects here as well

Reimplemented from CalibrationCollectorModule.

Definition at line 54 of file TOPPulseHeightCollectorModule.cc.

โ—† prepare() [4/8]

void prepare ( )
finalprivatevirtual

Replacement for initialize().

Register calibration dataobjects here as well

Reimplemented from CalibrationCollectorModule.

Definition at line 41 of file TOPChannelMaskCollectorModule.cc.

โ—† prepare() [5/8]

void prepare ( )
finalprivatevirtual

Replacement for initialize().

Register calibration dataobjects here as well

Reimplemented from CalibrationCollectorModule.

Definition at line 52 of file TOPModuleT0DeltaTCollectorModule.cc.

โ—† prepare() [6/8]

void prepare ( )
finalprivatevirtual

Replacement for initialize().

Register calibration dataobjects here as well

Reimplemented from CalibrationCollectorModule.

Definition at line 81 of file TOPCommonT0LLCollectorModule.cc.

โ—† prepare() [7/8]

void prepare ( )
finalprivatevirtual

Replacement for initialize().

Register calibration dataobjects here as well

Reimplemented from CalibrationCollectorModule.

Definition at line 92 of file TOPAlignmentCollectorModule.cc.

โ—† prepare() [8/8]

void prepare ( )
finalprivatevirtual

Replacement for initialize().

Register calibration dataobjects here as well

Reimplemented from CalibrationCollectorModule.

Definition at line 81 of file TOPModuleT0LLCollectorModule.cc.

โ—† saveAsHistogram() [1/4]

void saveAsHistogram ( const std::vector< double > &  vec,
const std::string &  name,
const std::string &  title,
const std::string &  xTitle = "",
const std::string &  yTitle = "" 
) const
private

Save vector to histogram and write it out.

Parameters
vecvector of bin values
namehistogram name
titlehistogram title
xTitlex-axis title
yTitley-axis title

Definition at line 299 of file TOPDoublePulseGeneratorModule.cc.

โ—† saveAsHistogram() [2/4]

void saveAsHistogram ( const std::vector< double > &  vec,
const std::string &  name,
const std::string &  title,
const std::string &  xTitle = "",
const std::string &  yTitle = "" 
) const
private

Save vector to histogram and write it out.

Parameters
vecvector of bin values
namehistogram name
titlehistogram title
xTitlex-axis title
yTitley-axis title

Definition at line 708 of file TOPTimeBaseCalibratorModule.cc.

โ—† saveAsHistogram() [3/4]

void saveAsHistogram ( const std::vector< double > &  vec,
const std::vector< double > &  err,
const std::string &  name,
const std::string &  title,
const std::string &  xTitle = "",
const std::string &  yTitle = "" 
) const
private

Save vector and errors to histogram and write it out.

Parameters
vecvector of bin values
errvector of bin errors
namehistogram name
titlehistogram title
xTitlex-axis title
yTitley-axis title

Definition at line 727 of file TOPTimeBaseCalibratorModule.cc.

โ—† saveAsHistogram() [4/4]

void saveAsHistogram ( const TMatrixDSym &  M,
const std::string &  name,
const std::string &  title 
) const
private

Save matrix to histogram and write it out.

Parameters
Mmatrix
namehistogram name
titlehistogram title

Definition at line 747 of file TOPTimeBaseCalibratorModule.cc.

โ—† selectTrack()

bool selectTrack ( const TOP::TOPtrack trk)
private

track selection

Returns
true if pass selection criteria

Definition at line 348 of file TOPAlignerModule.cc.

โ—† terminate() [1/28]

void terminate ( )
overridevirtual

Termination action.

Output MC extraction

Reimplemented from Module.

Definition at line 95 of file TOPChannelT0MCModule.cc.

โ—† terminate() [2/28]

void terminate ( )
overridevirtual

Termination action.

Do fits , clean-up, close files, summarize statistics, etc.

Reimplemented from Module.

Definition at line 113 of file TOPLaserCalibratorModule.cc.

โ—† terminate() [3/28]

void terminate ( )
overridevirtual

Termination action.

Clean-up, close files, summarize statistics, etc.

Reimplemented from Module.

Definition at line 286 of file TOPCosmicT0FinderModule.cc.

โ—† terminate() [4/28]

void terminate ( )
overridevirtual

Termination action.

Clean-up, close files, summarize statistics, etc.

Reimplemented from Module.

Definition at line 509 of file TOPBunchFinderModule.cc.

โ—† terminate() [5/28]

void terminate ( )
overridevirtual

Termination action.

Clean-up, close files, summarize statistics, etc.

Reimplemented from Module.

Definition at line 155 of file TOPTriggerDigitizerModule.cc.

โ—† terminate() [6/28]

void terminate ( )
overridevirtual

Termination action.

Clean-up, close files, summarize statistics, etc.

Reimplemented from HistoModule.

Definition at line 329 of file TOPInterimFENtupleModule.cc.

โ—† terminate() [7/28]

void terminate ( )
overridevirtual

Termination action.

Clean-up, close files, summarize statistics, etc.

Reimplemented from Module.

Definition at line 148 of file TOPMCTrackMakerModule.cc.

โ—† terminate() [8/28]

void terminate ( )
overridevirtual

Termination action.

Clean-up, close files, summarize statistics, etc.

Reimplemented from Module.

Definition at line 146 of file TOPWaveformFeatureExtractorModule.cc.

โ—† terminate() [9/28]

void terminate ( )
overridevirtual

Termination action.

Clean-up, close files, summarize statistics, etc.

Reimplemented from Module.

Definition at line 127 of file TOPPackerModule.cc.

โ—† terminate() [10/28]

void terminate ( )
overridevirtual

Termination action.

Clean-up, close files, summarize statistics, etc.

Reimplemented from Module.

Definition at line 133 of file TOPCalPulseGeneratorModule.cc.

โ—† terminate() [11/28]

void terminate ( )
overridevirtual

Termination action.

Clean-up, close files, summarize statistics, etc.

Reimplemented from Module.

Definition at line 236 of file TOPNtupleModule.cc.

โ—† terminate() [12/28]

void terminate ( )
overridevirtual

Termination action.

Clean-up, close files, summarize statistics, etc.

Reimplemented from Module.

Definition at line 223 of file TOPDoublePulseGeneratorModule.cc.

โ—† terminate() [13/28]

void terminate ( )
overridevirtual

Termination action.

Clean-up, close files, summarize statistics, etc.

Reimplemented from HistoModule.

Definition at line 216 of file TOPPDFCheckerModule.cc.

โ—† terminate() [14/28]

void terminate ( )
overridevirtual

Termination action.

Clean-up, close files, summarize statistics, etc.

Reimplemented from Module.

Definition at line 280 of file TOPAlignerModule.cc.

โ—† terminate() [15/28]

void terminate ( )
overridevirtual

Termination action.

Clean-up, close files, summarize statistics, etc.

Reimplemented from Module.

Definition at line 405 of file TOPBackgroundModule.cc.

โ—† terminate() [16/28]

void terminate ( )
overridevirtual

Termination action.

Clean-up, close files, summarize statistics, etc.

Reimplemented from Module.

Definition at line 282 of file TOPPDFDebuggerModule.cc.

โ—† terminate() [17/28]

void terminate ( )
overridevirtual

Termination action.

Clean-up, close files, summarize statistics, etc.

Reimplemented from Module.

Definition at line 479 of file TOPRawDigitConverterModule.cc.

โ—† terminate() [18/28]

void terminate ( )
overridevirtual

Termination action.

Clean-up, close files, summarize statistics, etc.

Reimplemented from Module.

Definition at line 286 of file TOPCommonT0CalibratorModule.cc.

โ—† terminate() [19/28]

void terminate ( )
overridevirtual

Termination action.

Clean-up, close files, summarize statistics, etc.

Reimplemented from Module.

Definition at line 307 of file TOPChannelT0CalibratorModule.cc.

โ—† terminate() [20/28]

void terminate ( )
overridevirtual

Termination action.

Clean-up, close files, summarize statistics, etc.

Reimplemented from Module.

Definition at line 222 of file TOPReconstructorModule.cc.

โ—† terminate() [21/28]

void terminate ( )
overridevirtual

Termination action.

Clean-up, close files, summarize statistics, etc.

Reimplemented from Module.

Definition at line 294 of file TOPModuleT0CalibratorModule.cc.

โ—† terminate() [22/28]

void terminate ( )
overridevirtual

Termination action.

Clean-up, close files, summarize statistics, etc.

Reimplemented from HistoModule.

Definition at line 262 of file TOPLaserHitSelectorModule.cc.

โ—† terminate() [23/28]

void terminate ( )
overridevirtual

Termination action.

Clean-up, close files, summarize statistics, etc.

Reimplemented from HistoModule.

Definition at line 554 of file TOPDQMModule.cc.

โ—† terminate() [24/28]

void terminate ( )
overridevirtual

Termination action.

Clean-up, close files, summarize statistics, etc.

Reimplemented from Module.

Definition at line 253 of file OpticalGunModule.cc.

โ—† terminate() [25/28]

void terminate ( )
overridevirtual

Termination action.

Clean-up, close files, summarize statistics, etc.

Reimplemented from HistoModule.

Definition at line 183 of file TOPGainEfficiencyCalculatorModule.cc.

โ—† terminate() [26/28]

void terminate ( )
overridevirtual

Termination action.

The historam writing takes place here

Reimplemented from HistoModule.

Definition at line 446 of file TOPTBCComparatorModule.cc.

โ—† terminate() [27/28]

void terminate ( )
overridevirtual

Termination action.

Clean-up, close files, summarize statistics, etc.

Reimplemented from Module.

Definition at line 219 of file TOPTimeBaseCalibratorModule.cc.

โ—† terminate() [28/28]

void terminate ( )
overridevirtual

Termination action.

Clean-up, close files, summarize statistics, etc.

Reimplemented from Module.

Definition at line 1219 of file TOPUnpackerModule.cc.

โ—† unpackHeadersInterimFEVer01()

bool unpackHeadersInterimFEVer01 ( const int *  buffer,
int  bufferSize,
bool  swapBytes 
)
private

Tries to unpack raw data assuming it is in feature-extraction interim format.

Does not write out anything, just checks integrity.

Parameters
bufferraw data buffer
bufferSizebuffer size
swapBytesif true, swap bytes in buffer
Returns
true if buffer resembles interim format, false if not.

Definition at line 310 of file TOPUnpackerModule.cc.

โ—† unpackInterimFEVer01()

int unpackInterimFEVer01 ( const int *  buffer,
int  bufferSize,
bool  pedestalSubtracted 
)
private

Unpack raw data given in feature-extraction interim format.

Parameters
bufferraw data buffer
bufferSizebuffer size
pedestalSubtractedfalse for version 2, true for version 3
Returns
number of words remaining in data buffer

Definition at line 380 of file TOPUnpackerModule.cc.

โ—† unpackProdDebug()

int unpackProdDebug ( const int *  buffer,
int  bufferSize,
TOP::RawDataType  dataFormat,
bool  pedestalSubtracted 
)
private

Unpack raw data given in production debugging format.

Parameters
bufferraw data buffer
bufferSizebuffer size
dataFormatdata format
pedestalSubtractedtrue, if pedestal is subtracted in waveforms
Returns
number of words remaining in data buffer

Definition at line 786 of file TOPUnpackerModule.cc.

โ—† unpackProductionDraft()

void unpackProductionDraft ( const int *  buffer,
int  bufferSize 
)
private

Unpack raw data given in a tentative production format (will vanish in future)

Parameters
bufferraw data buffer
bufferSizebuffer size

Definition at line 208 of file TOPUnpackerModule.cc.

โ—† unpackType0Ver16()

void unpackType0Ver16 ( const int *  buffer,
int  bufferSize 
)
private

Unpack raw data given in feature-extraction production format.

Parameters
bufferraw data buffer
bufferSizebuffer size

Definition at line 244 of file TOPUnpackerModule.cc.

Belle2::TOPAlignmentCollectorModule::m_ntrk
int m_ntrk
number of tracks used
Definition: TOPAlignmentCollectorModule.h:105
Belle2::TOPTimeRecalibratorModule::m_useModuleT0Calibration
bool m_useModuleT0Calibration
if true, use module T0 calibration
Definition: TOPTimeRecalibratorModule.h:78
Belle2::TOPDQMModule::m_badHitsPerEventAll
TH1F * m_badHitsPerEventAll
Histograms for bad hits per event (all slots)
Definition: TOPDQMModule.h:118
Belle2::TOPWaveformQualityPlotterModule::m_asic
TH1F * m_asic
plot of ASIC number for debugging
Definition: TOPWaveformQualityPlotterModule.h:94
Belle2::TOPCommonT0LLCollectorModule::m_selector
TOP::TrackSelector m_selector
track selection utility
Definition: TOPCommonT0LLCollectorModule.h:88
Belle2::TOPDQMModule::m_goodTDCAll
TH1F * m_goodTDCAll
Histograms for TDC distribution of good hits (all slots)
Definition: TOPDQMModule.h:119
Belle2::TOP::TrackSelector::getCMSEnergy
double getCMSEnergy() const
Returns c.m.s energy of the track in last isSelected call.
Definition: TrackSelector.h:160
Belle2::TOPAlignmentCollectorModule::m_valid
bool m_valid
true if alignment parameters are valid
Definition: TOPAlignmentCollectorModule.h:109
Belle2::TOPAlignmentCollectorModule::m_x
float m_x
track: extrapolated hit coordinate in local (module) frame
Definition: TOPAlignmentCollectorModule.h:111
Belle2::TOPAlignmentCollectorModule::m_charge
int m_charge
track charge
Definition: TOPAlignmentCollectorModule.h:122
Belle2::TOPGainEfficiencyCalculatorModule::DrawResult
void DrawResult(const std::string &histotype, EHistogramType LoadHisto)
Draw results of gain/efficiency calculation for each channel to a given output file.
Definition: TOPGainEfficiencyCalculatorModule.cc:475
Belle2::TOPRawDigitConverterModule::m_useAsicShiftCalibration
bool m_useAsicShiftCalibration
if true, use asic shifts calibration
Definition: TOPRawDigitConverterModule.h:99
Belle2::TOPGainEfficiencyCalculatorModule::m_targetPmtChId
short m_targetPmtChId
PMT channel ID.
Definition: TOPGainEfficiencyCalculatorModule.h:168
Belle2::TOPTBCComparatorModule::m_slotSampleOccupancy
std::vector< TH1F * > m_slotSampleOccupancy[16]
Average number of calpulses per sample used in the minimization, as function of the channel number.
Definition: TOPTBCComparatorModule.h:211
Belle2::TOPAlignmentCollectorModule::m_selector
TOP::TrackSelector m_selector
track selection utility
Definition: TOPAlignmentCollectorModule.h:92
Belle2::TOPDQMModule::m_recoTimeDiff
TH1F * m_recoTimeDiff
residual distribution
Definition: TOPDQMModule.h:113
Belle2::TOPCommonT0LLCollectorModule::m_PDFOption
TOP::TOPreco::PDFoption m_PDFOption
PDF option.
Definition: TOPCommonT0LLCollectorModule.h:89
Belle2::TOPTBCComparatorModule::m_slotSampleOccupancyMap
std::vector< TH2F * > m_slotSampleOccupancyMap[16]
Map of the average number of calpulses per sample used in the minimizat on.
Definition: TOPTBCComparatorModule.h:215
Belle2::TOPDQMModule::m_goodHitsXYTrackBkg
std::vector< TProfile2D * > m_goodHitsXYTrackBkg
Histograms (2D) for good hits in x-y per module with bkg track.
Definition: TOPDQMModule.h:147
Belle2::TOPTimeRecalibratorModule::m_useSampleTimeCalibration
bool m_useSampleTimeCalibration
if true, use sample time calibration
Definition: TOPTimeRecalibratorModule.h:75
Belle2::TOPTimeRecalibratorModule::m_useTimeWalkCalibration
bool m_useTimeWalkCalibration
if true, use time-walk calibration
Definition: TOPTimeRecalibratorModule.h:80
Belle2::TOPTimeRecalibratorModule::m_timebase
DBObjPtr< TOPCalTimebase > m_timebase
sample time calibration constants
Definition: TOPTimeRecalibratorModule.h:87
Belle2::TOPWaveformQualityPlotterModule::m_entries
TH1F * m_entries
plot of waveform size
Definition: TOPWaveformQualityPlotterModule.h:99
Belle2::TOPGeometryParInitializerModule::m_useDB
bool m_useDB
If true load the Geometry from the database instead of gearbox.
Definition: TOPGeometryParInitializerModule.h:64
Belle2::TOP::ChannelMapper::getPixelID
int getPixelID(unsigned channel) const
Converts hardware channel number to pixel ID (1-based)
Definition: ChannelMapper.cc:250
Belle2::TOPDQMModule::m_badTDCAll
TH1F * m_badTDCAll
Histograms for TDC distribution of bad hits (all slots)
Definition: TOPDQMModule.h:120
Belle2::TOPBunchFinderModule::m_usePIDLikelihoods
bool m_usePIDLikelihoods
if true, use PIDLikelihoods (only on cdst files)
Definition: TOPBunchFinderModule.h:106
Belle2::TOPChannelMaskerModule::m_timebase
DBObjPtr< TOPCalTimebase > m_timebase
timebase
Definition: TOPChannelMaskerModule.h:94
Belle2::TOPTimeRecalibratorModule::m_timeWalk
OptionalDBObjPtr< TOPCalTimeWalk > m_timeWalk
time-walk calibration constants
Definition: TOPTimeRecalibratorModule.h:92
Belle2::TOP::TOPalign::setPhotonYields
static void setPhotonYields(double bkgPerModule, double scaleN0=1)
Sets expected photon yields.
Definition: TOPalign.cc:106
Belle2::TOPDQMModule::m_recoPull
TH1F * m_recoPull
pull distribution
Definition: TOPDQMModule.h:114
Belle2::TOPAlignmentCollectorModule::m_minBkgPerBar
double m_minBkgPerBar
minimal assumed background photons per module
Definition: TOPAlignmentCollectorModule.h:73
Belle2::TOP::TrackSelector::getLocalMomentum
const TVector3 & getLocalMomentum() const
Returns momentum at TOP in local frame of the track in last isSelected call.
Definition: TrackSelector.h:172
Belle2::TOPModuleT0LLCollectorModule::m_recBunch
StoreObjPtr< TOPRecBunch > m_recBunch
reconstructed bunch
Definition: TOPModuleT0LLCollectorModule.h:100
Belle2::TOPTimeRecalibratorModule::m_moduleT0
DBObjPtr< TOPCalModuleT0 > m_moduleT0
module T0 calibration constants
Definition: TOPTimeRecalibratorModule.h:90
Belle2::TOPPulseHeightCollectorModule::m_timeWindow
std::vector< double > m_timeWindow
lower and upper bound of time window
Definition: TOPPulseHeightCollectorModule.h:63
Belle2::TOPDigitizerModule::m_useDatabase
bool m_useDatabase
if true, use calibration constants from database
Definition: TOPDigitizerModule.h:132
Belle2::TOPGainEfficiencyCalculatorModule::m_outputPDFFile
std::string m_outputPDFFile
output PDF file to store plots of 2D histogram, timing, and charge distribution for each channel
Definition: TOPGainEfficiencyCalculatorModule.h:160
Belle2::TOPAlignmentCollectorModule::m_scaleN0
double m_scaleN0
scale factor for figure-of-merit N0
Definition: TOPAlignmentCollectorModule.h:74
Belle2::TOPDQMModule::m_BoolEvtMonitor
TH1F * m_BoolEvtMonitor
Event desynchronization monitoring.
Definition: TOPDQMModule.h:108
Belle2::TOPDQMModule::m_recoTimeBg
TH1F * m_recoTimeBg
time distribution background
Definition: TOPDQMModule.h:111
Belle2::TOPTBCComparatorModule::m_calSetFile
TFile * m_calSetFile
File containing the calibration constants of the SCROD being analyzed.
Definition: TOPTBCComparatorModule.h:182
Belle2::TOPDQMModule::m_badChannelHits
std::vector< TH1F * > m_badChannelHits
Histograms for bad channel hits.
Definition: TOPDQMModule.h:143
Belle2::TOPRawDigitConverterModule::m_feSetting
DBObjPtr< TOPFrontEndSetting > m_feSetting
front-end settings
Definition: TOPRawDigitConverterModule.h:121
Belle2::TOPCommonT0LLCollectorModule::m_tracks
StoreArray< Track > m_tracks
collection of tracks
Definition: TOPCommonT0LLCollectorModule.h:94
Belle2::TOPTimeRecalibratorModule::m_channelT0
DBObjPtr< TOPCalChannelT0 > m_channelT0
channel T0 calibration constants
Definition: TOPTimeRecalibratorModule.h:88
Belle2::TOPDQMModule::m_badHitsPerEventProf
TProfile * m_badHitsPerEventProf
a profile histogram of bad hits per event
Definition: TOPDQMModule.h:128
Belle2::TOPDQMModule::m_numModules
int m_numModules
number of TOP modules
Definition: TOPDQMModule.h:150
Belle2::Const::chargedStableSet
static const ParticleSet chargedStableSet
set of charged stable particles
Definition: Const.h:494
Belle2::TOPTBCComparatorModule::m_slotSigmaDeltaT
std::vector< TH1F * > m_slotSigmaDeltaT[16]
Standard deviation of the DeltaT (time difference petween the calibraiton pulses) distribution,...
Definition: TOPTBCComparatorModule.h:196
Belle2::Const::ParticleType::getPDGCode
int getPDGCode() const
PDG code.
Definition: Const.h:349
Belle2::TOPCommonT0LLCollectorModule::m_sigmaSmear
double m_sigmaSmear
additional smearing of PDF in [ns]
Definition: TOPCommonT0LLCollectorModule.h:78
Belle2::TOPRawDigitConverterModule::m_useCommonT0Calibration
bool m_useCommonT0Calibration
if true, use common T0 calibration
Definition: TOPRawDigitConverterModule.h:102
Belle2::TOPCommonT0BFCollectorModule::m_commonT0
DBObjPtr< TOPCalCommonT0 > m_commonT0
common T0 calibration constants
Definition: TOPCommonT0BFCollectorModule.h:65
Belle2::TOPCommonT0LLCollectorModule::m_names
std::vector< std::string > m_names
histogram names of chi2 scans
Definition: TOPCommonT0LLCollectorModule.h:90
Belle2::TOPRawDigitConverterModule::m_pedestalRMS
double m_pedestalRMS
r.m.s of pedestals [ADC counts]
Definition: TOPRawDigitConverterModule.h:104
Belle2::TOPTBCComparatorModule::m_topAverageDeltaT
std::vector< TH1F * > m_topAverageDeltaT
Average of the DeltaT (time difference petween the calibraiton pulses) distribution,...
Definition: TOPTBCComparatorModule.h:204
Belle2::TOPRawDigitConverterModule::m_timeWalk
OptionalDBObjPtr< TOPCalTimeWalk > m_timeWalk
time-walk calibration constants
Definition: TOPRawDigitConverterModule.h:129
Belle2::TOPAsicShiftsBS13dCollectorModule::m_timeOffset
double m_timeOffset
time offset
Definition: TOPAsicShiftsBS13dCollectorModule.h:58
Belle2::TOPRawDigitConverterModule::m_useModuleT0Calibration
bool m_useModuleT0Calibration
if true, use module T0 calibration
Definition: TOPRawDigitConverterModule.h:101
Belle2::TOPTBCComparatorModule::m_numSamples
short m_numSamples
Number of samples that have been calibrated.
Definition: TOPTBCComparatorModule.h:177
Belle2::TOPDQMModule::m_window_vs_asic
std::vector< TH2F * > m_window_vs_asic
Histograms window w.r.t reference vs.
Definition: TOPDQMModule.h:134
Belle2::TOPTBCComparatorModule::m_calSetID
short m_calSetID
Internal ID of the calibration set that is being analyzed.
Definition: TOPTBCComparatorModule.h:188
Belle2::TOPTimeRecalibratorModule::m_useAsicShiftCalibration
bool m_useAsicShiftCalibration
if true, use asic shifts calibration
Definition: TOPTimeRecalibratorModule.h:76
Belle2::TOPDQMModule::m_goodHits
TH1F * m_goodHits
Histogram for number of accumulated good hits.
Definition: TOPDQMModule.h:122
Belle2::TOPGeometry::getNominalTDC
const TOPNominalTDC & getNominalTDC() const
Returns nominal time-to-digit conversion parameters.
Definition: TOPGeometry.h:228
Belle2::TOPTBCComparatorModule::m_slotAverageDeltaTMap
std::vector< TH2F * > m_slotAverageDeltaTMap[16]
Map of the average of the DeltaT (time difference petween the calibraiton pulses) distribution.
Definition: TOPTBCComparatorModule.h:198
Belle2::TOP::TOPalign::clearData
static void clearData()
Clear data list.
Definition: TOPalign.cc:73
Belle2::TOP::TrackSelector::getChargedStable
const Const::ChargedStable & getChargedStable() const
Returns track hypothesis.
Definition: TrackSelector.h:142
Belle2::TOPDQMModule::m_goodHitsPerEventProf
TProfile * m_goodHitsPerEventProf
a profile histogram of good hits per event
Definition: TOPDQMModule.h:127
Belle2::TOPCommonT0LLCollectorModule::m_digits
StoreArray< TOPDigit > m_digits
collection of digits
Definition: TOPCommonT0LLCollectorModule.h:93
Belle2::TOPAlignmentCollectorModule::m_tracks
StoreArray< Track > m_tracks
collection of tracks
Definition: TOPAlignmentCollectorModule.h:98
Belle2::TOPCommonT0LLCollectorModule::m_commonT0
DBObjPtr< TOPCalCommonT0 > m_commonT0
common T0 calibration constants
Definition: TOPCommonT0LLCollectorModule.h:99
Belle2::Const::PIDDetectorSet
RestrictedDetectorSet< PIDDetectors > PIDDetectorSet
Typedef for set of PID detectors.
Definition: Const.h:255
Belle2::TOPCommonT0LLCollectorModule::c_numSets
@ c_numSets
number of statistically independent subsamples
Definition: TOPCommonT0LLCollectorModule.h:69
Belle2::TOPModuleT0DeltaTCollectorModule::m_moduleT0
DBObjPtr< TOPCalModuleT0 > m_moduleT0
module T0 calibration constants
Definition: TOPModuleT0DeltaTCollectorModule.h:74
Belle2::TOPModuleT0LLCollectorModule::m_moduleT0
DBObjPtr< TOPCalModuleT0 > m_moduleT0
module T0 calibration constants
Definition: TOPModuleT0LLCollectorModule.h:103
Belle2::TOPTimeRecalibratorModule::m_useCommonT0Calibration
bool m_useCommonT0Calibration
if true, use common T0 calibration
Definition: TOPTimeRecalibratorModule.h:79
Belle2::TOPDQMModule::m_goodTdc
std::vector< TH1F * > m_goodTdc
Histograms for TDC distribution of good hits.
Definition: TOPDQMModule.h:139
Belle2::TOPModuleT0DeltaTCollectorModule::m_timeZeros
StoreArray< TOPTimeZero > m_timeZeros
collection of TOP time zero's
Definition: TOPModuleT0DeltaTCollectorModule.h:71
Belle2::TOPDQMModule::m_badHitsXY
std::vector< TH2F * > m_badHitsXY
Histograms (2D) for bad hits in x-y.
Definition: TOPDQMModule.h:136
Belle2::TOPUnpackerModule::m_channelStatistics
std::map< int, int > m_channelStatistics
counts how many different channels have been parsed in a given SCROD packet
Definition: TOPUnpackerModule.h:294
Belle2::TOPAlignmentCollectorModule::m_recBunch
StoreObjPtr< TOPRecBunch > m_recBunch
reconstructed bunch
Definition: TOPAlignmentCollectorModule.h:100
Belle2::TOPChannelMaskCollectorModule::m_names
std::vector< std::string > m_names
histogram names: channel occupancies
Definition: TOPChannelMaskCollectorModule.h:63
Belle2::TOPRawDigitConverterModule::m_noises
DBObjPtr< TOPCalChannelNoise > m_noises
r.m.s.
Definition: TOPRawDigitConverterModule.h:133
Belle2::TOPWaveformQualityPlotterModule::m_asic_ch
TH1F * m_asic_ch
plot of ASIC channel ID debugging
Definition: TOPWaveformQualityPlotterModule.h:96
Belle2::TOPAlignmentCollectorModule::m_errorCode
int m_errorCode
error code of the alignment procedure
Definition: TOPAlignmentCollectorModule.h:106
Belle2::TOPAlignmentCollectorModule::m_numPhot
int m_numPhot
number of photons used for log likelihood in this iteration
Definition: TOPAlignmentCollectorModule.h:110
Belle2::TOPChannelMaskerModule::m_channelT0
DBObjPtr< TOPCalChannelT0 > m_channelT0
channel T0
Definition: TOPChannelMaskerModule.h:93
Belle2::TOPAlignmentCollectorModule::m_countFails
std::vector< int > m_countFails
counters for failed iterations
Definition: TOPAlignmentCollectorModule.h:94
Belle2::TOPWaveformQualityPlotterModule::m_samples
TH1F * m_samples
plot of ADC sample values
Definition: TOPWaveformQualityPlotterModule.h:91
Belle2::TOPDQMModule::m_goodChannelHits
std::vector< TH1F * > m_goodChannelHits
Histograms for good channel hits.
Definition: TOPDQMModule.h:142
Belle2::TOP::TOPGeometryPar::Instance
static TOPGeometryPar * Instance()
Static method to obtain the pointer to its instance.
Definition: TOPGeometryPar.cc:45
Belle2::Const::pion
static const ChargedStable pion
charged pion particle
Definition: Const.h:535
Belle2::TOPPulseHeightCollectorModule::m_widthWindow
std::vector< double > m_widthWindow
lower and upper bound of pulse-width window
Definition: TOPPulseHeightCollectorModule.h:62
Belle2::TOPAlignmentCollectorModule::c_numSets
@ c_numSets
number of statistically independent subsamples
Definition: TOPAlignmentCollectorModule.h:69
Belle2::TOPModuleT0LLCollectorModule::m_digits
StoreArray< TOPDigit > m_digits
collection of digits
Definition: TOPModuleT0LLCollectorModule.h:97
Belle2::TOPAlignmentCollectorModule::m_y
float m_y
track: extrapolated hit coordinate in local (module) frame
Definition: TOPAlignmentCollectorModule.h:112
Cosim::subset
std::bitset< max - min+1 > subset(std::bitset< nbits > set)
extract a subset of bitstring, like substring.
Definition: Cosim.h:113
Belle2::TOPChannelMaskCollectorModule::m_digits
StoreArray< TOPDigit > m_digits
collection of TOP digits
Definition: TOPChannelMaskCollectorModule.h:60
Belle2::TOPDQMModule::m_goodHitsAsics
std::vector< TH2F * > m_goodHitsAsics
Histograms (2D) for good hits for asics.
Definition: TOPDQMModule.h:137
Belle2::TOPDQMModule::m_recoTimeDiff_Phic
TH2F * m_recoTimeDiff_Phic
residuals vs phiCer
Definition: TOPDQMModule.h:115
Belle2::TOPDigitizerModule::m_pulseHeights
DBObjPtr< TOPCalChannelPulseHeight > m_pulseHeights
pulse height param.
Definition: TOPDigitizerModule.h:152
Belle2::TOPTBCComparatorModule::m_slotEmptySamplesMap
std::vector< TH2F * > m_slotEmptySamplesMap[16]
Map of the number of (semi-)empty samples.
Definition: TOPTBCComparatorModule.h:217
Belle2::TOPTimeRecalibratorModule::m_feSetting
DBObjPtr< TOPFrontEndSetting > m_feSetting
front-end settings
Definition: TOPTimeRecalibratorModule.h:84
Belle2::TOPModuleT0LLCollectorModule::m_sigmaSmear
double m_sigmaSmear
additional smearing of PDF in [ns]
Definition: TOPModuleT0LLCollectorModule.h:82
Belle2::TOPChannelMaskCollectorModule::m_asicNames
std::vector< std::string > m_asicNames
histogram names: window vs.
Definition: TOPChannelMaskCollectorModule.h:64
Belle2::TOP::PulseHeightGenerator::generate
double generate() const
Returns generated pulse height.
Definition: PulseHeightGenerator.cc:45
Belle2::TOPChannelT0MCModule::m_digits
StoreArray< TOPDigit > m_digits
collection of digits
Definition: TOPChannelT0MCModule.h:83
Belle2::TOPAlignmentCollectorModule::m_z
float m_z
track: extrapolated hit coordinate in local (module) frame
Definition: TOPAlignmentCollectorModule.h:113
Belle2::TOPDQMModule::m_goodTiming
std::vector< TH1F * > m_goodTiming
Histograms for timing distribution of good hits.
Definition: TOPDQMModule.h:141
Belle2::TOPAlignmentCollectorModule::m_theta
float m_theta
track: extrapolated hit momentum in local (module) frame
Definition: TOPAlignmentCollectorModule.h:115
Belle2::TOP::TOPalign::addData
static int addData(int moduleID, int pixelID, double time, double timeError)
Add data.
Definition: TOPalign.cc:78
Belle2::TOPCommonT0LLCollectorModule::m_minBkgPerBar
double m_minBkgPerBar
minimal assumed background photons per module
Definition: TOPCommonT0LLCollectorModule.h:76
Belle2::TOPTBCComparatorModule::m_slotAverageDeltaT
std::vector< TH1F * > m_slotAverageDeltaT[16]
Average of the DeltaT (time difference petween the calibraiton pulses) distribution,...
Definition: TOPTBCComparatorModule.h:194
Belle2::TOPAlignmentCollectorModule::m_digits
StoreArray< TOPDigit > m_digits
collection of digits
Definition: TOPAlignmentCollectorModule.h:97
Belle2::TOPCommonT0LLCollectorModule::m_scaleN0
double m_scaleN0
scale factor for figure-of-merit N0
Definition: TOPCommonT0LLCollectorModule.h:77
Belle2::TOPDQMModule::m_TOPOccAfterInjLER
TH1F * m_TOPOccAfterInjLER
Histogram Ndigits after LER injection.
Definition: TOPDQMModule.h:129
Belle2::TOPModuleT0LLCollectorModule::m_scaleN0
double m_scaleN0
scale factor for figure-of-merit N0
Definition: TOPModuleT0LLCollectorModule.h:81
Belle2::Const::ParticleSet::at
const ParticleType & at(unsigned int index) const
Return particle at given index, or end() if out of range.
Definition: Const.h:425
Belle2::TOPDigitizerModule::m_ADCmax
double m_ADCmax
pulse height upper bound of range [ADC counts]
Definition: TOPDigitizerModule.h:126
LogVar
Class to store variables with their name which were sent to the logging service.
Definition: LogVariableStream.h:24
Belle2::TOPTBCComparatorModule::m_boardstackID
short m_boardstackID
ID of the slot whose calibrations are being analyzed.
Definition: TOPTBCComparatorModule.h:186
Belle2::TOPDoublePulseGeneratorModule::m_useDatabase
bool m_useDatabase
if true, use sample times from database
Definition: TOPDoublePulseGeneratorModule.h:112
Belle2::TOPTBCComparatorModule::m_slotID
short m_slotID
ID of the slot whose calibrations are being analyzed.
Definition: TOPTBCComparatorModule.h:185
Belle2::TOPDQMModule::m_badHitsPerEvent
std::vector< TH1F * > m_badHitsPerEvent
Histograms for bad hits per event.
Definition: TOPDQMModule.h:145
Belle2::TOPPulseHeightCollectorModule::m_names
std::vector< std::string > m_names
histogram names
Definition: TOPPulseHeightCollectorModule.h:69
Belle2::TOPDQMModule::m_bunchOffset
TH1F * m_bunchOffset
reconstructed bunch: current offset
Definition: TOPDQMModule.h:125
Belle2::TOPDQMModule::m_recoPull_Phic
TProfile * m_recoPull_Phic
pulls vs phiCer
Definition: TOPDQMModule.h:116
Belle2::TOPDQMModule::m_TOPOccAfterInjHER
TH1F * m_TOPOccAfterInjHER
Histogram Ndigits after HER injection.
Definition: TOPDQMModule.h:130
Belle2::TOPDQMModule::m_TOPEOccAfterInjLER
TH1F * m_TOPEOccAfterInjLER
Histogram for Nr Entries (=Triggrs) for normalization after LER injection.
Definition: TOPDQMModule.h:131
Belle2::TOPNominalTDC::getTimeMin
double getTimeMin() const
Returns time range lower limit.
Definition: TOPNominalTDC.h:226
Belle2::TOPDQMModule::m_goodHitsPerEventAll
TH1F * m_goodHitsPerEventAll
Histograms for good hits per event (all slots)
Definition: TOPDQMModule.h:117
Belle2::TOPWaveformQualityPlotterModule::m_pixelID
TH1F * m_pixelID
plot of pixel ID for debugging
Definition: TOPWaveformQualityPlotterModule.h:101
Belle2::TOPWaveformQualityPlotterModule::m_scrod_id
TH1F * m_scrod_id
plot of SCROD IDs for debugging
Definition: TOPWaveformQualityPlotterModule.h:93
Belle2::TOPDigitizerModule::m_pulseHeightGenerator
TOP::PulseHeightGenerator m_pulseHeightGenerator
default generator
Definition: TOPDigitizerModule.h:160
Belle2::TOPModuleT0LLCollectorModule::m_tracks
StoreArray< Track > m_tracks
collection of tracks
Definition: TOPModuleT0LLCollectorModule.h:98
Belle2::TOPAlignmentCollectorModule::m_pocaZ
float m_pocaZ
z of POCA
Definition: TOPAlignmentCollectorModule.h:118
Belle2::TOPModuleT0LLCollectorModule::m_names
std::vector< std::string > m_names[c_numSets]
histogram names of chi2 scans
Definition: TOPModuleT0LLCollectorModule.h:94
Belle2::TOPRawDigitConverterModule::m_channelT0
DBObjPtr< TOPCalChannelT0 > m_channelT0
channel T0 calibration constants
Definition: TOPRawDigitConverterModule.h:125
Belle2::TOPRawDigitConverterModule::m_commonT0
DBObjPtr< TOPCalCommonT0 > m_commonT0
common T0 calibration constants
Definition: TOPRawDigitConverterModule.h:128
Belle2::TOPPulseHeightCollectorModule::m_digits
StoreArray< TOPDigit > m_digits
collection of TOP digits
Definition: TOPPulseHeightCollectorModule.h:66
Belle2::TOPTimeRecalibratorModule::m_commonT0
DBObjPtr< TOPCalCommonT0 > m_commonT0
common T0 calibration constants
Definition: TOPTimeRecalibratorModule.h:91
Belle2::TOPDQMModule::m_badHits
TH1F * m_badHits
Histogram for number of accumulated bad hits.
Definition: TOPDQMModule.h:123
Belle2::TOPAlignmentCollectorModule::m_cmsE
float m_cmsE
c.m.s.
Definition: TOPAlignmentCollectorModule.h:121
Belle2::TOPDQMModule::m_goodHitsXY
std::vector< TH2F * > m_goodHitsXY
Histograms (2D) for good hits in x-y.
Definition: TOPDQMModule.h:135
Belle2::TOPTimeRecalibratorModule::m_useChannelT0Calibration
bool m_useChannelT0Calibration
if true, use channel T0 calibration
Definition: TOPTimeRecalibratorModule.h:77
Belle2::TOPGainEfficiencyCalculatorModule::EHistogramType
EHistogramType
enum for LoadHistograms switch.
Definition: TOPGainEfficiencyCalculatorModule.h:62
Belle2::TOPTBCComparatorModule::m_scrodID
short m_scrodID
ID of the scrod whose calibrations are being analyzed.
Definition: TOPTBCComparatorModule.h:187
Belle2::TOPTBCComparatorModule::m_minCalPulses
short m_minCalPulses
Minimum number of calpulses to declare a sample as non-empty.
Definition: TOPTBCComparatorModule.h:176
Belle2::TOPWaveformQualityPlotterModule::m_asic_win
TH1F * m_asic_win
plot of ASIC storage window
Definition: TOPWaveformQualityPlotterModule.h:98
Belle2::TOPDQMModule::m_TOPEOccAfterInjHER
TH1F * m_TOPEOccAfterInjHER
Histogram for Nr Entries (=Triggrs) for normalization after HER injection.
Definition: TOPDQMModule.h:132
Belle2::TOPModuleT0LLCollectorModule::m_selector
TOP::TrackSelector m_selector
track selection utility
Definition: TOPModuleT0LLCollectorModule.h:92
Belle2::TOP::TrackSelector::isSelected
bool isSelected(const TOPtrack &track) const
Returns selection status.
Definition: TrackSelector.cc:53
Belle2::TOPCommonT0BFCollectorModule::m_recBunch
StoreObjPtr< TOPRecBunch > m_recBunch
reconstructed bunch
Definition: TOPCommonT0BFCollectorModule.h:62
Belle2::TOPAlignmentCollectorModule::m_maxFails
int m_maxFails
maximum allowed number of failed iterations
Definition: TOPAlignmentCollectorModule.h:76
Belle2::TOPTriggerDigitizerModule::c_SamplingCycle
@ c_SamplingCycle
timestamp sampling period [samples]
Definition: TOPTriggerDigitizerModule.h:81
Belle2::TOP::TrackSelector::getLocalPosition
const TVector3 & getLocalPosition() const
Returns position at TOP in local frame of the track in last isSelected call.
Definition: TrackSelector.h:166
Belle2::TOP::TrackSelector::getPOCAPosition
const TVector3 & getPOCAPosition() const
Returns position of POCA of the track in last isSelected call.
Definition: TrackSelector.h:148
Belle2::TOPAlignmentCollectorModule::m_p
float m_p
track: extrapolated hit momentum in local (module) frame
Definition: TOPAlignmentCollectorModule.h:114
Belle2::TOPAlignmentCollectorModule::m_vAlignParsErr
std::vector< float > m_vAlignParsErr
error on alignment parameters
Definition: TOPAlignmentCollectorModule.h:108
Belle2::TOPAlignmentCollectorModule::m_vAlignPars
std::vector< float > m_vAlignPars
alignment parameters
Definition: TOPAlignmentCollectorModule.h:107
Belle2::TOPAlignmentCollectorModule::m_PDG
int m_PDG
track MC truth (simulated data only)
Definition: TOPAlignmentCollectorModule.h:123
Belle2::TOPDQMModule::m_badTdc
std::vector< TH1F * > m_badTdc
Histograms for TDC distribution of bad hits.
Definition: TOPDQMModule.h:140
Belle2::TOPAlignmentCollectorModule::m_targetMid
int m_targetMid
target module to align.
Definition: TOPAlignmentCollectorModule.h:75
Belle2::TOPDQMModule::m_recoTime
TH1F * m_recoTime
time distribution
Definition: TOPDQMModule.h:110
Belle2::TOPModuleT0LLCollectorModule::c_numSets
@ c_numSets
number of statistically independent subsamples
Definition: TOPModuleT0LLCollectorModule.h:74
Belle2::TOPTimeRecalibratorModule::m_asicShift
DBObjPtr< TOPCalAsicShift > m_asicShift
ASIC shifts calibration constants.
Definition: TOPTimeRecalibratorModule.h:89
Belle2::TOPTBCComparatorModule::m_slotSigmaDeltaTMap
std::vector< TH2F * > m_slotSigmaDeltaTMap[16]
Map of the Standard deviation of the DeltaT (time difference petween the calibraiton pulses) distribu...
Definition: TOPTBCComparatorModule.h:200
Belle2::TOPWaveformQualityPlotterModule::m_hitmap
std::map< int, TH2F * > m_hitmap
hitmaps for each SCROD
Definition: TOPWaveformQualityPlotterModule.h:92
Belle2::TOP::TOPGeometryPar::getGeometry
const TOPGeometry * getGeometry() const
Returns pointer to geometry object using Basf2 units.
Definition: TOPGeometryPar.cc:167
Belle2::TOPDQMModule::m_recoTimeMinT0
TH1F * m_recoTimeMinT0
time distribution in respect to the first peak
Definition: TOPDQMModule.h:112
Belle2::TOPAsicShiftsBS13dCollectorModule::m_requireRecBunch
bool m_requireRecBunch
if true, require reconstructed bunch
Definition: TOPAsicShiftsBS13dCollectorModule.h:60
Belle2::TOPRawDigitConverterModule::m_moduleT0
DBObjPtr< TOPCalModuleT0 > m_moduleT0
module T0 calibration constants
Definition: TOPRawDigitConverterModule.h:127
Belle2::TOPWaveformQualityPlotterModule::m_moduleID
TH1F * m_moduleID
plot of module ID
Definition: TOPWaveformQualityPlotterModule.h:100
Belle2::TOPRawDigitConverterModule::m_useSampleTimeCalibration
bool m_useSampleTimeCalibration
if true, use sample time calibration
Definition: TOPRawDigitConverterModule.h:98
Belle2::TOPRawDigitConverterModule::m_timebase
DBObjPtr< TOPCalTimebase > m_timebase
sample time calibration constants
Definition: TOPRawDigitConverterModule.h:124
Belle2::TOPRawDigitConverterModule::m_useChannelT0Calibration
bool m_useChannelT0Calibration
if true, use channel T0 calibration
Definition: TOPRawDigitConverterModule.h:100
Belle2::TOPAlignmentCollectorModule::m_iter
int m_iter
iteration counter
Definition: TOPAlignmentCollectorModule.h:104
Belle2::TOPAlignmentCollectorModule::m_treeNames
std::vector< std::string > m_treeNames
tree names
Definition: TOPAlignmentCollectorModule.h:103
Belle2::TOPAlignmentCollectorModule::m_align
std::vector< TOP::TOPalign > m_align
alignment objects
Definition: TOPAlignmentCollectorModule.h:93
Belle2::TOPAsicShiftsBS13dCollectorModule::m_recBunch
StoreObjPtr< TOPRecBunch > m_recBunch
reconstructed bunch
Definition: TOPAsicShiftsBS13dCollectorModule.h:64
Belle2::TOPChannelMaskerModule::m_channelMask
DBObjPtr< TOPCalChannelMask > m_channelMask
list of dead/noisy channels
Definition: TOPChannelMaskerModule.h:92
Belle2::TOPWaveformQualityPlotterModule::m_carrier
TH1F * m_carrier
plot of carrier IDs for debugging
Definition: TOPWaveformQualityPlotterModule.h:95
Belle2::TOPDQMModule::m_time
TH1F * m_time
time distribution of good hits
Definition: TOPDQMModule.h:126
Belle2::TOPDQMModule::m_goodHitsPerEvent
std::vector< TH1F * > m_goodHitsPerEvent
Histograms for good hits per event.
Definition: TOPDQMModule.h:144
Belle2::TOPAlignmentCollectorModule::m_pocaX
float m_pocaX
x of POCA
Definition: TOPAlignmentCollectorModule.h:119
Belle2::TOPDQMModule::m_badHitsAsics
std::vector< TH2F * > m_badHitsAsics
Histograms (2D) for bad hits for asics.
Definition: TOPDQMModule.h:138
Belle2::TOPBunchFinderModule::m_priors
std::map< int, double > m_priors
map of PDG codes to prior probabilities
Definition: TOPBunchFinderModule.h:110
Belle2::TOPTBCComparatorModule::m_slotEmptySamples
std::vector< TH1F * > m_slotEmptySamples[16]
Number of (semi-)empty samples in each channel.
Definition: TOPTBCComparatorModule.h:213
Belle2::TOPModuleT0CalibratorModule::m_moduleT0
DBObjPtr< TOPCalModuleT0 > m_moduleT0
module T0 calibration constants
Definition: TOPModuleT0CalibratorModule.h:137
Belle2::TOPAlignmentCollectorModule::m_phi
float m_phi
track: extrapolated hit momentum in local (module) frame
Definition: TOPAlignmentCollectorModule.h:116
Belle2::TOPDQMModule::m_goodHitsXYTrack
std::vector< TProfile2D * > m_goodHitsXYTrack
Histograms (2D) for good hits in x-y per module with track.
Definition: TOPDQMModule.h:146
Belle2::TOP::TOPGeometryPar::getChannelMapper
const ChannelMapper & getChannelMapper() const
Returns default channel mapper (mapping of channels to pixels)
Definition: TOPGeometryPar.h:95
Belle2::TOPTBCComparatorModule::m_topSigmaDeltaT
std::vector< TH1F * > m_topSigmaDeltaT
Standard deviation of the DeltaT (time difference petween the calibraiton pulses) distribution,...
Definition: TOPTBCComparatorModule.h:206
Belle2::TOPBunchFinderModule::m_nodEdxCount
int m_nodEdxCount
counter of tracks with no dEdx, reset at each event
Definition: TOPBunchFinderModule.h:116
Belle2::TOPModuleT0LLCollectorModule::m_PDFOption
TOP::TOPreco::PDFoption m_PDFOption
PDF option.
Definition: TOPModuleT0LLCollectorModule.h:93
Belle2::TOPCommonT0LLCollectorModule::m_recBunch
StoreObjPtr< TOPRecBunch > m_recBunch
reconstructed bunch
Definition: TOPCommonT0LLCollectorModule.h:96
Belle2::TOPAlignmentCollectorModule::m_pocaY
float m_pocaY
y of POCA
Definition: TOPAlignmentCollectorModule.h:120
Belle2::TOPRawDigitConverterModule::m_asicShift
DBObjPtr< TOPCalAsicShift > m_asicShift
ASIC shifts calibration constants.
Definition: TOPRawDigitConverterModule.h:126
Belle2::TOPAsicShiftsBS13dCollectorModule::m_topDigits
StoreArray< TOPDigit > m_topDigits
collection of TOP digits
Definition: TOPAsicShiftsBS13dCollectorModule.h:63
Belle2::TOPDQMModule::m_window_vs_slot
TH2F * m_window_vs_slot
Histogram window w.r.t reference vs.
Definition: TOPDQMModule.h:124
Belle2::TOPCommonT0BFCollectorModule::m_bunchTimeSep
double m_bunchTimeSep
bunch separation in time [ns]
Definition: TOPCommonT0BFCollectorModule.h:68
Belle2::TOPModuleT0LLCollectorModule::m_minBkgPerBar
double m_minBkgPerBar
minimal assumed background photons per module
Definition: TOPModuleT0LLCollectorModule.h:80
Belle2::TOPAlignmentCollectorModule::m_pocaR
float m_pocaR
r of POCA
Definition: TOPAlignmentCollectorModule.h:117
Belle2::Const::ParticleType::getMass
double getMass() const
Particle mass.
Definition: UnitConst.cc:310
Belle2::TOPTBCComparatorModule::m_topSampleOccupancy
std::vector< TH1F * > m_topSampleOccupancy
Average number of calpulses per sample used in the minimization, as function of the channel number on...
Definition: TOPTBCComparatorModule.h:221