void ThreePiParent::FillHistograms(TString sCut,Int_t bin){ fCurrCut=sCut; fCurrBin=bin; //Get histogram from list //Fill histogram TString sLabel; sLabel=sCut+fVecBinNames[bin]; FindHist("Theta2pi_V_t"+sLabel)->Fill(TwoPiCM->Theta()*TMath::RadToDeg(),fParent.t); FindHist("Theta2piCM_V_LAB"+sLabel)->Fill(TwoPiCM->Theta()*TMath::RadToDeg(),fParent.TwoPiF->Theta()*TMath::RadToDeg()); FindHist("TwoPiMCM_V_LAB"+sLabel)->Fill(TwoPiCM->M(),fParent.TwoPiF->M()); // e.g. FindHist("Mp1"+sLabel)->Fill(fp1->M()); }
void sWeighter::FillHistograms(TString sCut,Int_t bin){ fCurrCut=sCut; fCurrBin=bin; //Get histogram from list //Fill histogram TString sLabel; sLabel=sCut+fVecBinNames[bin]; // e.g. FindHist("Mp1"+sLabel)->Fill(fp1->M()); //Histograms with signal weight FindHist("SigM2piF"+sLabel)->Fill(M2pif,fSigW); FindHist("SigM2piS"+sLabel)->Fill(M2pis,fSigW); FindHist("SigM3pi"+sLabel)->Fill(M3pi,fSigW); //Histograms with background weight FindHist("BckM2piF"+sLabel)->Fill(M2pif,fBckW); FindHist("BckM2piS"+sLabel)->Fill(M2pis,fBckW); FindHist("BckM3pi"+sLabel)->Fill(M3pi,fBckW); if(Mmiss>1){ FindHist("M2piFgt1"+sLabel)->Fill(M2pif); FindHist("M2piSgt1"+sLabel)->Fill(M2pis); FindHist("M3pigt1"+sLabel)->Fill(M3pi); } }
struct display *NewDisplay(const char *name) { struct display *d; struct disphist *hstent; if(!(hstent = FindHist(name))) { if(!(hstent = Calloc(1, sizeof(*hstent)))) return 0; if(!StrDup(&hstent->name, name)) { free(hstent); return 0; } hstent->next = disphist; disphist = hstent; } if(!(d = (struct display *)Calloc(1, sizeof(*d)))) return 0; d->next = displays; d->hstent = hstent; d->name = hstent->name; /* initialize fields (others are 0) */ d->pid = -1; d->serverPid = -1; d->ctrl.fd = -1; d->ctrl.fifo.fd = -1; d->pipe.rfd = -1; d->pipe.wfd = -1; d->gpipe.rfd = -1; d->gpipe.wfd = -1; d->userSess = -1; #ifdef XDMCP d->xdmcpFd = -1; #endif displays = d; Debug("created new display %s\n", d->name); return d; }