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

Classes

class  B2BIIMCParticlesMonitorModule
 Declaration of class B2BIIMCParticlesMonitor. More...
 
class  B2BIIConvertBeamParamsModule
 Convert the IpProfile and Benergy to BeamParameters, BeamSpot, CollisionInvariantMass and CollisionBoostVector. More...
 
class  B2BIIConvertMdstModule
 Module converts Belle MDST objects (Panther records) to Belle II MDST objects. More...
 
class  B2BIIFixMdstModule
 Declaration of class B2BIIFixMdst. More...
 
class  MuidProb
 Class computes probability density for Muid calculation. More...
 
class  B2BIIMdstInputModule
 Module reads Belle MDST files and converts Belle_event record to Belle II EventMetaData StoreObjectPointer. More...
 
struct  cal_scale_error_func_set_t
 Structure type cal_scale_error_func_set_t. More...
 
class  BelleMCOutputModule
 KLM digitization module. More...
 

Macros

#define NOMINAL_ENERGY   5.290024915
 Nomial beam energy.
 

Typedefs

typedef void(* cal_scale_error_func_t) (double scale[5], const double pt, const double tanl)
 Function pointer type.
 

Functions

 REG_MODULE (B2BIIConvertBeamParams)
 Register the module.
 
static double ecl_adhoc_corr (int Exp, int Run, int iflag05th, double Energy, double)
 The function giving correction factor. More...
 
static double ecl_adhoc_corr_45 (int exp, int, int cid)
 The function giving correction factor in Exp.45.
 
static double ecl_mcx3_corr (int, int, double energy, double)
 Correct energy scale (MC) to make pi0 peak nominal.
 
static double mpi0pdg (double Energy)
 Make MC mass peak to PDG value.
 
static bool operator== (const cal_scale_error_func_set_t &lhs, const cal_scale_error_func_set_t &rhs)
 Operator definition for cal_scale_error_func_set_t.
 
static void null_scale (double[5], double, double)
 Dummy function.
 
static void get_event_id (int *no_exp, int *no_run, int *no_evt, int *no_frm, int *expmc)
 Get event ID.
 
static bool is_already_scaled (void)
 Check if event is already scaled.
 
double vfunc (const double x, const double x1, const double yc, const double a1, const double a2)
 vfunc
 
double cupfunc (const double x, const double x1, const double x2, const double yc, const double a1, const double a2)
 cupfunc
 
double rootfunc (const double x, const double x1, const double x2, const double yc, const double a1, const double a2)
 rootfunc
 
double lambdafunc (const double x, const double x1, const double x2, const double yc, const double a1, const double a2, const double a3)
 lambdafunc
 
static void cal_scale_error_EXP0723_cosmic_mc (double scale[5], const double pt, const double)
 Scale error for Exp.7-23 Cosmic MC.
 
static void cal_scale_error_EXP2527_cosmic_mc (double scale[5], const double pt, const double)
 Scale error for Exp.25-27 Cosmic MC.
 
static void cal_scale_error_EXP31_cosmic_mc (double scale[5], double pt, double)
 Scale error for Exp.31 Cosmic MC.
 
static void cal_scale_error_EXP33_cosmic_mc (double scale[5], double pt, double)
 Scale error for Exp.33 Cosmic MC.
 
static void cal_scale_error_EXP35_cosmic_mc (double scale[5], double pt, double tanl)
 Scale error for Exp.35 Cosmic MC.
 
static void cal_scale_error_EXP37_cosmic_mc (double scale[5], double pt, double)
 Scale error for Exp.37 Cosmic MC.
 
static void cal_scale_error_EXP3941_cosmic_mc (double scale[5], double pt, double)
 Scale error for Exp.39,41 Cosmic MC.
 
static void cal_scale_error_EXP43_cosmic_mc (double scale[5], double pt, double)
 Scale error for Exp.43 Cosmic MC.
 
static void cal_scale_error_EXP45_cosmic_mc (double scale[5], double pt, double)
 Scale error for Exp.45 Cosmic MC.
 
static void cal_scale_error_EXP47_cosmic_mc (double scale[5], double pt, double)
 Scale error for Exp.47 Cosmic MC.
 
static void cal_scale_error_EXP49_cosmic_mc (double scale[5], double pt, double)
 Scale error for Exp.49 Cosmic MC.
 
static void cal_scale_error_EXP51_cosmic_mc (double scale[5], double pt, double)
 Scale error for Exp.51 Cosmic MC.
 
static void cal_scale_error_EXP53_cosmic_mc (double scale[5], double pt, double)
 Scale error for Exp.53 Cosmic MC.
 
static void cal_scale_error_EXP55_cosmic_mc (double scale[5], double pt, double)
 Scale error for Exp.55 Cosmic MC.
 
static void cal_scale_error_EXP6165_cosmic_mc (double scale[5], double pt, double tanl)
 Scale error for Exp.61-65 Cosmic MC.
 
static void cal_scale_error_EXP67_cosmic_mc (double scale[5], double pt, double tanl)
 Scale error for Exp.67 Cosmic MC.
 
static void cal_scale_error_EXP6971_cosmic_mc (double scale[5], double pt, double tanl)
 Scale error for Exp.69-71 Cosmic MC.
 
static void cal_scale_error_EXP0723_cosmic_data (double scale[5], const double pt, const double)
 Scale error for Exp.7-23 Cosmic data.
 
static void cal_scale_error_EXP2527_cosmic_data (double scale[5], const double pt, const double)
 Scale error for Exp.25-27 Cosmic data.
 
static void cal_scale_error_EXP31_cosmic_data (double scale[5], double pt, double)
 Scale error for Exp.31 Cosmic data.
 
static void cal_scale_error_EXP33_cosmic_data (double scale[5], double pt, double)
 Scale error for Exp.33 Cosmic data.
 
static void cal_scale_error_EXP35_cosmic_data (double scale[5], double pt, double tanl)
 Scale error for Exp.35 Cosmic data.
 
static void cal_scale_error_EXP37_cosmic_data (double scale[5], double pt, double)
 Scale error for Exp.37 Cosmic data.
 
static void cal_scale_error_EXP3941_cosmic_data (double scale[5], double pt, double)
 Scale error for Exp.39-41 Cosmic data.
 
static void cal_scale_error_EXP43_cosmic_data (double scale[5], double pt, double)
 Scale error for Exp.43 Cosmic data.
 
static void cal_scale_error_EXP4547_cosmic_data (double scale[5], double pt, double)
 Scale error for Exp.45,47 Cosmic data.
 
static void cal_scale_error_EXP49_cosmic_data (double scale[5], double pt, double)
 Scale error for Exp.49 Cosmic data.
 
static void cal_scale_error_EXP51_cosmic_data (double scale[5], double pt, double tanl)
 Scale error for Exp.51 Cosmic data.
 
static void cal_scale_error_EXP53_cosmic_data (double scale[5], double pt, double)
 Scale error for Exp.53 Cosmic data.
 
static void cal_scale_error_EXP55_cosmic_data (double scale[5], double pt, double tanl)
 Scale error for Exp.55 Cosmic data.
 
static void cal_scale_error_EXP6165_cosmic_data (double scale[5], double pt, double tanl)
 Scale error for Exp.61-65 Cosmic data.
 
static void cal_scale_error_EXP67_cosmic_data (double scale[5], double pt, double tanl)
 Scale error for Exp.67 Cosmic data.
 
static void cal_scale_error_EXP6971_cosmic_data (double scale[5], double pt, double tanl)
 Scale error for Exp.69,71 Cosmic data.
 
static void cal_scale_error_EXP0723_hadronic_mc (double scale[5], const double pt, const double tanl)
 Scale error for Exp.7-23 Hadron MC.
 
static void cal_scale_error_EXP2527_hadronic_mc (double scale[5], const double pt, const double tanl)
 Scale error for Exp.25-27 Hadron MC.
 
static void cal_scale_error_EXP31_hadronic_mc (double scale[5], double pt, double tanl)
 Scale error for Exp.31 Hadron MC.
 
static void cal_scale_error_EXP33_hadronic_mc (double scale[5], double pt, double tanl)
 Scale error for Exp.33,35 Hadron MC.
 
