Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
tw_corr.C File Reference
#include <TDirectory.h>
#include <TH1.h>
#include <TH2.h>
#include <TF1.h>
#include <TMath.h>
#include <TCanvas.h>
#include <TProfile.h>
#include <TFitResult.h>
#include <TFitResultPtr.h>
#include <TString.h>
#include <fstream>

Go to the source code of this file.

Macros

#define DEBUG   false
 
#define OUTPUT   false
 

Functions

Double_t fitf (Double_t *x, Double_t *par)
 
void tw_fit (TProfile *h_tw, int arm, int module)
 
void tw_plot (char const *inputFile)
 
void tw_corr (char const *inputFile)
 

Variables

TFile * infile
 
TFile * outfile
 
const Int_t NMODULES = 8
 
const Double_t THRESHOLD = 16
 
const Int_t BINS_PP = 1000
 
const Int_t PP_MAX = 1000
 
const Int_t PP_MIN = 0
 
const Int_t BINS_DT = 100
 
const Int_t DT_MAX = 5
 
const Int_t DT_MIN = -5
 
const Int_t PROF_WIDTH = 82
 
const Int_t PROF_MIN = 180
 
const Int_t PROF_MAX = 1000
 
Double_t dtMeanL [NMODULES] = {0}
 
Double_t dtMeanR [NMODULES] = {0}
 
Double_t mpv [2][NMODULES] = { {0},{0} }
 
Double_t c0 [2][NMODULES] = { {0},{0} }
 
Double_t c1 [2][NMODULES] = { {0},{0} }
 
Double_t c2 [2][NMODULES] = { {0},{0} }
 
TH1D * h_dt_l [NMODULES]
 
TH1D * h_dt_r [NMODULES]
 
TH1D * h_dt_l_corr [NMODULES]
 
TH1D * h_dt_r_corr [NMODULES]
 
TH1D * h_pp_l [NMODULES]
 
TH1D * h_pp_r [NMODULES]
 
TH1D * h_means_b
 
TH1D * h_sigmas_b
 
TH1D * h_means_a
 
TH1D * h_sigmas_a
 
TH2F * h_dt_vs_pp_l [NMODULES]
 
TH2F * h_dt_vs_pp_r [NMODULES]
 
TH2F * h_dt_vs_pp_l_corr [NMODULES]
 
TH2F * h_dt_vs_pp_r_corr [NMODULES]
 
TProfile * g_dt_vs_pp_l [NMODULES]
 
TProfile * g_dt_vs_pp_r [NMODULES]
 

Macro Definition Documentation

#define OUTPUT   false

Function Documentation

Double_t fitf ( Double_t *  x,
Double_t *  par 
)

Definition at line 96 of file tw_corr.C.

References f, and THRESHOLD.

Referenced by tw_fit().

void tw_corr ( char const *  inputFile)
void tw_fit ( TProfile *  h_tw,
int  arm,
int  module 
)

Definition at line 103 of file tw_corr.C.

References c0, c1, c2, and fitf().

Referenced by tw_plot().

Variable Documentation

const Int_t BINS_DT = 100

Definition at line 54 of file tw_corr.C.

Referenced by tw_plot().

const Int_t BINS_PP = 1000

Definition at line 51 of file tw_corr.C.

Referenced by tw_plot().

else c1 = { {0},{0} }

Definition at line 68 of file tw_corr.C.

Referenced by AddPlot(), bcal_hist_eff_summary(), BCAL_SiPM_saturation(), DBCALUnifiedHit_factory::brun(), Btot_vs_r_vs_z(), CDC_dedx(), DEventProcessor_dc_alignment::cdc_drift_distance(), JEventProcessor_FDCProjectionResiduals::CDCDriftDistance(), DTrackFitterStraightTrack::CDCDriftDistance(), ChebyshevTestFit(), DTrackFitterKalmanSIMD::ComputeCDCDrift(), ConvertFromNDC1D(), ConvertFromNDC2D(), covariance_compare(), daq_words(), daq_words_compare(), dBtot_vs_r_vs_z(), density_vs_r_vs_z(), display(), DMatrix1x2::DMatrix1x2(), DMatrix1x3::DMatrix1x3(), DMatrix1x4::DMatrix1x4(), DMatrix1x5::DMatrix1x5(), JEventProcessor_BCAL_inv_mass::evnt(), DTAGHHit_factory_Calib::evnt(), DTAGMHit_factory_Calib::evnt(), DPSCHit_factory::evnt(), DEventProcessor_BCAL_Shower::evnt(), ExtractCDCDeformation(), ExtractTimeWalk(), fcal_invmass(), JEventProcessor_BCAL_TimeCalibration::fini(), FitCathodeAlignment(), fitparm_summary(), fits_errors(), FitTimeToDistance(), if(), DBCALCluster_factory::overlap(), DBCALCluster_factory::overlap_charged(), P_vs_r(), P_vs_z(), Parameterize(), plot_bcal_hadronic_eff(), Plot_BCAL_LED_Ratio_low_up(), Plot_BCAL_LED_Ratio_low_up_quadavg(), Plot_BCAL_LED_Ratio_stack(), Plot_BCAL_LED_Ratio_stack_quadavg(), plot_cdc_offsets(), plot_compare_hists(), plot_fdc_offsets(), plot_gain_factors(), plot_p2pi_trees(), plot_Z2pi_trees(), DEventProcessor_bcal_calib::PlotLines(), DEventProcessor_dc_alignment::PlotLines(), PSEcorr(), radlen_vs_r_vs_z(), SC_PTC_Plot(), SC_PTC_ResolvsZPlot(), DMatrix2x1::Set(), DTrackFitterStraightTrack::Smooth(), ST_Monitoring_Eff(), ST_Monitoring_Pid(), TAGH_doubles_E(), TAGH_doubles_ID(), TAGM_clusters_E(), TAGM_clusters_occ(), TAGM_clusters_t(), Read_bcal_hadronic_eff2::Terminate(), TimeToDistance(), trkeff(), tw_corr(), tw_fit(), and twopi_primakoff().

