 |
Belle II Software
release-05-02-19
|
14 #include <top/reconstruction/TOPtrack.h>
15 #include <top/dbobjects/TOPCalChannelMask.h>
16 #include <top/dbobjects/TOPCalChannelT0.h>
17 #include <top/dbobjects/TOPCalTimebase.h>
18 #include <framework/database/DBObjPtr.h>
19 #include <top/dataobjects/TOPAsicMask.h>
31 enum {c_Local = 0, c_Global = 1};
61 TOPreco(
int NumHyp,
double Masses[],
int pdgCodes[],
62 double BkgPerModule = 0,
double ScaleN0 = 1);
99 void setMass(
double mass,
int pdg);
147 int addData(
int moduleID,
int pixelID,
double time,
double timeError);
200 void getLogL(
int Size,
double LogL[],
double ExpNphot[],
int& Nphot);
211 double getLogL(
double timeShift,
double timeMin,
double timeMax,
double sigma = 0.0);
222 void getLogL(
double timeShift,
double timeMin,
double timeMax,
double sigma,
235 void getTrackHit(
int LocGlob,
double R[3],
double Dir[3],
double& Len,
236 double& Tlen,
double& Mom,
int& moduleID);
266 void getPull(
int K,
int& pixelID,
float& T,
float& T0,
float& Wid,
267 float& PhiCer,
float& Wt);
277 double getPDF(
int pixelID,
double t,
double mass,
int PDG,
double jitter = 0);
297 void redoPDF(
double mass,
int PDG);
312 float& position,
float& width,
float& numPhotons)
const;
480 void reconstruct(
double X,
double Y,
double Z,
double Tlen,
481 double Px,
double Py,
double Pz,
int Q,
482 int pdg = 0,
int moduleID = 0);
int getPDFPeakNy(int pixelID, int k) const
Returns total number of reflections in y of PDF peak.
int getFlag()
Return status.
static void setUncalibratedChannelsOff(const DBObjPtr< TOPCalChannelT0 > &channelT0)
Set uncalibrated channels off.
int getNumOfPhotons()
Return number of measured photons.
double getExpectedPhotons(int i=0)
Return expected number of photons (signal + background) for i-th mass hypothesis.
void redoPDF(double mass, int PDG)
Re-calculate PDF for a given particle mass using option c_Fine.
void getTrackHit(int LocGlob, double R[3], double Dir[3], double &Len, double &Tlen, double &Mom, int &moduleID)
Return track hit at the bar in Local or Global frame.
void reconstruct(const TOPtrack &trk, int pdg=0)
Run reconstruction for a given track.
int getPDFPeakNxe(int pixelID, int k) const
Returns number of reflections in x in prism.
int getPDFPeakNxm(int pixelID, int k) const
Returns number of reflections in x before mirror.
Class to hold reconstructed track, interface to fortran.
int getPDFPeakNx(int pixelID, int k) const
Returns total number of reflections in x of PDF peak.
double m_beta
beta value, if set
static void setChannelEffi()
Set relative efficiencies of pixels.
static void printChannelMask()
Print channel mask.
float getPDFPeakKxe(int pixelID, int k) const
Returns photon reconstructed direction in x at emission.
int getNumofPDFPeaks(int pixelID) const
Returns number of peaks for given pixel describing signal PDF.
int addData(int moduleID, int pixelID, double time, double timeError)
Add data.
float getPDFPeakKyd(int pixelID, int k) const
Returns photon reconstructed direction in y at detection.
int getDataSize()
Return size of data list.
float getPDFPeakYD(int pixelID, int k) const
Returns unfolded y position of pixel.
Class for accessing objects in the database.
TOP reconstruction: this class provides interface to fortran code.
void setMass(double mass, int pdg)
Set mass of the particle hypothesis (overrides settings in the constructor)
void getTimeWindow(double &Tmin, double &Tmax)
Returns time window for photons.
void clearData()
Clear data list.
float getPDFPeakXD(int pixelID, int k) const
Returns unfolded x position of pixel.
int getPDFPeakNye(int pixelID, int k) const
Returns number of reflections in y in prism.
double getLogL(int i=0)
Return log likelihood for i-th mass hypothesis.
Abstract base class for different kinds of events.
int getPDFPeakType(int pixelID, int k) const
Returns type of the k-th PDF peak for given pixel.
int m_hypID
true hypothesis ID
void dumpTrackHit(int LocGlob)
Print track to std output.
float getPDFPeakKze(int pixelID, int k) const
Returns photon reconstructed direction in z at emission.
int getPDFPeakNym(int pixelID, int k) const
Returns number of reflections in y before mirror.
void setBeta(double beta)
Set track beta (for beta resolution studies) if beta>0 this value is used instead of beta from moment...
PDFoption
Options for PDF: rough: no dependence on y fine: y dependent PDF everywhere optimal: y dependent PDF ...
float getPDFPeakSigE(int pixelID, int k) const
Returns photon energy spread of PDF peak.
void getPull(int K, int &pixelID, float &T, float &T0, float &Wid, float &PhiCer, float &Wt)
Get pulls: K-th pull.
double getExpectedBG()
Return expected number of background photons.
Class to store bit fields of masked ASICs, as reported in raw data.
void getPDFPeak(int pixelID, int k, float &position, float &width, float &numPhotons) const
Returns k-th PDF peak for given pixel describing signal PDF.
float getPDFPeakKzd(int pixelID, int k) const
Returns photon reconstructed direction in z at detection.
float getPDFPeakKxd(int pixelID, int k) const
Returns photon reconstructed direction in x at detection.
float getPDFPeakFic(int pixelID, int k) const
Returns Cerenkov azimuthal angle of PDF peak.
void dumpLogL(int NumHyp)
Print log likelihoods to std output.
float getBkgLevel(int pixelID) const
Returns estimated background level for given pixel.
void setStoreOption(StoreOption opt)
Sets option for storing PDF parameters in Fortran common TOP_PIK.
TOPreco(int NumHyp, double Masses[], int pdgCodes[], double BkgPerModule=0, double ScaleN0=1)
Constructor.
int getPullSize()
Get pulls: size.
double getPDF(int pixelID, double t, double mass, int PDG, double jitter=0)
Return PDF for pixel pixelID at time t for mass hypothesis mass.
double getBeta() const
Return track beta.
float getPDFPeakE(int pixelID, int k) const
Returns photon energy of PDF peak.
float getPDFPeakKye(int pixelID, int k) const
Returns photon reconstructed direction in y at emission.
StoreOption
Options for storing PDF parameters in Fortran common TOP_PIK reduced: only position,...
void setPDFoption(PDFoption opt, int NP=0, int NC=0)
Sets PDF option.
void setTimeWindow(double Tmin, double Tmax)
Set time window for photons.
static void setChannelMask(const DBObjPtr< TOPCalChannelMask > &mask, const TOPAsicMask &asicMask)
Set channel mask.