static void cal_scale_error_EXP35_hadronic_mc (double scale[5], double pt, double tanl)
 Scale error for Exp.33,35 Hadron MC.
 
static void cal_scale_error_EXP37_hadronic_mc (double scale[5], double pt, double tanl)
 Scale error for Exp.37 Hadron MC.
 
static void cal_scale_error_EXP3941_hadronic_mc (double scale[5], double pt, double)
 Scale error for Exp.39,41 Hadron MC.
 
static void cal_scale_error_EXP43_hadronic_mc (double scale[5], double pt, double)
 Scale error for Exp.43 Hadron MC.
 
static void cal_scale_error_EXP45_hadronic_mc (double scale[5], double pt, double tanl)
 Scale error for Exp.45 Hadron MC.
 
static void cal_scale_error_EXP47_hadronic_mc (double scale[5], double pt, double)
 Scale error for Exp.47 Hadron MC.
 
static void cal_scale_error_EXP49_hadronic_mc (double scale[5], double pt, double)
 Scale error for Exp.49 Hadron MC.
 
static void cal_scale_error_EXP51_hadronic_mc (double scale[5], double pt, double tanl)
 Scale error for Exp.51 Hadron MC.
 
static void cal_scale_error_EXP53_hadronic_mc (double scale[5], double pt, double)
 Scale error for Exp.53 Hadron MC.
 
static void cal_scale_error_EXP55_hadronic_mc (double scale[5], double pt, double)
 Scale error for Exp.55 Hadron MC.
 
static void cal_scale_error_EXP6165_hadronic_mc (double scale[5], double pt, double)
 Scale error for Exp.61-65 Hadron MC.
 
static void cal_scale_error_EXP67_hadronic_mc (double scale[5], double pt, double)
 Scale error for Exp.67 Hadron MC.
 
static void cal_scale_error_EXP6971_hadronic_mc (double scale[5], double pt, double)
 Scale error for Exp.69,71 Hadron MC.
 
static cal_scale_error_func_set_t get_scale_error_func_for_exprun (const int no_exp, const int)
 Get scale error fucntion for different Exp.
 
static void cal_scale_error (double scale[5], const double pt, const double tanl, const int expmc, const int no_exp, const int no_run)
 Calculate scale error.
 
static int scale_error_impl (const int message_level, const int reprocess_version)
 The implementation of B2BIIFixMdstModule::scale_error() More...
 
void recsim_mdst_propgt_ (float *, float[], float[], float[], float[], float[], int *)
 recsim_mdst_propgt from legacy C code
 
static void scale_err_ms (Belle::Mdst_trk_fit &fit, double scale[])
 Scale error.
 
static void smear_trk_ms (Belle::Mdst_trk_fit &fit, double scale[])
 Smear MC tracks.
 
static void smear_charged ()
 Smear tracks in Mdst_Charged.
 
 B2BIIConvertBeamParamsModule ()
 Create parameters.
 
void initialize () override
 Initialize phanter banks.
 
void beginRun () override
 Set run info in panther and load IPProfile/Benergy and convert the values to payloads.
 
 B2BIIFixMdstModule ()
 Constructor.
 
virtual void initialize () override
 Initialize the module.
 
virtual void terminate () override
 Terminates the module.
 
virtual void event () override
 Called for each event.
 
virtual void beginRun () override
 Called when a new run is started.
 

Variables

static int SE_Message_Level
 Message level of scale_error(). More...
 
static int SE_Reprocess_Version = 0
 Reprocess verison used in scale_error()
 
static const struct cal_scale_error_func_set_t EXP0723_scale
 Scale error for Exp.7-23. More...
 
static const struct cal_scale_error_func_set_t EXP2527_scale
 Scale error for Exp.25-27. More...
 
static const struct cal_scale_error_func_set_t EXP31_scale
 Scale error for Exp.31. More...
 
static const struct cal_scale_error_func_set_t EXP33_scale
 Scale error for Exp.33. More...
 
static const struct cal_scale_error_func_set_t EXP35_scale
 Scale error for Exp.35. More...
 
static const struct cal_scale_error_func_set_t EXP37_scale
 Scale error for Exp.37. More...
 
static const struct cal_scale_error_func_set_t EXP3941_scale
 Scale error for Exp.39,41. More...
 
static const struct cal_scale_error_func_set_t EXP43_scale
 Scale error for Exp.43. More...
 
static const struct cal_scale_error_func_set_t EXP45_scale
 Scale error for Exp.45. More...
 
static const struct cal_scale_error_func_set_t EXP47_scale
 Scale error for Exp.47. More...
 
static const struct cal_scale_error_func_set_t EXP49_scale
 Scale error for Exp.49. More...
 
static const struct cal_scale_error_func_set_t EXP51_scale
 Scale error for Exp.51. More...
 
static const struct cal_scale_error_func_set_t EXP53_scale
 Scale error for Exp.53. More...
 
static const struct cal_scale_error_func_set_t EXP55_scale
 Scale error for Exp.55. More...
 
static const struct cal_scale_error_func_set_t EXP6165_scale
 Scale error for Exp.61-65. More...
 
static const struct cal_scale_error_func_set_t EXP67_scale
 Scale error for Exp.67. More...
 
static const struct cal_scale_error_func_set_t EXP6971_scale
 Scale error for Exp.69-71. More...
 
static const struct cal_scale_error_func_set_t DUMMY_scale
 Dummy scale. More...
 
static double s_benergy_value = NOMINAL_ENERGY
 Beam energy.
 

Muid user parameters (set via basf)

int get_reprocess_version ()
 Get reprocess version of input mdst.
 
bool good_event ()
 Check if event correspondes to the period when Belle detector not in good condition.
 
double Benergy (int expnum=0, int runnum=0)
 Return Beam energy.
 
void fix_pi0_brecon (void)
 Fix relation gamma<->pi0 in brecon table.
 
static double pi0resol (double, double, const char *, bool, int, int)
 Treat pi0 mass width as a func. More...
 
void correct_ecl (int, int)
 Correct photon's momenta and error matrix.
 
void make_pi0 (int, double, double)
 Create Mdst_pi0 from Mdst_gamma and Mdst_ecl to let people get mass-constraint fitted momentum of pi0 after ad_hoc correction.
 
void make_pi0_primary_vertex (int, double, double, const HepPoint3D &, const CLHEP::HepSymMatrix &)
 Fill Mdst_pi0 based on the fit result.
 
void correct_ecl_primary_vertex (const HepPoint3D &, const CLHEP::HepSymMatrix &)
 Correct ecl using primary vertex.
 
void Muid_init (void)
 Initialize the Muid module.
 
void Muid_term (void)
 Terminate the Muid module.
 
void Muid_begin_run (const int, const int, const int)
 Called for each new run.
 
void Muid_end_run (void)
 Called when the current run ends.
 
void Muid_event (void)
 Called for each event.
 
void shift_tof (const int mode)
 Shift tof times to account for residuals. More...
 
void shift_tof_set (const int expno, const int runno, const int mode, const int im, const double pmom, const double sgn, double &shift)
 Return time shifts for different exp.
 
double vee_mass_nofit (const Belle::Mdst_vee2 &vee2, float scale=1.0)
 Calculates V0 mass with non-constraint fit results.
 
void scale_momenta (float scale_data=1.0, float scale_mc=1.0, int mode=0)
 Scale momenta of Mdst_trk.
 
void scale_momenta_set (const int, const int, const int, double &)
 Return scale factors for 2001 summer confs. More...
 
void scale_momenta_set_v1 (const int, const int, const int, double &)
 Return scale factors set_v1.
 
void scale_momenta_set_v2 (const int, const int, const int, double &)
 Return scale factors set_v2.
 
void scale_error (const int message_level=0)
 Apply scale error.
 
int set_primary_vertex (HepPoint3D &v, CLHEP::HepSymMatrix &ve)
 Set primary vertex assuming all tracks are pions.
 
int add_extra_trk_vee2 ()
 Add Mdst_trk_extra and Mdst_vee_extra to Mdst_trk and Mdst_vee2, respectively.
 