const Int_t DT_MAX = 5

Definition at line 55 of file tw_corr.C.

Referenced by tw_plot().

const Int_t DT_MIN = -5

Definition at line 56 of file tw_corr.C.

Referenced by tw_plot().

Double_t dtMeanL[NMODULES] = {0}

Definition at line 62 of file tw_corr.C.

Referenced by tw_corr(), and tw_plot().

Double_t dtMeanR[NMODULES] = {0}

Definition at line 63 of file tw_corr.C.

Referenced by tw_corr(), and tw_plot().

TProfile* g_dt_vs_pp_l[NMODULES]

Definition at line 92 of file tw_corr.C.

Referenced by tw_plot().

TProfile* g_dt_vs_pp_r[NMODULES]

Definition at line 93 of file tw_corr.C.

Referenced by tw_plot().

TH1D* h_dt_l[NMODULES]

Definition at line 72 of file tw_corr.C.

Referenced by tw_plot().

TH1D* h_dt_l_corr[NMODULES]

Definition at line 74 of file tw_corr.C.

Referenced by tw_corr().

TH1D* h_dt_r[NMODULES]

Definition at line 73 of file tw_corr.C.

Referenced by tw_plot().

TH1D* h_dt_r_corr[NMODULES]

Definition at line 75 of file tw_corr.C.

Referenced by tw_corr().

TH2F* h_dt_vs_pp_l[NMODULES]

Definition at line 86 of file tw_corr.C.

Referenced by tw_corr(), and tw_plot().

TH2F* h_dt_vs_pp_l_corr[NMODULES]

Definition at line 88 of file tw_corr.C.

Referenced by tw_corr(), and tw_plot().

TH2F* h_dt_vs_pp_r[NMODULES]

Definition at line 87 of file tw_corr.C.

Referenced by tw_corr(), and tw_plot().

TH2F* h_dt_vs_pp_r_corr[NMODULES]

Definition at line 89 of file tw_corr.C.

Referenced by tw_corr(), and tw_plot().

TH1D* h_means_a

Definition at line 82 of file tw_corr.C.

Referenced by tw_corr(), and tw_plot().

TH1D* h_means_b

Definition at line 80 of file tw_corr.C.

Referenced by tw_corr(), and tw_plot().

TH1D* h_pp_l[NMODULES]

Definition at line 76 of file tw_corr.C.

Referenced by tw_plot().

TH1D* h_pp_r[NMODULES]

Definition at line 77 of file tw_corr.C.

Referenced by tw_plot().

TH1D* h_sigmas_a

Definition at line 83 of file tw_corr.C.

Referenced by tw_corr(), and tw_plot().

TH1D* h_sigmas_b

Definition at line 81 of file tw_corr.C.

Referenced by tw_corr(), and tw_plot().

Double_t mpv[2][NMODULES] = { {0},{0} }

Definition at line 64 of file tw_corr.C.

Referenced by tw_corr(), and tw_plot().

const Int_t NMODULES = 8

Definition at line 49 of file tw_corr.C.

const Int_t PP_MAX = 1000

Definition at line 52 of file tw_corr.C.

Referenced by tw_plot().

const Int_t PP_MIN = 0

Definition at line 53 of file tw_corr.C.

Referenced by tw_plot().

const Int_t PROF_MAX = 1000

Definition at line 59 of file tw_corr.C.

Referenced by tw_plot().

const Int_t PROF_MIN = 180

Definition at line 58 of file tw_corr.C.

Referenced by tw_plot().

const Int_t PROF_WIDTH = 82

Definition at line 57 of file tw_corr.C.

Referenced by tw_plot().

const Double_t THRESHOLD = 16

Definition at line 50 of file tw_corr.C.

Referenced by fitf(), and tw_corr().