6#ifdef BUILD_HISTO_FOR_EACH_STANTION
13#include "L1Algo/CbmL1Def.h"
86 void Print() { cout <<
x <<
" " <<
y <<
" " <<
tx <<
" " <<
ty <<
" " <<
qp << endl; }
106 void Build(
bool draw = 1);
132 static bool first_call = 1;
146#ifdef BUILD_HISTO_FOR_EACH_STANTION
244 if (!(finite(T_.
C00[
i]) && T_.
C00[
i] > 0))
246 if (!(finite(T_.
C11[
i]) && T_.
C11[
i] > 0))
248 if (!(finite(T_.
C22[
i]) && T_.
C22[
i] > 0))
250 if (!(finite(T_.
C33[
i]) && T_.
C33[
i] > 0))
252 if (!(finite(T_.
C44[
i]) && T_.
C44[
i] > 0))
261 int iMCP =
fL1->vHitMCRef[ih];
269 fGRes.push_back(res);
275#ifdef BUILD_HISTO_FOR_EACH_STANTION
285 cout <<
"Correct pulls: " <<
fGPulls.size() << endl;
286 cout <<
"x y tx ty qp" << endl;
304#ifdef BUILD_HISTO_FOR_EACH_STANTION
306 for (
int iSta = 0; iSta <
NStations; iSta++) {
308 for (
int i = 0;
i <
Pulls.size();
i++) {
319 for (
int i = 0;
i <
fGRes.size();
i++) {
331 system(
"mkdir L1_Pulls -p");
348 residuals[ih][1] =
histoRes[ih]->GetRMS();
359 cout <<
"All entries: " <<
fNAllPulls << endl;
360 cout <<
"Correct entries: " <<
fGPulls.size() << endl;
361 cout <<
"Pulls sigma & RMS: " << endl;
365 if ((ista > 0) && (ipar == 0))
366 cout <<
"Station " << ista - 1 << endl;
369 cout <<
"Residuals sigma & RMS: " << endl;
379 TF1* fit =
new TF1(
"fit",
"gaus");
395 std::cout <<
" E: Read hists error! " << std::endl;
const TString L1TrackParametersNames[TL1TrackParameters::NParameters]
void Pulls(int i, int j, int k, double *mc, L1TrackPar &T, fvec qp0, L1FieldRegion &fld)
friend F32vec4 fabs(const F32vec4 &a)
static CbmL1 * Instance()
reconstructed tracks
static const float TailCut
vector< TL1TrackParameters > fGPulls
vector< TL1TrackParameters > fStaPulls[NStations]
void makeUpHisto(TH1 *hist, TString title, float &sigma)
vector< TL1TrackParameters > fGRes
TH1F * histoPull[(1+NStations) *TL1TrackParameters::NParameters]
void AddOne(L1TrackPar &T, int i, THitI ih)
TH1F * histoRes[(1+NStations) *TL1TrackParameters::NParameters]
static const int textFont
virtual void SetTitleOffset(Float_t offset=1)
virtual void SetTitleFont(Style_t font=62)
virtual void SetLabelFont(Style_t font=62)
virtual void SetLineWidth(Width_t lwidth)
virtual void SetLineColor(Color_t lcolor)
TVirtualPad * cd(Int_t subpadnumber=0) override
virtual Double_t GetParameter(const TString &name) const
virtual TFitResultPtr Fit(const char *formula, Option_t *option="", Option_t *goption="", Double_t xmin=0, Double_t xmax=0)
virtual Double_t GetEntries() const
virtual void SetTitle(const char *title="")
void SaveAs(const char *filename="", Option_t *option="") const override
RVec< PromoteType< T > > sqrt(const RVec< T > &v)
TL1TrackParameters(L1TrackPar &T, int i)
TL1TrackParameters(CbmL1MCPoint &T)
TL1TrackParameters operator-(TL1TrackParameters &b)
static const int NParameters
TL1TrackParameters operator/(TL1TrackParameters &b)