int remove_extra_trk_vee2 ()
 Remove extra tracks from Mdst_trk and Mdst_vee2.
 
void smear_trk ()
 Apply track smearing (on MC)
 

MuidProb methods:

static const double kRchisqMax = 10.0
 Overflow value of reduced chi-squared.
 
static const double kEEclMax = 1.0
 Overflow value of ECL energy.
 
static const double kPTrkMax = 5.0
 Overflow value of CDC momentum.
 
 MuidProb (const char *, int &)
 Constructor.
 
void readDB (const char *, int &)
 Read in probability density functions from database.
 
void spline (int, double, double *, double *, double *, double *)
 Generate the spline interpolation coefficients to smooth out a binned histogram.
 
double prob (int, int, int, int, double) const
 Compute probability density.
 
double probRange (int, int, int, int) const
 Compute probability density for range.
 
double probRchisq (int, int, int, double) const
 Compute probability density for reduced chi-squared.
 
double probECL (double, double) const
 Compute probability density for ECL energy deposit.
 

Detailed Description

Function Documentation

◆ ecl_adhoc_corr()

static double Belle2::ecl_adhoc_corr ( int  Exp,
int  Run,
int  iflag05th,
double  Energy,
double   
)
static

The function giving correction factor.

Corresponding Data/MC so that energy in data should be divided by this.

Definition at line 148 of file B2BIIFixMdstModule_ecl.cc.

