|
FairRoot/PandaRoot
|
#include "EventShape.h"#include "SimpleNtp.C"#include <iostream>#include <vector>#include <map>#include "TFile.h"#include "TTree.h"#include "TRandom3.h"#include "TDatabasePDG.h"#include "TParticlePDG.h"#include "TCanvas.h"#include "TH1F.h"#include "TH2F.h"#include "TLegend.h"#include "TParticle.h"#include "TClonesArray.h"#include "TF1.h"#include "TStyle.h"#include "TNtuple.h"#include "TLatex.h"#include "TGaxis.h"Go to the source code of this file.
Typedefs | |
| typedef std::vector< SimpleCand > | CandList |
Functions | |
| void | setStyle () |
| void | boostList (CandList &list, CandList &boostlist, TVector3 boost) |
| bool | isFinalState (int n) |
| double | dponline (TLorentzVector &v) |
| void | makePidTable (double pideff, double misid) |
| void | init (double pideff, double misid) |
| void | printCand (SimpleCand c) |
| void | printList (CandList &l, TString tit="") |
| void | printAllLists () |
| int | massCrit (CandList &l, double m, double w) |
| bool | eventAccepted (CandList &l, double m=0, double w=0) |
| int | fillHisto (CandList &l, TH1 *hall, TH1 *hbg=0, double m=0, double w=0, TH1 *hallsel=0, TH1 *hbgsel=0, TH1 *hsig=0, TH1 *hmm=0, TH2 *hmvsmm=0) |
| int | combine (CandList &l1, CandList &l2, CandList &out, int matchPdg=0) |
| int | combine (CandList &l1, CandList &l2, CandList &l3, CandList &out, int matchPdg=0) |
| int | combine (CandList &l1, CandList &l2, CandList &l3, CandList &l4, CandList &out, int matchPdg=0) |
| void | smearMom (SimpleCand &c, double dpr=0.05, double dtht=0.000, double dphi=0.000) |
| bool | isDetected (double eff=0.90) |
| void | makeRecoCands (CandList &mc, CandList &reco, double eff=0.90, double dp=0.05, double dtht=0.001, double dphi=0.001) |
| void | selectMass (CandList &in, CandList &out, double mmean=0, double mw=0) |
| void | select (CandList &in, CandList &out, int chrg=0, int pdg=0, double mass=0.139) |
| void | makePidSelection (CandList &l) |
| void | makeIni4Vector (TLorentzVector &l, double s) |
| void | configHisto (TH1 *h) |
| void | qaCand (TString pre, SimpleCand &c, SimpleNtp *n) |
| void | writeTuple (TString pre, CandList &l, EventShape &evsh, SimpleNtp *n, double mass, double win) |
| int | toy_core (TString fsig, int nev=2, double sqrts=3.77, bool simcut=true, bool evcut=false, double dp=0.05, double trkeff=95., double pideff=95., double misid=5., double P_mix=0.00, bool writentp=false, int mode=9999) |
Variables | |
| TRandom3 | fRand |
| TLorentzVector | fIni |
| const int | fMAX = 100 |
| int | nbins = 300 |
| double | low = 0.0 |
| double | high = 6.0 |
| const double | fNeutEff = 0.95 |
| const double | fdE = 0.05 |
| const double | fNdtht = 0.003 |
| const double | fNdphi = 0.003 |
| int | nsigpiks = 5 |
| int | nsig = 8 |
| int | fPi0Pdg = 111 |
| double | fPi0Mass = 0.13497 |
| double | fPi0win = 0 |
| double | fPi0sig = 0.0055 |
| int | fKsPdg = 310 |
| double | fKsMass = 0.497614 |
| double | fKswin = 0.025 |
| double | fKssig = 0.012 |
| int | fDPdg = 411 |
| double | fDMass = 1.8693 |
| double | fDsig = 0.045 |
| double | fDwin =0.25 |
| int | fD0Pdg = 421 |
| double | fD0Mass = 1.8645 |
| double | fD0sig = 0.055 |
| double | fD0win =0.25 |
| int | fJpsiPdg = 443 |
| double | fJMass = 3.09687 |
| double | fJsig = 0.11 |
| double | fJwin =0.7 |
| int | feePdg = 88880 |
| double | feeMass = 0 |
| double | feesigconst = 0.0024 |
| double | feesigslope = 0.036 |
| double | feewin = 0. |
| int | fLamPdg = 3122 |
| double | fLamMass = 1.115684 |
| double | fLamsig = 0.0042 |
| double | fLamwin =0.1 |
| int | fDsPdg = 431 |
| double | fDsMass = 1.9686 |
| double | fDssig = 0.04 |
| double | fDswin =0.2 |
| int | fPhiPdg = 333 |
| double | fPhiMass = 1.0195 |
| double | fPhisig = 0.0065 |
| double | fPhiwin =0.2 |
| int | fEtacPdg = 441 |
| double | fEtacMass = 2.9798 |
| double | fEtacsig = 0.08 |
| double | fEtacwin =0.15 |
| int | fLamcPdg = 4122 |
| double | fLamcMass = 2.2849 |
| double | fLamcsig = 0.035 |
| double | fLamcwin =0.2 |
| double | pidtab [25] |
| double | pidreal [25] |
| double | mE |
| double | mMu |
| double | mPi |
| double | mK |
| double | mP |
| double | mPi0 |
| TF1 * | f_res =0 |
| int | npi |
| int | nk |
| int | npr |
| int | ne |
| int | nmu |
| int | nlep |
| int | evtno |
| int | globmode |
| std::map< int, int > | pdgidx |
| TDatabasePDG * | pdg_db |
| CandList | mclist |
| CandList | mcFSlist |
| CandList | recolist |
| CandList | recocmslist |
| CandList | eplus |
| CandList | eminus |
| CandList | muplus |
| CandList | muminus |
| CandList | piplus |
| CandList | piminus |
| CandList | kplus |
| CandList | kminus |
| CandList | pplus |
| CandList | pminus |
| CandList | gam |
| typedef std::vector<SimpleCand> CandList |
Definition at line 132 of file toy_core.C.
Definition at line 164 of file toy_core.C.
References c, i, SimpleCand::P4(), and SimpleCand::SetP4().
Definition at line 363 of file toy_core.C.
References SimpleCand::AddDau(), c, i, m2(), mclist, SimpleCand::SetCharge(), SimpleCand::SetEvtId(), SimpleCand::SetId(), SimpleCand::SetMarker(), SimpleCand::SetMcPid(), SimpleCand::SetMct(), SimpleCand::SetMotherIdx(), SimpleCand::SetNFS(), SimpleCand::SetP4(), and SimpleCand::SetPdg().
Definition at line 409 of file toy_core.C.
References SimpleCand::AddDau(), c, m2(), mclist, SimpleCand::SetCharge(), SimpleCand::SetEvtId(), SimpleCand::SetId(), SimpleCand::SetMarker(), SimpleCand::SetMcPid(), SimpleCand::SetMct(), SimpleCand::SetMotherIdx(), SimpleCand::SetNFS(), SimpleCand::SetP4(), and SimpleCand::SetPdg().
| int combine | ( | CandList & | l1, |
| CandList & | l2, | ||
| CandList & | l3, | ||
| CandList & | l4, | ||
| CandList & | out, | ||
| int | matchPdg = 0 |
||
| ) |
Definition at line 474 of file toy_core.C.
References SimpleCand::AddDau(), c, m2(), mclist, SimpleCand::SetCharge(), SimpleCand::SetEvtId(), SimpleCand::SetId(), SimpleCand::SetMarker(), SimpleCand::SetMcPid(), SimpleCand::SetMct(), SimpleCand::SetMotherIdx(), SimpleCand::SetNFS(), SimpleCand::SetP4(), and SimpleCand::SetPdg().
| void configHisto | ( | TH1 * | h | ) |
Definition at line 704 of file toy_core.C.
| double dponline | ( | TLorentzVector & | v | ) |
| bool eventAccepted | ( | CandList & | l, |
| double | m = 0, |
||
| double | w = 0 |
||
| ) |
Definition at line 320 of file toy_core.C.
| int fillHisto | ( | CandList & | l, |
| TH1 * | hall, | ||
| TH1 * | hbg = 0, |
||
| double | m = 0, |
||
| double | w = 0, |
||
| TH1 * | hallsel = 0, |
||
| TH1 * | hbgsel = 0, |
||
| TH1 * | hsig = 0, |
||
| TH1 * | hmm = 0, |
||
| TH2 * | hmvsmm = 0 |
||
| ) |
| void init | ( | double | pideff, |
| double | misid | ||
| ) |
| bool isDetected | ( | double | eff = 0.90 | ) |
| bool isFinalState | ( | int | n | ) |
| void makeIni4Vector | ( | TLorentzVector & | l, |
| double | s | ||
| ) |
| void makePidSelection | ( | CandList & | l | ) |
| void makePidTable | ( | double | pideff, |
| double | misid | ||
| ) |
Definition at line 195 of file toy_core.C.
References i, pidtab, and printf().
| void makeRecoCands | ( | CandList & | mc, |
| CandList & | reco, | ||
| double | eff = 0.90, |
||
| double | dp = 0.05, |
||
| double | dtht = 0.001, |
||
| double | dphi = 0.001 |
||
| ) |
Definition at line 594 of file toy_core.C.
References c, SimpleCand::Charge(), fdE, fNdphi, fNdtht, fNeutEff, i, isDetected(), isFinalState(), pid(), SimpleCand::Pid(), SimpleCand::SetMarker(), SimpleCand::SetMass(), SimpleCand::SetPdg(), and smearMom().
| int massCrit | ( | CandList & | l, |
| double | m, | ||
| double | w | ||
| ) |
Definition at line 307 of file toy_core.C.
| void printAllLists | ( | ) |
| void printCand | ( | SimpleCand | c | ) |
Definition at line 266 of file toy_core.C.
References SimpleCand::Charge(), SimpleCand::Id(), SimpleCand::McPid(), SimpleCand::Mct(), SimpleCand::MotherIdx(), SimpleCand::NFS(), SimpleCand::NSiblings(), SimpleCand::P4(), and SimpleCand::Pid().
| void qaCand | ( | TString | pre, |
| SimpleCand & | c, | ||
| SimpleNtp * | n | ||
| ) |
Definition at line 714 of file toy_core.C.
References SimpleCand::Charge(), SimpleNtp::Column(), fIni, SimpleCand::McPid(), SimpleCand::Mct(), SimpleCand::P4(), SimpleCand::Pdg(), and SimpleCand::Pid().
Referenced by writeTuple().
Definition at line 638 of file toy_core.C.
References c, SimpleCand::Charge(), fRand, i, pdg_db, pdgidx, SimpleCand::Pid(), pidtab, SimpleCand::SetMass(), SimpleCand::SetMcPid(), and SimpleCand::SetPdg().
Definition at line 628 of file toy_core.C.
| void setStyle | ( | ) |
Definition at line 141 of file toy_core.C.
| void smearMom | ( | SimpleCand & | c, |
| double | dpr = 0.05, |
||
| double | dtht = 0.000, |
||
| double | dphi = 0.000 |
||
| ) |
Definition at line 557 of file toy_core.C.
References dponline(), fRand, m, p, SimpleCand::P4(), and SimpleCand::SetP4().
| int toy_core | ( | TString | fsig, |
| int | nev = 2, |
||
| double | sqrts = 3.77, |
||
| bool | simcut = true, |
||
| bool | evcut = false, |
||
| double | dp = 0.05, |
||
| double | trkeff = 95., |
||
| double | pideff = 95., |
||
| double | misid = 5., |
||
| double | P_mix = 0.00, |
||
| bool | writentp = false, |
||
| int | mode = 9999 |
||
| ) |
Definition at line 841 of file toy_core.C.
References boostList(), c, c1, c2, EventShape::ChrgPSumCms(), EventShape::ChrgPtSumLab(), combine(), configHisto(), Double_t, eminus, eplus, eventAccepted(), evtno, f, fD0Mass, fD0Pdg, fD0sig, fD0win, fDMass, fDPdg, fDsig, fDsMass, fDsPdg, fDssig, fDswin, fDwin, feesigconst, feesigslope, feewin, fEtacMass, fEtacPdg, fEtacsig, fEtacwin, filename, fillHisto(), fIni, fJMass, fJpsiPdg, fJsig, fJwin, fKsMass, fKsPdg, fKssig, fKswin, fLamcMass, fLamcPdg, fLamcsig, fLamcwin, fLamMass, fLamPdg, fLamsig, fLamwin, fMAX, EventShape::FoxWolfMomR(), fPhiMass, fPhiPdg, fPhisig, fPhiwin, fPi0Mass, fPi0Pdg, fPi0sig, fPi0win, fRand, gam, globmode, high, i, init, isFinalState(), kminus, kplus, m, makeIni4Vector(), makePidSelection(), makeRecoCands(), max(), mcFSlist, mclist, min(), mode, EventShape::MultPminCms(), muminus, muplus, nbins, EventShape::NCharged(), ne, EventShape::NeutESumCms(), nk, nlep, nmu, EventShape::NNeutral(), EventShape::NParticles(), npi, npr, nsig, nsigpiks, offset(), p, pdg_db, piminus, piplus, plotname, EventShape::PmaxCms(), EventShape::PmaxLab(), EventShape::PminCms(), pminus, pos, pplus, pt(), EventShape::Ptmax(), EventShape::PtSumLab(), pz, recocmslist, recolist, selectMass(), SimpleCand::SetDau(), SimpleCand::SetEvtId(), SimpleCand::SetMotherIdx(), SimpleCand::SetNSiblings(), setStyle(), EventShape::SumChrgPminCms(), t, TString, and writeTuple().
| void writeTuple | ( | TString | pre, |
| CandList & | l, | ||
| EventShape & | evsh, | ||
| SimpleNtp * | n, | ||
| double | mass, | ||
| double | win | ||
| ) |
Definition at line 781 of file toy_core.C.
References EventShape::Aplanarity(), EventShape::ChrgPSumCms(), EventShape::ChrgPtSumLab(), EventShape::Circularity(), SimpleNtp::Column(), d, SimpleNtp::DumpData(), evtno, fabs(), EventShape::FoxWolfMomR(), globmode, i, mct, EventShape::NCharged(), ne, nk, nmu, EventShape::NNeutral(), EventShape::NParticles(), npi, npr, EventShape::Planarity(), EventShape::PmaxCms(), EventShape::PmaxLab(), EventShape::PminCms(), EventShape::Ptmax(), EventShape::PtSumLab(), qaCand(), EventShape::Sphericity(), tag, and EventShape::Thrust().
Referenced by toy_core().
| CandList eminus |
Definition at line 138 of file toy_core.C.
| CandList eplus |
Definition at line 138 of file toy_core.C.
| int evtno |
Definition at line 124 of file toy_core.C.
Referenced by toy_core(), and writeTuple().
| TF1* f_res =0 |
Definition at line 123 of file toy_core.C.
| double fD0Mass = 1.8645 |
Definition at line 65 of file toy_core.C.
| int fD0Pdg = 421 |
Definition at line 64 of file toy_core.C.
| double fD0sig = 0.055 |
Definition at line 66 of file toy_core.C.
| double fD0win =0.25 |
Definition at line 67 of file toy_core.C.
| const double fdE = 0.05 |
Definition at line 39 of file toy_core.C.
| double fDMass = 1.8693 |
Definition at line 60 of file toy_core.C.
| int fDPdg = 411 |
Definition at line 59 of file toy_core.C.
| double fDsig = 0.045 |
Definition at line 61 of file toy_core.C.
| double fDsMass = 1.9686 |
Definition at line 86 of file toy_core.C.
| int fDsPdg = 431 |
Definition at line 85 of file toy_core.C.
| double fDssig = 0.04 |
Definition at line 87 of file toy_core.C.
| double fDswin =0.2 |
Definition at line 88 of file toy_core.C.
| double fDwin =0.25 |
Definition at line 62 of file toy_core.C.
| double feeMass = 0 |
Definition at line 75 of file toy_core.C.
| int feePdg = 88880 |
Definition at line 74 of file toy_core.C.
| double feesigconst = 0.0024 |
Definition at line 76 of file toy_core.C.
Referenced by toy_core().
| double feesigslope = 0.036 |
Definition at line 77 of file toy_core.C.
Referenced by toy_core().
| double feewin = 0. |
Definition at line 78 of file toy_core.C.
Referenced by toy_core().
| double fEtacMass = 2.9798 |
Definition at line 96 of file toy_core.C.
| int fEtacPdg = 441 |
Definition at line 95 of file toy_core.C.
| double fEtacsig = 0.08 |
Definition at line 97 of file toy_core.C.
| double fEtacwin =0.15 |
Definition at line 98 of file toy_core.C.
| TLorentzVector fIni |
Definition at line 29 of file toy_core.C.
| double fJMass = 3.09687 |
Definition at line 70 of file toy_core.C.
| int fJpsiPdg = 443 |
Definition at line 69 of file toy_core.C.
| double fJsig = 0.11 |
Definition at line 71 of file toy_core.C.
| double fJwin =0.7 |
Definition at line 72 of file toy_core.C.
| double fKsMass = 0.497614 |
Definition at line 55 of file toy_core.C.
| int fKsPdg = 310 |
Definition at line 54 of file toy_core.C.
| double fKssig = 0.012 |
Definition at line 57 of file toy_core.C.
Referenced by toy_core().
| double fKswin = 0.025 |
Definition at line 56 of file toy_core.C.
| double fLamcMass = 2.2849 |
Definition at line 101 of file toy_core.C.
| int fLamcPdg = 4122 |
Definition at line 100 of file toy_core.C.
| double fLamcsig = 0.035 |
Definition at line 102 of file toy_core.C.
| double fLamcwin =0.2 |
Definition at line 103 of file toy_core.C.
| double fLamMass = 1.115684 |
Definition at line 81 of file toy_core.C.
| int fLamPdg = 3122 |
Definition at line 80 of file toy_core.C.
| double fLamsig = 0.0042 |
Definition at line 82 of file toy_core.C.
| double fLamwin =0.1 |
Definition at line 83 of file toy_core.C.
| const int fMAX = 100 |
Definition at line 32 of file toy_core.C.
| const double fNdphi = 0.003 |
Definition at line 41 of file toy_core.C.
| const double fNdtht = 0.003 |
Definition at line 40 of file toy_core.C.
| const double fNeutEff = 0.95 |
Definition at line 38 of file toy_core.C.
| double fPhiMass = 1.0195 |
Definition at line 91 of file toy_core.C.
| int fPhiPdg = 333 |
Definition at line 90 of file toy_core.C.
| double fPhisig = 0.0065 |
Definition at line 92 of file toy_core.C.
| double fPhiwin =0.2 |
Definition at line 93 of file toy_core.C.
| double fPi0Mass = 0.13497 |
Definition at line 50 of file toy_core.C.
| int fPi0Pdg = 111 |
Definition at line 49 of file toy_core.C.
| double fPi0sig = 0.0055 |
Definition at line 52 of file toy_core.C.
Referenced by toy_core().
| double fPi0win = 0 |
Definition at line 51 of file toy_core.C.
| TRandom3 fRand |
Definition at line 28 of file toy_core.C.
| CandList gam |
Definition at line 138 of file toy_core.C.
| int globmode |
Definition at line 124 of file toy_core.C.
Referenced by toy_core(), and writeTuple().
| double high = 6.0 |
Definition at line 35 of file toy_core.C.
| CandList kminus |
Definition at line 138 of file toy_core.C.
| CandList kplus |
Definition at line 138 of file toy_core.C.
| double low = 0.0 |
Definition at line 34 of file toy_core.C.
| CandList mcFSlist |
Definition at line 135 of file toy_core.C.
| CandList mclist |
Definition at line 135 of file toy_core.C.
| double mE |
Definition at line 121 of file toy_core.C.
| double mK |
Definition at line 121 of file toy_core.C.
| double mMu |
Definition at line 121 of file toy_core.C.
| double mP |
Definition at line 121 of file toy_core.C.
| double mPi |
Definition at line 121 of file toy_core.C.
| double mPi0 |
Definition at line 121 of file toy_core.C.
| CandList muminus |
Definition at line 138 of file toy_core.C.
| CandList muplus |
Definition at line 138 of file toy_core.C.
| int nbins = 300 |
Definition at line 33 of file toy_core.C.
| int ne |
Definition at line 124 of file toy_core.C.
Referenced by toy_core(), and writeTuple().
| int nk |
Definition at line 124 of file toy_core.C.
Referenced by PndLmdTrkQTask::Exec(), main(), softtrigger_toy12(), toy_core(), and writeTuple().
| int nlep |
Definition at line 124 of file toy_core.C.
Referenced by softtrigger_toy12(), and toy_core().
| int nmu |
Definition at line 124 of file toy_core.C.
Referenced by toy_core(), and writeTuple().
| int npi |
Definition at line 124 of file toy_core.C.
Referenced by ana_Lambda_fit(), PndHypFullAna::Exec(), PndHypSimpleAna::Exec(), PndHypFullIdealAna::Exec(), softtrigger_toy12(), toy_core(), and writeTuple().
| int npr |
Definition at line 124 of file toy_core.C.
Referenced by softtrigger_toy12(), toy_core(), and writeTuple().
| int nsig = 8 |
Definition at line 46 of file toy_core.C.
Referenced by autocutx(), PndSoftTriggerTask::CreateKs0Cands(), cutfinder(), cutfinder_fullev(), cutfinder_toyev(), cutfinderx(), cutqa(), PndSoftTriggerTask::FillGlobalLists(), PndSoftTriggerTask::SetAuxNSig(), PndDrcRecoLookupMapS::SetNSigma(), PndDrcRecoLookupMap::SetNSigma(), PndSoftTriggerLine::SetTagNSig(), simu_tag(), PndSoftTriggerTask::TagMode(), TMVAApply(), TMVATrainer(), TMVATrainer_608(), TMVATraining(), and toy_core().
| int nsigpiks = 5 |
Definition at line 44 of file toy_core.C.
Referenced by toy_core().
| TDatabasePDG* pdg_db |
Definition at line 130 of file toy_core.C.
| std::map<int,int> pdgidx |
Definition at line 128 of file toy_core.C.
| double pidreal[25] |
Definition at line 114 of file toy_core.C.
| double pidtab[25] |
Definition at line 107 of file toy_core.C.
| CandList piminus |
Definition at line 138 of file toy_core.C.
| CandList piplus |
Definition at line 138 of file toy_core.C.
| CandList pminus |
Definition at line 138 of file toy_core.C.
| CandList pplus |
Definition at line 138 of file toy_core.C.
| CandList recocmslist |
Definition at line 135 of file toy_core.C.
| CandList recolist |
Definition at line 135 of file toy_core.C.
1.8.5