Hall-D Software
alpha
|
Go to the source code of this file.
Functions | |
gROOT | SetBatch () |
f | SetParLimits (0, 0.0, 1e8) |
f | SetParLimits (1, 0.025, 0.080) |
f | SetParLimits (2, 0.0, 10.0) |
f | SetParLimits (3, 0.0, 1e8) |
f | SetParLimits (4, 0.04, 0.25) |
f | SetParLimits (5, 0.004, 0.013) |
f2 | SetParLimits (0, 0.0, 1e6) |
f2 | SetParLimits (2, 0.006, 0.018) |
cFits | Divide (8, 8) |
for (unsigned int i=1;i<=hPi0MassVsChNum->GetNbinsX();i++) | |
cFits | SaveAs ("c_final.png") |
for (unsigned int i=0;i< 2800;i++) | |
textOut | open ("gains.txt") |
for (auto i:newGains) | |
textOut | close () |
outFile | Write () |
outFile | Close () |
Variables | |
TProfile * | hCurrentGainConstants = (TProfile *) gDirectory->Get("FCAL_Pi0HFA/CurrentGainConstants") |
TH1I * | hPi0Mass = (TH1I *) gDirectory->Get("FCAL_Pi0HFA/Pi0Mass") |
TH2I * | hPi0MassVsChNum = (TH2I *) gDirectory->Get("FCAL_Pi0HFA/Pi0MassVsChNum") |
TH2F * | hPi0MassVsChNumWeighted = (TH2F *) gDirectory->Get("FCAL_Pi0HFA/Pi0MassVsChNumWeighted") |
TH2F * | hPi0MassVsChNumWeightedSquared = (TH2F *) gDirectory->Get("FCAL_Pi0HFA/Pi0MassVsChNumWeightedSquared") |
TH2I * | hPi0MassVsE = (TH2I *) gDirectory->Get("FCAL_Pi0HFA/Pi0MassVsE") |
TFile * | outFile = new TFile("FCALPi0FitResults.root","RECREATE") |
double | fitPi0Mean [2800] |
TH1F * | hFitPi0Mass = new TH1F("FitPi0Mass", "#pi^{0} Mass fit result", 2800, -0.5, 2799.5) |
TH1F * | hFitGain = new TH1F("FitGain", "new gain result", 2800, -0.5, 2799.5) |
TF1 * | f = new TF1("f","landau(0)+gaus(3)", 0.025, 0.250) |
TF1 * | f2 = new TF1("f2","gaus", 0.025, 0.250) |
TCanvas * | cFits = new TCanvas("cFits", "cFits", 800, 800) |
TCanvas * | c = new TCanvas("c", "c", 1200, 1200) |
double | pdgPi0Mass = 0.1349766 |
double | newGains [2800] |
double | total = 0. |
double | counter = 0. |
TH1I * | hGains = new TH1I("NewGains", "New Gains" , 100, 0.0, 5.0) |
double | averageGain = total / counter |
ofstream | textOut |
textOut close | ( | ) |
Referenced by async_filebuf::close(), and hdv_fulllistframe::hdv_fulllistframe().
outFile Close | ( | ) |
cFits Divide | ( | 8 | , |
8 | |||
) |
for | ( | unsigned int | i = 1 ; i <= hPi0MassVsChNum->GetNbinsX(); i++ | ) |
Definition at line 35 of file FitGains.C.
References max.
for | ( | ) |
Definition at line 165 of file FitGains.C.
References counter.
for | ( | auto i:newGains | ) |
Definition at line 191 of file FitGains.C.
References counter.
textOut open | ( | "gains.txt" | ) |
Referenced by main(), and async_filebuf::open().
cFits SaveAs | ( | "c_final.png" | ) |
gROOT SetBatch | ( | ) |
f SetParLimits | ( | 0 | , |
0. | 0, | ||
1e8 | |||
) |
f2 SetParLimits | ( | 1 | , |
0. | 025, | ||
0. | 080 | ||
) |
f SetParLimits | ( | 2 | , |
0. | 0, | ||
10. | 0 | ||
) |
f SetParLimits | ( | 3 | , |
0. | 0, | ||
1e8 | |||
) |
f SetParLimits | ( | 4 | , |
0. | 04, | ||
0. | 25 | ||
) |
f SetParLimits | ( | 5 | , |
0. | 004, | ||
0. | 013 | ||
) |
f2 SetParLimits | ( | 0 | , |
0. | 0, | ||
1e6 | |||
) |
f2 SetParLimits | ( | 2 | , |
0. | 006, | ||
0. | 018 | ||
) |
outFile Write | ( | ) |
Definition at line 179 of file FitGains.C.
TCanvas* c = new TCanvas("c", "c", 1200, 1200) |
Definition at line 34 of file FitGains.C.
TCanvas* cFits = new TCanvas("cFits", "cFits", 800, 800) |
Definition at line 32 of file FitGains.C.
counter = 0. |
Definition at line 151 of file FitGains.C.
Referenced by JEventProcessor_BCAL_TDC_Timing::brun(), DTAGHGeometry::E_to_counter(), Df250EmulatorAlgorithm_v2::EmulateFirmware(), Df250EmulatorAlgorithm_v3::EmulateFirmware(), Df250EmulatorAlgorithm_v1::EmulateFirmware(), JEventProcessor_PS_E_calib::evnt(), DTAGHHit_factory_Calib::evnt(), for(), GetCCDBConstants(), GetCCDBConstants2D(), DTAGHGeometry::getEhigh(), DTAGHGeometry::getElow(), GetHistogram(), DTAGHHit_factory_Calib::init(), DTAGHHit_factory_Calib::load_ccdb_constants(), WriteFitResults(), WriteFitResults2(), WriteGaussianFitResults(), and WriteTimewalkFitResults().
TF1* f = new TF1("f","landau(0)+gaus(3)", 0.025, 0.250) |
Definition at line 21 of file FitGains.C.
Referenced by AdjustTiming(), MyProcessor::brun(), CDC_gains(), chebyshev_FindBestFunction(), chebyshev_Fit(), ChebyshevTestFit(), covariance_compare(), density_vs_r_vs_z(), display(), drawWaveform(), efficiency(), JEventProcessor_CDC_drift::evnt(), DEventProcessor_BCAL_gainmatrix::evnt(), JEventProcessor_highlevel_online::evnt(), extract_photon_energy_spectrum(), ExtractTDCADCTiming(), ExtractTrackBasedTiming(), MyProcessor::FillGraphics(), DFDCPseudo_factory::FindCentroid(), DFDCPseudo::FindCentroid(), DFDCPseudo_factory::FindNewParmVec(), DFDCPseudo::FindNewParmVec(), DBCALShower_factory_KLOE::Fit_ls(), FitCathodeAlignment(), FitCathodeProjections(), fitf(), FitFunctionLeft(), FitFunctionRight(), fits(), DReferenceTrajectory::FitVertex(), gaussian_fits(), gen_covariance_code(), DDANAEVIO_factory::get_tagNum_dictionary(), DTrackFitterKalmanSIMD::GetdEdx(), GetReferenceFile(), DTrackTimeBased_factory::GetTruthMatchingFOM(), grkuta_(), xstream::buffer::grow(), HistMacro_CDCTimeToDistance(), main(), myfunction(), DVector2S::operator*=(), operator/(), DVector2S::operator/=(), P_vs_r(), P_vs_z(), ParameterizeBField(), plot_p2pi_trees(), plot_Z2pi_trees(), radlen_vs_r_vs_z(), HDEVIO::ReadFileMap(), combinedResidFunc::resid(), DRandom2::SampleRange(), SC_PTC_Plot(), SC_PTC_ResolvsZPlot(), SetPrimaryPeaks(), TAGM_clusters_E(), TAGM_clusters_occ(), TAGM_clusters_t(), twopi_primakoff(), DMagneticFieldMapFineMesh::WriteEvioFile(), WriteFile(), and WriteTimewalkFitResults().
TF1* f2 = new TF1("f2","gaus", 0.025, 0.250) |
Definition at line 28 of file FitGains.C.
Referenced by daq_words_compare(), drawWaveform(), DFDCPseudo_factory::FindNewParmVec(), DFDCPseudo::FindNewParmVec(), FitTimeToDistance(), grkuta_(), and plot_cdc_offsets().
double fitPi0Mean[2800] |
Definition at line 16 of file FitGains.C.
TProfile* hCurrentGainConstants = (TProfile *) gDirectory->Get("FCAL_Pi0HFA/CurrentGainConstants") |
Definition at line 7 of file FitGains.C.
Referenced by JEventProcessor_FCAL_Pi0HFA::brun(), and JEventProcessor_FCAL_Pi0HFA::init().
TH1F* hFitGain = new TH1F("FitGain", "new gain result", 2800, -0.5, 2799.5) |
Definition at line 19 of file FitGains.C.
TH1F* hFitPi0Mass = new TH1F("FitPi0Mass", "#pi^{0} Mass fit result", 2800, -0.5, 2799.5) |
Definition at line 18 of file FitGains.C.
TH1I* hGains = new TH1I("NewGains", "New Gains" , 100, 0.0, 5.0) |
Definition at line 152 of file FitGains.C.
TH1I* hPi0Mass = (TH1I *) gDirectory->Get("FCAL_Pi0HFA/Pi0Mass") |
Definition at line 8 of file FitGains.C.
TH2I* hPi0MassVsChNum = (TH2I *) gDirectory->Get("FCAL_Pi0HFA/Pi0MassVsChNum") |
Definition at line 9 of file FitGains.C.
TH2F* hPi0MassVsChNumWeighted = (TH2F *) gDirectory->Get("FCAL_Pi0HFA/Pi0MassVsChNumWeighted") |
Definition at line 10 of file FitGains.C.
TH2F* hPi0MassVsChNumWeightedSquared = (TH2F *) gDirectory->Get("FCAL_Pi0HFA/Pi0MassVsChNumWeightedSquared") |
Definition at line 11 of file FitGains.C.
TH2I* hPi0MassVsE = (TH2I *) gDirectory->Get("FCAL_Pi0HFA/Pi0MassVsE") |
Definition at line 12 of file FitGains.C.
double newGains[2800] |
Definition at line 150 of file FitGains.C.
TFile* outFile = new TFile("FCALPi0FitResults.root","RECREATE") |
Definition at line 15 of file FitGains.C.
Referenced by AdjustTiming(), ApplyCDCOffsets(), ApplyFDCOffsets(), DumpCDCOffsets(), DumpFDCOffsets(), ExtractTDCADCTiming(), ExtractTrackBasedTiming(), FitCathodeAlignment(), FitCathodeProjections(), and SetPrimaryPeaks().
double pdgPi0Mass = 0.1349766 |
Definition at line 149 of file FitGains.C.
ofstream textOut |
Definition at line 187 of file FitGains.C.
double total = 0. |
Definition at line 151 of file FitGains.C.
Referenced by ExtractCDCDeformation(), DTrackTimeBased_factory::FilterDuplicates(), DTrackWireBased_factory::FilterDuplicates(), fitHisto(), Resolution(), st_prop_time_corr_v1(), st_time_resolution(), TAGH_doubles_E(), and TAGH_doubles_ID().