150  {
151  double return_value;
152 
153  // Default.
154  return_value = 1.0;
155 
156  double x = std::log10(Energy * 1000.0);
157  switch (Exp) {
158  case 7:
159  //if( x < 2.5 )
160  //{
161  // return_value = 0.85445 + 0.89162e-1*x
162  // -0.96202e-2*x*x -0.10944e-2*x*x*x;
163  //}
164  // New curve for b20020416 processed mdst.
165  if (x < 2.6) {
166  return_value = 0.85878 + 0.81947e-1 * x - 0.99708e-2 * x * x
167  - 0.28161e-3 * x * x * x;
168  }
169  break;
170  case 9:
171  //if( x < 3.0 )
172  //{
173  // return_value = 0.83416 + 0.93534e-1*x
174  // -0.71632e-2*x*x -0.19072e-2*x*x*x;
175  //}
176  // New curve for b20020416 processed mdst.
177  if (x < 3.2) {
178  return_value = 0.86582 + 0.63194e-1 * x - 0.59391e-2 * x * x
179  + 0.17727e-2 * x * x * x - 0.62325e-3 * x * x * x * x;
180  }
181  break;
182  case 11:
183  // Proper curve for b20010507 processed mdst.
184  //if( x < 3.0 )
185  //{
186  // return_value = 0.84927 + 0.86308e-1*x
187  // -0.93898e-2*x*x -0.10557e-2*x*x*x;
188  //}
189  //
190  // Proper curve for b20020416 processed mdst.
191  if (x < 3.7) {
192  if (x < 3.0) {
193  return_value = 0.88989 + 0.41082e-1 * x
194  - 0.21919e-2 * x * x + 0.27116e-2 * x * x * x - 0.89113e-3 * x * x * x * x;
195  } else { // Linear extrapolation to unity.
196  return_value = 0.994441 + 4.90176e-3 * (x - 3.0);
197  }
198  }
199  break;
200  case 13:
201  // Proper curve for b20010507 processed mdst.
202  //if( x < 3.0 )
203  //{
204  //return_value = 0.78138 + 0.17899*x
205  // -0.48821e-1*x*x +0.43692e-2*x*x*x;
206  //}
207  //
208  // Proper curve for b20020416 processed mdst.
209  if (x < 3.2) {
210  return_value = 0.87434 + 0.62145e-1 * x
211  - 0.29691e-2 * x * x - 0.15843e-2 * x * x * x + 0.86858e-4 * x * x * x * x;
212  }
213  break;
214  case 15:
215  // Proper curve for b20020125 processed mdst.
216  //if( x < 3.0 )
217  //{
218  // return_value = 0.86858 + 0.75587e-1*x
219  // -0.11150e-1*x*x -0.21454e-4*x*x*x;
220  //}
221  //else if( x < 3.67 ) // Lenear extrapolation to be unity.
222  //{
223  // return_value = 0.994412 + 8.11e-3*( x - 3.0 );
224  //}
225  // Proper curve for b20020416 processed mdst.
226  if (x < 3.2) {
227  return_value = 0.83073 + 0.10137 * x
228  - 0.59946e-2 * x * x - 0.56516e-2 * x * x * x + 0.87225e-3 * x * x * x * x;
229  }
230 
231  break;
232  case 17:
233  // Proper curve for b20020416 processed mdst.
234  if (x < 3.0) {
235  return_value = 0.89260 + 0.54731e-1 * x
236  - 0.25736e-2 * x * x - 0.16493e-2 * x * x * x + 0.1032e-3 * x * x * x * x;
237  } else if (x < 3.5) {
238  return_value = 0.997459 + 0.0059039 * (x - 3.0);
239  }
240  break;
241  case 19:
242  // Correction curve obtained by Run001-299 HadronB
243  // processed by b20020416.
244  if (Run < 300) {
245  if (x < 3.0) {
246  return_value = 0.86432 + 0.87554e-1 * x
247  - 0.84182e-2 * x * x - 0.39880e-2 * x * x * x + 0.69435e-3 * x * x * x * x;
248  }
249  }
250  if (299 < Run && Run < 900) { // For Run300-899 or later by b20020416.
251  if (x < 2.9) {
252  return_value = 0.92082 + 0.45896e-1 * x
253  - 0.68067e-2 * x * x + 0.94055e-3 * x * x * x - 0.27717e-3 * x * x * x * x;
254  }
255  }
256  if (899 < Run) { // Till the end.
257  if (x < 3.1) {
258  return_value = 0.85154 + 0.97812e-1 * x
259  - 0.85774e-2 * x * x - 0.59092e-2 * x * x * x + 0.1121e-2 * x * x * x * x;
260  }
261  }
262  break;
263  case 21:
264  // Proper curve for b20021205 processed mdst.
265  if (x < 3.0) {
266  return_value = 0.84940 + 0.86266e-1 * x
267  - 0.82204e-2 * x * x - 0.12912e-2 * x * x * x;
268  }
269  break;
270  case 23:
271  // Proper curve for b20021205 processed mdst.
272  if (x < 3.1) {
273  return_value = 0.85049 + 0.85418e-1 * x
274  - 0.45747e-2 * x * x - 0.40081e-2 * x * x * x + 0.52113e-3 * x * x * x * x;
275  }
276  break;
277  case 25:
278  if (x < 3.0) {
279  return_value = 0.87001 + 0.73693e-1 * x
280  - 0.80094e-2 * x * x - 0.78527e-3 * x * x * x + 0.25888e-4 * x * x * x * x;
281  }
282  break;
283  case 27: // It turned out no signif. change through all the runs.
284  if (x < 2.85) {
285  return_value = 0.90051 + 0.56094e-1 * x
286  - 0.14842e-1 * x * x + 0.55555e-2 * x * x * x - 0.10378e-2 * x * x * x * x;
287  }
288  break;
289  case 31:
290  if (iflag05th == 1) { // For 0.5MeV threshold.
291  // For b20040429.
292  if (x < 2.95) {
293  return_value = 0.80295 + 0.13395 * x
294  - 0.10773e-1 * x * x - 0.85861e-2 * x * x * x + 0.15331e-2 * x * x * x * x;
295  }
296  } else { // For theta-dep. threshold.
297  if (x < 3.25) {
298  return_value = 0.57169 + 0.32548 * x
299  - 0.41157e-1 * x * x - 0.21971e-1 * x * x * x + 0.50114e-2 * x * x * x * x;
300  }
301  }
302  break;
303  case 33:
304  if (iflag05th == 1) { // For 0.5MeV threshold.
305  // For b20040429.
306  if (x < 2.64) {
307  return_value = 0.81153 + 0.10847 * x
308  - 0.24652e-2 * x * x - 0.54738e-2 * x * x * x + 0.41243e-3 * x * x * x * x;
309  }
310  } else { // For theta-dep. threshold, b20090127.
311  if (x < 3.15) {
312  return_value = 0.59869 + 0.29276 * x
313  - 0.15849e-1 * x * x - 0.31322e-1 * x * x * x + 0.62491e-2 * x * x * x * x;
314  }
315  }
316  break;
317  case 35:
318  if (iflag05th == 1) { // For 0.5MeV threshold.
319  // For b20040429.
320  if (x < 2.54) {
321  return_value = 0.83528 + 0.10402 * x
322  - 0.62047e-2 * x * x - 0.62411e-2 * x * x * x + 0.10312e-2 * x * x * x * x;
323  }
324  } else { // For theta-dep. threshold, b20090127.
325  if (x < 3.2) {
326  return_value = 0.58155 + 0.30642 * x
327  - 0.16981e-1 * x * x - 0.32609e-1 * x * x * x + 0.64874e-2 * x * x * x * x;
328  }
329  }
330  break;
331  case 37:
332  if (iflag05th == 1) { // For 0.5MeV threshold.
333  if (x < 2.5) {
334  return_value = 0.83706 + 0.10726 * x
335  - 0.62423e-2 * x * x - 0.42425e-2 * x * x * x;
336  }
337  } else { // For theta-dep. threshold.
338  if (x < 3.15) {
339  return_value = 0.58801 + 0.30569 * x
340  - 0.18832e-1 * x * x - 0.32116e-1 * x * x * x + 0.64899e-2 * x * x * x * x;
341  }
342  }
343  break;
344  case 39:
345  if (iflag05th == 1) { // For 0.5MeV threshold.
346  if (x < 3.0) {
347  if (x < 2.8) {
348  return_value = 0.80827 + 0.095353 * x
349  - 0.14818e-2 * x * x - 0.23854e-2 * x * x * x - 0.22454e-3 * x * x * x * x;
350  } else {
351  return_value = 0.0112468 * (x - 2.8) + 0.997847;
352  }
353  }
354  } else { // For theta-dep. threshold.
355  if (x < 3.25) {
356  return_value = 0.61133 + 0.27115 * x
357  - 0.12724e-1 * x * x - 0.28167e-1 * x * x * x + 0.54699e-2 * x * x * x * x;
358  }
359  }
360  break;
361  case 41:
362  if (iflag05th == 1) { // For 0.5MeV threshold.
363  if (Run < 800) {
364  if (x < 2.5) {
365  return_value = 0.90188 + 0.76563e-1 * x
366  - 0.16328e-1 * x * x + 0.56816e-3 * x * x * x;
367  }
368  }
369  if (799 < Run) { // Run1200-1261 no signif. change from Run800-1199.
370  if (x < 2.95) {
371  return_value = 0.88077 + 0.71720e-1 * x
372  - 0.92197e-2 * x * x - 0.15932e-2 * x * x * x + 0.38133e-3 * x * x * x * x;
373  }
374  }
375  } else { // For theta-dep. threshold.
376  if (x < 3.2) {
377  return_value = 0.57808 + 0.31083 * x
378  - 0.20247e-1 * x * x - 0.31658e-1 * x * x * x + 0.64087e-2 * x * x * x * x;
379  }
380  }
381  break;
382  case 43: // modified 20090829.
383  if (iflag05th == 1) { // For 0.5MeV threshold.
384  if (Run < 300) {
385  if (x < 3.3) {
386  return_value = 0.85592 + 0.93352e-1 * x
387  - 0.93144e-2 * x * x - 0.43681e-2 * x * x * x + 0.7971e-3 * x * x * x * x;
388  }
389  }
390  if (299 < Run && Run < 700) { // added 20050630.
391  if (x < 3.0) {
392  return_value = 0.89169 + 0.73301e-1 * x
393  - 0.13856e-1 * x * x + 0.47303e-3 * x * x * x;
394  }
395  }
396  if (699 < Run) { // added 20050727
397  if (x < 3.1) {
398  return_value = 0.90799 + 0.69815e-1 * x
399  - 0.17490e-1 * x * x + 0.14651e-2 * x * x * x;
400  }
401  }
402  } else { // For theta-dep. threshold b20090127.
403  if (x < 3.25) {
404  return_value = 0.58176 + 0.30245 * x - 0.16390e-1 * x * x
405  - 0.32258e-1 * x * x * x + 0.64121e-2 * x * x * x * x;
406  }
407  //if( 999 < Run ){// For 5S runs, 2/fb, obsolete 20091209.
408  //if( x < 3.3 ){
409  //return_value = 0.58463 + 0.29780*x -0.14441e-1*x*x
410  //-0.32323e-1*x*x*x + 0.63607e-2*x*x*x*x;
411  //}
412  //}
413  }
414  break;
415  case 45:
416  if (iflag05th == 1) { // For 0.5MeV threshold.
417  if (x < 3.1) { // added 20060413
418  return_value = 0.84823 + 0.10394 * x
419  - 0.92233e-2 * x * x - 0.72700e-2 * x * x * x + 0.14552e-2 * x * x * x * x;
420  }
421  } else { // For theta-dep. threshold b20090127.
422  if (x < 3.25) {
423  return_value = 0.62797 + 0.23897 * x
424  + 0.10261e-1 * x * x - 0.35700e-1 * x * x * x + 0.63846e-2 * x * x * x * x;
425  }
426  }
427  break;
428  case 47:
429  if (iflag05th == 1) { // For 0.5MeV threshold.
430  if (x < 3.1) { // added 20060420
431  return_value = 0.86321 + 0.82987e-1 * x
432  - 0.12139e-1 * x * x - 0.12920e-3 * x * x * x;
433  }
434  } else { // For theta-dep. threshold b20090127.
435  if (x < 3.25) {
436  return_value = 0.58061 + 0.30399 * x
437  - 0.17520e-1 * x * x - 0.31559e-1 * x * x * x + 0.62681e-2 * x * x * x * x;
438  }
439  }
440  break;
441  case 49:
442  if (iflag05th == 1) { // For 0.5MeV threshold.
443  if (x < 3.13) { // added 20060511
444  if (x < 2.80) {
445  return_value = 0.85616 + 0.78041e-1 * x
446  - 0.38987e-2 * x * x - 0.31224e-2 * x * x * x + 0.33374e-3 * x * x * x * x;
447  } else {
448  return_value = ((1.0 - 0.99608) / (3.13 - 2.80)) * (x - 2.80) + 0.99608;
449  }
450  }
451  } else { // For theta-dep. threshold b20090127.
452  if (x < 3.3) {
453  return_value = 0.57687 + 0.29948 * x
454  - 0.10594e-1 * x * x - 0.34561e-1 * x * x * x + 0.67064e-2 * x * x * x * x;
455  }
456  }
457  break;
458  case 51:
459  if (iflag05th == 1) { // For 0.5MeV threshold, added 20070323.
460  if (x < 3.07) {
461  return_value = 0.89063 + 0.72152e-1 * x
462  - 0.14143e-1 * x * x + 0.73116e-3 * x * x * x;
463  }
464  } else { // For theta-dep. threshold b20090127.
465  if (x < 3.3) {
466  return_value = 0.59310 + 0.28618 * x
467  - 0.13858e-1 * x * x - 0.30230e-1 * x * x * x + 0.59173e-2 * x * x * x * x;
468  }
469  }
470  break;
471  case 53: // modified 20090807.
472  if (iflag05th == 1) { // For 0.5MeV threshold.
473  if (x < 2.63) {
474  //std::cout<<"Exp.53 0.5MeV threshold."<<std::endl;
475  return_value = 0.83425 + 0.10468 * x
476  - 0.53641e-2 * x * x - 0.60276e-2 * x * x * x + 0.77763e-3 * x * x * x * x;
477  }
478  } else { // For theta-dep. threshold b20090127.
479  if (x < 3.1) {
480  //std::cout<<"Exp.53 theta-dep. threshold."<<std::endl;
481  return_value = 0.66100 + 0.25192 * x
482  - 0.16419e-1 * x * x - 0.25720e-1 * x * x * x + 0.52189e-2 * x * x * x * x;
483  }
484  }
485  break;
486  case 55:
487  if (iflag05th == 1) { // For 0.5MeV threshold.
488  if (x < 3.3) {
489  return_value = 0.86202 + 0.79575e-1 * x
490  - 0.66721e-2 * x * x - 0.28609e-2 * x * x * x + 0.42784e-3 * x * x * x * x;
491  }
492  } else { // For theta-dep. threshold b20090127.
493  if (x < 3.25) {
494  return_value = 0.58789 + 0.29310 * x
495  - 0.15784e-1 * x * x - 0.30619e-1 * x * x * x + 0.60648e-2 * x * x * x * x;
496  }
497  }
498  break;
499  case 61:
500  if (Run < 1210) { // On 4S by Th.-dep. threshold.
501  if (x < 3.5) {
502  return_value = 0.68839 + 0.18218 * x
503  - 0.23140e-2 * x * x - 0.17439e-1 * x * x * x + 0.29960e-2 * x * x * x * x;
504  }
505  }
506  if (Run > 1209) { // 5S scan.
507  if (iflag05th == 1) { // processed by 0.5MeV threshold.
508  if (x < 3.3) {
509  if (x < 2.8) {
510  return_value = 0.94294 - 0.77497e-2 * x
511  - 0.43464e-3 * x * x + 0.99837e-2 * x * x * x - 0.23726e-2 * x * x * x * x;
512  } else {
513  return_value = 0.0162997 * (x - 2.80) + 0.991162;
514  }
515  }
516  } else { // 5S scan. by Th.-dep. threshold.
517  if (x < 3.5) {
518  return_value = 0.64816 + 0.22492 * x
519  - 0.91745e-2 * x * x - 0.21736e-1 * x * x * x + 0.41333e-2 * x * x * x * x;
520  }
521  }
522  }
523  break;
524  case 63:
525  if (x < 3.4) {
526  return_value = 0.69302 + 0.18393 * x
527  - 0.10983e-1 * x * x - 0.14148e-1 * x * x * x + 0.27298e-2 * x * x * x * x;
528  }
529  break;
530  case 65:
531  if (Run > 1000) { // 1S run turned out to be same as 5S scan.
532  if (iflag05th == 1) { // For 0.5MeV threshold.
533  if (x < 3.3) {
534  if (x < 2.8) {
535  return_value = 0.94294 - 0.77497e-2 * x
536  - 0.43464e-3 * x * x + 0.99837e-2 * x * x * x - 0.23726e-2 * x * x * x * x;
537  } else {
538  return_value = 0.0162997 * (x - 2.80) + 0.991162;
539  }
540  }
541  } else { // For theta-dep. threshold, b20090127.
542  if (x < 3.6) {
543  return_value = 0.70987 + 0.16230 * x
544  - 0.64867e-2 * x * x - 0.12021e-1 * x * x * x + 0.20874e-2 * x * x * x * x;
545  }
546  }
547  } else { // 4S runs processed with new lib.
548  if (x < 3.4) {
549  return_value = 0.66833 + 0.20602 * x
550  - 0.14322e-1 * x * x - 0.15712e-1 * x * x * x + 0.31114e-2 * x * x * x * x;
551  }
552  }
553  break;
554  case 67:
555  if (x < 3.4) {
556  return_value = 0.64196 + 0.23069 * x
557  - 0.20303e-1 * x * x - 0.15680e-1 * x * x * x + 0.31611e-2 * x * x * x * x;
558  }
559  break;
560  case 69:
561  if (x < 3.35) {
562  //return_value = 0.64196 + 0.23752*x
563  //-0.85197e-2*x*x -0.24366e-1*x*x*x +0.46397e-2*x*x*x*x;
564  return_value = 0.99 * (0.64196 + 0.23752 * x
565  - 0.85197e-2 * x * x - 0.24366e-1 * x * x * x
566  + 0.46397e-2 * x * x * x * x);
567  }
568  break;
569  case 71:
570  if (x < 3.35) {
571  return_value = 0.66541 + 0.12579 * x
572  + 0.89999e-1 * x * x - 0.58305e-1 * x * x * x + 0.86969e-2 * x * x * x * x;
573  }
574  break;
575  case 73:
576  if (x < 3.45) {
577  return_value = 0.62368 + 0.24142 * x
578  - 0.11677e-1 * x * x - 0.22477e-1 * x * x * x + 0.42765e-2 * x * x * x * x;
579  }
580  break;
581  }
582  // This return value has to be used as division.
583  // i.e. E_corrected = E_original/return_vale.
584  return return_value;
585  }

◆ pi0resol()

double pi0resol ( double  p,
double  theta,
const char *  side,
bool  mcdata,
int  ,
int   
)
staticprivate

Treat pi0 mass width as a func.

of pi0 momentum.

Definition at line 678 of file B2BIIFixMdstModule_ecl.cc.

◆ scale_error_impl()

static int Belle2::scale_error_impl ( const int  message_level,
const int  reprocess_version 
)
static

The implementation of B2BIIFixMdstModule::scale_error()

Returns
0 if scale error is properly applied. 1 if scale error is already applied. 2 if scale error for this exp is not available.
See also
B2BIIFixMdstModule::scale_error()

Definition at line 2768 of file B2BIIFixMdstModule_trk.cc.

2769  {
2770  SE_Message_Level = message_level;
2771  SE_Reprocess_Version = reprocess_version;
2772 
2773  int no_exp{0}, no_run{0}, no_evt{0}, no_frm{0}, expmc{0};
2774  get_event_id(&no_exp, &no_run, &no_evt, &no_frm, &expmc);
2775 
2776  if (DUMMY_scale == get_scale_error_func_for_exprun(no_exp, no_run)) return 2;
2777  if (is_already_scaled()) return 1;
2778 
2779  static int first_exp73 = true;
2780  if (no_exp == 73 && first_exp73) {
2781  first_exp73 = false;
2782  B2ERROR(
2783  "scale_error: warning: scale parameters for exp#71 are tentatively used for exp#73.");
2784  }
2785 
2786  double scale[5] = { // ... temporary
2787  1.0, // dr
2788  1.0, // phi0
2789  1.0, // kappa
2790  1.0, // dz
2791  1.0, // tanl
2792  };
2793 
2794 
2795  // scale error matrices in mdst_trk_fit
2796  Belle::Mdst_trk_fit_Manager& fitmgr = Belle::Mdst_trk_fit_Manager::get_manager();
2797  for (std::vector<Belle::Mdst_trk_fit>::iterator it = fitmgr.begin(); it != fitmgr.end(); ++it) {
2798  Belle::Mdst_trk_fit& fit = *it;
2799  if (fit.helix(2) == 0.) continue;
2800 
2801  const double pt = 1. / fabs(fit.helix(2));
2802  const double tanl = fit.helix(4);
2803 
2804  cal_scale_error(scale, pt, tanl, expmc, no_exp, no_run);
2805 
2806  fit.error(0, scale[0]*scale[0]*fit.error(0));
2807  fit.error(1, scale[1]*scale[0]*fit.error(1));
2808  fit.error(2, scale[1]*scale[1]*fit.error(2));
2809  fit.error(3, scale[2]*scale[0]*fit.error(3));
2810  fit.error(4, scale[2]*scale[1]*fit.error(4));
2811  fit.error(5, scale[2]*scale[2]*fit.error(5));
2812  fit.error(6, scale[3]*scale[0]*fit.error(6));
2813  fit.error(7, scale[3]*scale[1]*fit.error(7));
2814  fit.error(8, scale[3]*scale[2]*fit.error(8));
2815  fit.error(9, scale[3]*scale[3]*fit.error(9));
2816  fit.error(10, scale[4]*scale[0]*fit.error(10));
2817  fit.error(11, scale[4]*scale[1]*fit.error(11));
2818  fit.error(12, scale[4]*scale[2]*fit.error(12));
2819  fit.error(13, scale[4]*scale[3]*fit.error(13));
2820  fit.error(14, scale[4]*scale[4]*fit.error(14));
2821  }
2822 
2823 
2824  // scale error matrices in mdst_daughters
2825  Belle::Mdst_vee_daughters_Manager& daumgr = Belle::Mdst_vee_daughters_Manager::get_manager();
2826  for (std::vector<Belle::Mdst_vee_daughters>::iterator it = daumgr.begin(); it != daumgr.end(); ++it) {
2827  Belle::Mdst_vee_daughters& dau = *it;
2828  if (dau.helix_p(2) == 0. || dau.helix_m(2) == 0.) continue;
2829 
2830  // positive track
2831  const double pt_p = 1. / fabs(dau.helix_p(2));
2832  const double tanl_p = dau.helix_p(4);
2833 
2834  cal_scale_error(scale, pt_p, tanl_p, expmc, no_exp, no_run);
2835 
2836  dau.error_p(0, scale[0]*scale[0]*dau.error_p(0));
2837  dau.error_p(1, scale[1]*scale[0]*dau.error_p(1));
2838  dau.error_p(2, scale[1]*scale[1]*dau.error_p(2));
2839  dau.error_p(3, scale[2]*scale[0]*dau.error_p(3));
2840  dau.error_p(4, scale[2]*scale[1]*dau.error_p(4));
2841  dau.error_p(5, scale[2]*scale[2]*dau.error_p(5));
2842  dau.error_p(6, scale[3]*scale[0]*dau.error_p(6));
2843  dau.error_p(7, scale[3]*scale[1]*dau.error_p(7));
2844  dau.error_p(8, scale[3]*scale[2]*dau.error_p(8));
2845  dau.error_p(9, scale[3]*scale[3]*dau.error_p(9));
2846  dau.error_p(10, scale[4]*scale[0]*dau.error_p(10));
2847  dau.error_p(11, scale[4]*scale[1]*dau.error_p(11));
2848  dau.error_p(12, scale[4]*scale[2]*dau.error_p(12));
2849  dau.error_p(13, scale[4]*scale[3]*dau.error_p(13));
2850  dau.error_p(14, scale[4]*scale[4]*dau.error_p(14));
2851 
2852  // negative track
2853  const double pt_m = 1. / fabs(dau.helix_m(2));
2854  const double tanl_m = dau.helix_m(4);
2855 
2856  cal_scale_error(scale, pt_m, tanl_m, expmc, no_exp, no_run);
2857 
2858  dau.error_m(0, scale[0]*scale[0]*dau.error_m(0));
2859  dau.error_m(1, scale[1]*scale[0]*dau.error_m(1));
2860  dau.error_m(2, scale[1]*scale[1]*dau.error_m(2));
2861  dau.error_m(3, scale[2]*scale[0]*dau.error_m(3));
2862  dau.error_m(4, scale[2]*scale[1]*dau.error_m(4));
2863  dau.error_m(5, scale[2]*scale[2]*dau.error_m(5));
2864  dau.error_m(6, scale[3]*scale[0]*dau.error_m(6));
2865  dau.error_m(7, scale[3]*scale[1]*dau.error_m(7));
2866  dau.error_m(8, scale[3]*scale[2]*dau.error_m(8));
2867  dau.error_m(9, scale[3]*scale[3]*dau.error_m(9));
2868  dau.error_m(10, scale[4]*scale[0]*dau.error_m(10));
2869  dau.error_m(11, scale[4]*scale[1]*dau.error_m(11));
2870  dau.error_m(12, scale[4]*scale[2]*dau.error_m(12));
2871  dau.error_m(13, scale[4]*scale[3]*dau.error_m(13));
2872  dau.error_m(14, scale[4]*scale[4]*dau.error_m(14));
2873  }
2874 
2875  return 0;
2876  }

◆ scale_momenta_set()

void scale_momenta_set ( const int  mode,
const int  expno,
const int  runno,
double &  scale 
)
private

Return scale factors for 2001 summer confs.

analyses, only for exp < 17

Definition at line 399 of file B2BIIFixMdstModule_trk.cc.

◆ shift_tof()

void shift_tof ( const int  mode)
private

Shift tof times to account for residuals.

Based on scale_momenta code

Definition at line 52 of file B2BIIFixMdstModule_tof.cc.

53  {
54 //===============================================================
55 // Shifts tof times to account for residuals.
56 // Based on scale_momenta code
57 //======================================================
58 //Check existence of belle_event
59 
60  Belle::Belle_event_Manager& evtmgr = Belle::Belle_event_Manager::get_manager();
61  if (evtmgr.count() == 0) return; //do nothing if no Belle::Belle_Event
62 
63  Belle::Mdst_event_add_Manager& addmgr = Belle::Mdst_event_add_Manager::get_manager();
64  if (addmgr.count() == 0) return; //do nothing if no Belle::Mdst_Event_Add
65  if (addmgr[0].flag(4) != 0) return; //do nothing if already shifted
66 
67 //check mode
68  if (mode < 0 || mode > 2) {
69  B2ERROR("shift_tof: invalid mode specified;");
70  B2ERROR("mode must be 0, 1, 2");
71  return;
72  }
73 
74  int expmc = evtmgr[0].ExpMC();
75  int expno = evtmgr[0].ExpNo();
76  int runno = evtmgr[0].RunNo();
77 
78  if (expmc == 2) return; //for now, apply no shift to MC
79 
80  addmgr[0].flag(4, 1); //set flag
81 
82  // Loop over all charged tracks
83 
84  Belle::Mdst_charged_Manager& ChgMgr = Belle::Mdst_charged_Manager::get_manager();
85  for (std::vector<Belle::Mdst_charged>::iterator it = ChgMgr.begin();
86  it != ChgMgr.end(); ++it) {
87  Belle::Mdst_charged& Chg = *it;
88  if (Chg) {
89  // Get mdst_tof table for the track
90  Belle::Mdst_tof& Tof = Chg.tof();
91  if (Tof) {
92  // Get momentum and charge of track
93  TVector3 Mom(Chg.px(), Chg.py(), Chg.pz());
94  double pmom = Mom.Mag();
95  double sgn = Chg.charge();
96  // Loop over mass hypotheses
97  for (int im = 0; im < 5; im++) {
98  double shift = 0.;
99  shift_tof_set(expno, runno, mode, im, pmom, sgn, shift);
100  if (fabs(shift) < .005) continue;
101  double ot = Tof.tof_exp(im); //old t (expected)
102  double odt = ot - Tof.tof(); //old dt
103  double opid = Tof.pid(im); //old pid
104 // double ocl=Tof.cl(im); //old cl
105  int ndf = (int)(Tof.ndf(im) + .001); //ndf
106  if (opid > 0. && opid < 1.) {
107  double ct = ot + shift; //corr t
108  double cdt = ct - Tof.tof(); //corr dt
109  double err = fabs(odt) / sqrt(-2.*log(opid)); //est error
110  double cch = pow(cdt / err, 2); //corr chisq
111  double cpid = exp(-.5 * cch); //corr pid
112  double ccl = TMath::Prob(cch, ndf); //corr cl
113  Tof.tof_exp(im, ct);
114  Tof.pid(im, cpid);
115  Tof.cl(im, ccl);
116  }
117  }
118  }
119  }
120  }
121  }

Variable Documentation

◆ DUMMY_scale

const struct cal_scale_error_func_set_t DUMMY_scale
static
Initial value:

Dummy scale.

Definition at line 2608 of file B2BIIFixMdstModule_trk.cc.

◆ EXP0723_scale

const struct cal_scale_error_func_set_t EXP0723_scale
static

◆ EXP2527_scale

const struct cal_scale_error_func_set_t EXP2527_scale
static

◆ EXP31_scale

const struct cal_scale_error_func_set_t EXP31_scale
static

◆ EXP33_scale

const struct cal_scale_error_func_set_t EXP33_scale
static

◆ EXP35_scale

const struct cal_scale_error_func_set_t EXP35_scale
static

◆ EXP37_scale

const struct cal_scale_error_func_set_t EXP37_scale
static

◆ EXP3941_scale

const struct cal_scale_error_func_set_t EXP3941_scale
static

◆ EXP43_scale

const struct cal_scale_error_func_set_t EXP43_scale
static

◆ EXP45_scale

const struct cal_scale_error_func_set_t EXP45_scale
static

◆ EXP47_scale

const struct cal_scale_error_func_set_t EXP47_scale
static

◆ EXP49_scale

const struct cal_scale_error_func_set_t EXP49_scale
static

◆ EXP51_scale

const struct cal_scale_error_func_set_t EXP51_scale
static

◆ EXP53_scale

const struct cal_scale_error_func_set_t EXP53_scale
static

◆ EXP55_scale

const struct cal_scale_error_func_set_t EXP55_scale
static

◆ EXP6165_scale

const struct cal_scale_error_func_set_t EXP6165_scale
static

◆ EXP67_scale

const struct cal_scale_error_func_set_t EXP67_scale
static

◆ EXP6971_scale

const struct cal_scale_error_func_set_t EXP6971_scale
static

◆ SE_Message_Level

int SE_Message_Level
static

Message level of scale_error().

0: none, 1: warning, 2: info

Definition at line 1427 of file B2BIIFixMdstModule_trk.cc.

Belle2::cal_scale_error_EXP49_cosmic_data
static void cal_scale_error_EXP49_cosmic_data(double scale[5], double pt, double)
Scale error for Exp.49 Cosmic data.
Definition: B2BIIFixMdstModule_trk.cc:2041
Belle2::cal_scale_error_EXP3941_cosmic_mc
static void cal_scale_error_EXP3941_cosmic_mc(double scale[5], double pt, double)
Scale error for Exp.39,41 Cosmic MC.
Definition: B2BIIFixMdstModule_trk.cc:1674
Belle2::cal_scale_error_EXP3941_hadronic_mc
static void cal_scale_error_EXP3941_hadronic_mc(double scale[5], double pt, double)
Scale error for Exp.39,41 Hadron MC.
Definition: B2BIIFixMdstModule_trk.cc:2320
Belle2::cal_scale_error_EXP6971_hadronic_mc
static void cal_scale_error_EXP6971_hadronic_mc(double scale[5], double pt, double)
Scale error for Exp.69,71 Hadron MC.
Definition: B2BIIFixMdstModule_trk.cc:2490
Belle2::cal_scale_error_EXP47_cosmic_mc
static void cal_scale_error_EXP47_cosmic_mc(double scale[5], double pt, double)
Scale error for Exp.47 Cosmic MC.
Definition: B2BIIFixMdstModule_trk.cc:1722
Belle2::cal_scale_error_EXP33_hadronic_mc
static void cal_scale_error_EXP33_hadronic_mc(double scale[5], double pt, double tanl)
Scale error for Exp.33,35 Hadron MC.
Definition: B2BIIFixMdstModule_trk.cc:2259
Belle2::cal_scale_error_EXP43_hadronic_mc
static void cal_scale_error_EXP43_hadronic_mc(double scale[5], double pt, double)
Scale error for Exp.43 Hadron MC.
Definition: B2BIIFixMdstModule_trk.cc:2336
Belle2::cal_scale_error_EXP67_cosmic_data
static void cal_scale_error_EXP67_cosmic_data(double scale[5], double pt, double tanl)
Scale error for Exp.67 Cosmic data.
Definition: B2BIIFixMdstModule_trk.cc:2142
Belle2::DUMMY_scale
static const struct cal_scale_error_func_set_t DUMMY_scale
Dummy scale.
Definition: B2BIIFixMdstModule_trk.cc:2608
Belle2::cal_scale_error_EXP33_cosmic_mc
static void cal_scale_error_EXP33_cosmic_mc(double scale[5], double pt, double)
Scale error for Exp.33 Cosmic MC.
Definition: B2BIIFixMdstModule_trk.cc:1605
Belle2::SE_Reprocess_Version
static int SE_Reprocess_Version
Reprocess verison used in scale_error()
Definition: B2BIIFixMdstModule_trk.cc:1428
Belle2::cal_scale_error_EXP2527_cosmic_data
static void cal_scale_error_EXP2527_cosmic_data(double scale[5], const double pt, const double)
Scale error for Exp.25-27 Cosmic data.
Definition: B2BIIFixMdstModule_trk.cc:1891
Belle2::cal_scale_error_EXP6971_cosmic_mc
static void cal_scale_error_EXP6971_cosmic_mc(double scale[5], double pt, double tanl)
Scale error for Exp.69-71 Cosmic MC.
Definition: B2BIIFixMdstModule_trk.cc:1851
Belle2::cal_scale_error_EXP55_cosmic_data
static void cal_scale_error_EXP55_cosmic_data(double scale[5], double pt, double tanl)
Scale error for Exp.55 Cosmic data.
Definition: B2BIIFixMdstModule_trk.cc:2096
Belle2::cal_scale_error_EXP37_cosmic_data
static void cal_scale_error_EXP37_cosmic_data(double scale[5], double pt, double)
Scale error for Exp.37 Cosmic data.
Definition: B2BIIFixMdstModule_trk.cc:1977
Belle2::cal_scale_error_EXP2527_hadronic_mc
static void cal_scale_error_EXP2527_hadronic_mc(double scale[5], const double pt, const double tanl)
Scale error for Exp.25-27 Hadron MC.
Definition: B2BIIFixMdstModule_trk.cc:2215
Belle2::get_event_id
static void get_event_id(int *no_exp, int *no_run, int *no_evt, int *no_frm, int *expmc)
Get event ID.
Definition: B2BIIFixMdstModule_trk.cc:1462
Belle2::cal_scale_error
static void cal_scale_error(double scale[5], const double pt, const double tanl, const int expmc, const int no_exp, const int no_run)
Calculate scale error.
Definition: B2BIIFixMdstModule_trk.cc:2642
Belle2::get_scale_error_func_for_exprun
static cal_scale_error_func_set_t get_scale_error_func_for_exprun(const int no_exp, const int)
Get scale error fucntion for different Exp.
Definition: B2BIIFixMdstModule_trk.cc:2617
Belle2::cal_scale_error_EXP55_hadronic_mc
static void cal_scale_error_EXP55_hadronic_mc(double scale[5], double pt, double)
Scale error for Exp.55 Hadron MC.
Definition: B2BIIFixMdstModule_trk.cc:2439
Belle2::cal_scale_error_EXP3941_cosmic_data
static void cal_scale_error_EXP3941_cosmic_data(double scale[5], double pt, double)
Scale error for Exp.39-41 Cosmic data.
Definition: B2BIIFixMdstModule_trk.cc:1993
Belle2::B2BIIFixMdstModule::shift_tof_set
void shift_tof_set(const int expno, const int runno, const int mode, const int im, const double pmom, const double sgn, double &shift)
Return time shifts for different exp.
Definition: B2BIIFixMdstModule_tof.cc:122
Belle2::cal_scale_error_EXP35_cosmic_data
static void cal_scale_error_EXP35_cosmic_data(double scale[5], double pt, double tanl)
Scale error for Exp.35 Cosmic data.
Definition: B2BIIFixMdstModule_trk.cc:1957
Belle2::cal_scale_error_EXP43_cosmic_mc
static void cal_scale_error_EXP43_cosmic_mc(double scale[5], double pt, double)
Scale error for Exp.43 Cosmic MC.
Definition: B2BIIFixMdstModule_trk.cc:1690
Belle2::cal_scale_error_EXP37_cosmic_mc
static void cal_scale_error_EXP37_cosmic_mc(double scale[5], double pt, double)
Scale error for Exp.37 Cosmic MC.
Definition: B2BIIFixMdstModule_trk.cc:1657
Belle2::cal_scale_error_EXP33_cosmic_data
static void cal_scale_error_EXP33_cosmic_data(double scale[5], double pt, double)
Scale error for Exp.33 Cosmic data.
Definition: B2BIIFixMdstModule_trk.cc:1927
Belle2::cal_scale_error_EXP6165_cosmic_data
static void cal_scale_error_EXP6165_cosmic_data(double scale[5], double pt, double tanl)
Scale error for Exp.61-65 Cosmic data.
Definition: B2BIIFixMdstModule_trk.cc:2119
Belle2::cal_scale_error_EXP67_hadronic_mc
static void cal_scale_error_EXP67_hadronic_mc(double scale[5], double pt, double)
Scale error for Exp.67 Hadron MC.
Definition: B2BIIFixMdstModule_trk.cc:2471
Belle2::cal_scale_error_EXP4547_cosmic_data
static void cal_scale_error_EXP4547_cosmic_data(double scale[5], double pt, double)
Scale error for Exp.45,47 Cosmic data.
Definition: B2BIIFixMdstModule_trk.cc:2025
Belle2::cal_scale_error_EXP35_hadronic_mc
static void cal_scale_error_EXP35_hadronic_mc(double scale[5], double pt, double tanl)
Scale error for Exp.33,35 Hadron MC.
Definition: B2BIIFixMdstModule_trk.cc:2289
Belle2::cal_scale_error_EXP0723_cosmic_data
static void cal_scale_error_EXP0723_cosmic_data(double scale[5], const double pt, const double)
Scale error for Exp.7-23 Cosmic data.
Definition: B2BIIFixMdstModule_trk.cc:1875
Belle2::cal_scale_error_EXP53_hadronic_mc
static void cal_scale_error_EXP53_hadronic_mc(double scale[5], double pt, double)
Scale error for Exp.53 Hadron MC.
Definition: B2BIIFixMdstModule_trk.cc:2423
Belle2::cal_scale_error_EXP55_cosmic_mc
static void cal_scale_error_EXP55_cosmic_mc(double scale[5], double pt, double)
Scale error for Exp.55 Cosmic MC.
Definition: B2BIIFixMdstModule_trk.cc:1786
Belle2::cal_scale_error_EXP6165_hadronic_mc
static void cal_scale_error_EXP6165_hadronic_mc(double scale[5], double pt, double)
Scale error for Exp.61-65 Hadron MC.
Definition: B2BIIFixMdstModule_trk.cc:2455
Belle2::cal_scale_error_EXP49_hadronic_mc
static void cal_scale_error_EXP49_hadronic_mc(double scale[5], double pt, double)
Scale error for Exp.49 Hadron MC.
Definition: B2BIIFixMdstModule_trk.cc:2387
Belle2::null_scale
static void null_scale(double[5], double, double)
Dummy function.
Definition: B2BIIFixMdstModule_trk.cc:1452
Belle2::cal_scale_error_EXP53_cosmic_mc
static void cal_scale_error_EXP53_cosmic_mc(double scale[5], double pt, double)
Scale error for Exp.53 Cosmic MC.
Definition: B2BIIFixMdstModule_trk.cc:1770
Belle2::cal_scale_error_EXP2527_cosmic_mc
static void cal_scale_error_EXP2527_cosmic_mc(double scale[5], const double pt, const double)
Scale error for Exp.25-27 Cosmic MC.
Definition: B2BIIFixMdstModule_trk.cc:1568
Belle2::cal_scale_error_EXP53_cosmic_data
static void cal_scale_error_EXP53_cosmic_data(double scale[5], double pt, double)
Scale error for Exp.53 Cosmic data.
Definition: B2BIIFixMdstModule_trk.cc:2080
Belle2::SE_Message_Level
static int SE_Message_Level
Message level of scale_error().
Definition: B2BIIFixMdstModule_trk.cc:1427
Belle2::cal_scale_error_EXP37_hadronic_mc
static void cal_scale_error_EXP37_hadronic_mc(double scale[5], double pt, double tanl)
Scale error for Exp.37 Hadron MC.
Definition: B2BIIFixMdstModule_trk.cc:2300
Belle2::cal_scale_error_EXP45_cosmic_mc
static void cal_scale_error_EXP45_cosmic_mc(double scale[5], double pt, double)
Scale error for Exp.45 Cosmic MC.
Definition: B2BIIFixMdstModule_trk.cc:1706
Belle2::cal_scale_error_EXP51_cosmic_mc
static void cal_scale_error_EXP51_cosmic_mc(double scale[5], double pt, double)
Scale error for Exp.51 Cosmic MC.
Definition: B2BIIFixMdstModule_trk.cc:1754
Belle2::cal_scale_error_EXP0723_hadronic_mc
static void cal_scale_error_EXP0723_hadronic_mc(double scale[5], const double pt, const double tanl)
Scale error for Exp.7-23 Hadron MC.
Definition: B2BIIFixMdstModule_trk.cc:2192
Belle2::cal_scale_error_EXP51_cosmic_data
static void cal_scale_error_EXP51_cosmic_data(double scale[5], double pt, double tanl)
Scale error for Exp.51 Cosmic data.
Definition: B2BIIFixMdstModule_trk.cc:2057
Belle2::cal_scale_error_EXP49_cosmic_mc
static void cal_scale_error_EXP49_cosmic_mc(double scale[5], double pt, double)
Scale error for Exp.49 Cosmic MC.
Definition: B2BIIFixMdstModule_trk.cc:1738
Belle2::cal_scale_error_EXP51_hadronic_mc
static void cal_scale_error_EXP51_hadronic_mc(double scale[5], double pt, double tanl)
Scale error for Exp.51 Hadron MC.
Definition: B2BIIFixMdstModule_trk.cc:2404
Belle2::cal_scale_error_EXP45_hadronic_mc
static void cal_scale_error_EXP45_hadronic_mc(double scale[5], double pt, double tanl)
Scale error for Exp.45 Hadron MC.
Definition: B2BIIFixMdstModule_trk.cc:2352
Belle2::cal_scale_error_EXP6971_cosmic_data
static void cal_scale_error_EXP6971_cosmic_data(double scale[5], double pt, double tanl)
Scale error for Exp.69,71 Cosmic data.
Definition: B2BIIFixMdstModule_trk.cc:2168
Belle2::cal_scale_error_EXP31_hadronic_mc
static void cal_scale_error_EXP31_hadronic_mc(double scale[5], double pt, double tanl)
Scale error for Exp.31 Hadron MC.
Definition: B2BIIFixMdstModule_trk.cc:2238
Belle2::is_already_scaled
static bool is_already_scaled(void)
Check if event is already scaled.
Definition: B2BIIFixMdstModule_trk.cc:1479
Belle2::cal_scale_error_EXP31_cosmic_data
static void cal_scale_error_EXP31_cosmic_data(double scale[5], double pt, double)
Scale error for Exp.31 Cosmic data.
Definition: B2BIIFixMdstModule_trk.cc:1907
Belle2::cal_scale_error_EXP0723_cosmic_mc
static void cal_scale_error_EXP0723_cosmic_mc(double scale[5], const double pt, const double)
Scale error for Exp.7-23 Cosmic MC.
Definition: B2BIIFixMdstModule_trk.cc:1552
Belle2::cal_scale_error_EXP67_cosmic_mc
static void cal_scale_error_EXP67_cosmic_mc(double scale[5], double pt, double tanl)
Scale error for Exp.67 Cosmic MC.
Definition: B2BIIFixMdstModule_trk.cc:1825
Belle2::cal_scale_error_EXP43_cosmic_data
static void cal_scale_error_EXP43_cosmic_data(double scale[5], double pt, double)
Scale error for Exp.43 Cosmic data.
Definition: B2BIIFixMdstModule_trk.cc:2009
Belle2::cal_scale_error_EXP47_hadronic_mc
static void cal_scale_error_EXP47_hadronic_mc(double scale[5], double pt, double)
Scale error for Exp.47 Hadron MC.
Definition: B2BIIFixMdstModule_trk.cc:2371
Belle2::cal_scale_error_EXP31_cosmic_mc
static void cal_scale_error_EXP31_cosmic_mc(double scale[5], double pt, double)
Scale error for Exp.31 Cosmic MC.
Definition: B2BIIFixMdstModule_trk.cc:1584
Belle2::cal_scale_error_EXP6165_cosmic_mc
static void cal_scale_error_EXP6165_cosmic_mc(double scale[5], double pt, double tanl)
Scale error for Exp.61-65 Cosmic MC.
Definition: B2BIIFixMdstModule_trk.cc:1802
Belle2::cal_scale_error_EXP35_cosmic_mc
static void cal_scale_error_EXP35_cosmic_mc(double scale[5], double pt, double tanl)
Scale error for Exp.35 Cosmic MC.
Definition: B2BIIFixMdstModule_trk.cc:1636