|
FairRoot/PandaRoot
|
#include "EventShape.h"#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"Go to the source code of this file.
Typedefs | |
| typedef std::vector< SimpleCand > | CandList |
Functions | |
| 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) |
| int | softtrigger_toy12 (TString fsig, int nev=2, double sqrts=3.77, bool simcut=false, bool evcut=false, double dp=0.03, double trkeff=100., double pideff=95., double misid=5., double P_mix=0.00) |
Variables | |
| TRandom3 | fRand |
| TLorentzVector | fIni |
| const int | fMAX = 100 |
| int | nbins = 300 |
| double | low = 0.0 |
| double | high = 5.0 |
| const double | fNeutEff = 1.0 |
| const double | fdE = 0.05 |
| const double | fNdtht = 0.003 |
| const double | fNdphi = 0.003 |
| int | fPi0Pdg = 111 |
| double | fPi0Mass = 0.13497 |
| double | fPi0win = 0.020 |
| int | fKsPdg = 310 |
| double | fKsMass = 0.497614 |
| double | fKswin = 0.025 |
| int | fDPdg = 411 |
| double | fDMass = 1.8693 |
| double | fDsig = 0.88 |
| double | fDwin =0.25 |
| int | fD0Pdg = 421 |
| double | fD0Mass = 1.8645 |
| double | fD0sig = 1.04 |
| double | fD0win =0.25 |
| int | fJpsiPdg = 443 |
| double | fJMass = 3.09687 |
| double | fJsig = 2.24 |
| double | fJsig3pi = 1.5 |
| double | fJ3pioff = 0.027 |
| double | fJwin =0.7 |
| int | fLamPdg = 3122 |
| double | fLamMass = 1.115684 |
| double | fLamsig = 0.08 |
| double | fLamwin =0.1 |
| int | fDsPdg = 431 |
| double | fDsMass = 1.9686 |
| double | fDssig = 0.75 |
| double | fDswin =0.2 |
| int | fPhiPdg = 333 |
| double | fPhiMass = 1.0195 |
| double | fPhisig = 0.15 |
| double | fPhiwin =0.2 |
| int | fEtacPdg = 441 |
| double | fEtacMass = 2.9798 |
| double | fEtacsig = 0.15 |
| double | fEtacwin =0.15 |
| int | fLamcPdg = 4122 |
| double | fLamcMass = 2.2849 |
| double | fLamcsig = 0.15 |
| 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 |
| 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 118 of file softtrigger_toy12.C.
Definition at line 127 of file softtrigger_toy12.C.
References c, i, SimpleCand::P4(), and SimpleCand::SetP4().
Referenced by softtrigger_toy12().
Definition at line 326 of file softtrigger_toy12.C.
References c, i, m2(), mclist, SimpleCand::SetCharge(), SimpleCand::SetEvtId(), SimpleCand::SetId(), SimpleCand::SetMarker(), SimpleCand::SetMcPid(), SimpleCand::SetMct(), SimpleCand::SetMotherIdx(), SimpleCand::SetNFS(), and SimpleCand::SetP4().
Referenced by softtrigger_toy12().
Definition at line 370 of file softtrigger_toy12.C.
References c, m2(), mclist, SimpleCand::SetCharge(), SimpleCand::SetEvtId(), SimpleCand::SetId(), SimpleCand::SetMarker(), SimpleCand::SetMcPid(), SimpleCand::SetMct(), SimpleCand::SetMotherIdx(), SimpleCand::SetNFS(), and SimpleCand::SetP4().
| int combine | ( | CandList & | l1, |
| CandList & | l2, | ||
| CandList & | l3, | ||
| CandList & | l4, | ||
| CandList & | out, | ||
| int | matchPdg = 0 |
||
| ) |
Definition at line 433 of file softtrigger_toy12.C.
References c, m2(), mclist, SimpleCand::SetCharge(), SimpleCand::SetEvtId(), SimpleCand::SetId(), SimpleCand::SetMarker(), SimpleCand::SetMcPid(), SimpleCand::SetMct(), SimpleCand::SetMotherIdx(), SimpleCand::SetNFS(), and SimpleCand::SetP4().
| void configHisto | ( | TH1 * | h | ) |
Definition at line 652 of file softtrigger_toy12.C.
Referenced by softtrigger_toy12().
| double dponline | ( | TLorentzVector & | v | ) |
| 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 |
||
| ) |
Definition at line 300 of file softtrigger_toy12.C.
References cnt, fIni, i, and m.
Referenced by softtrigger_toy12().
| void init | ( | double | pideff, |
| double | misid | ||
| ) |
Definition at line 198 of file softtrigger_toy12.C.
References f_res, makePidTable(), mE, mK, mMu, mP, mPi, mPi0, pdg_db, and pdgidx.
Referenced by softtrigger_toy12().
| bool isDetected | ( | double | eff = 0.90 | ) |
Definition at line 544 of file softtrigger_toy12.C.
References fRand.
Referenced by makeRecoCands().
| bool isFinalState | ( | int | n | ) |
Definition at line 143 of file softtrigger_toy12.C.
Referenced by makeRecoCands(), and softtrigger_toy12().
| void makeIni4Vector | ( | TLorentzVector & | l, |
| double | s | ||
| ) |
Definition at line 645 of file softtrigger_toy12.C.
References mP, p, sqrt(), and X.
Referenced by softtrigger_toy12().
| void makePidSelection | ( | CandList & | l | ) |
Definition at line 624 of file softtrigger_toy12.C.
References eminus, eplus, gam, kminus, kplus, mE, mK, mMu, mP, mPi, muminus, muplus, piminus, piplus, pminus, pplus, and select().
Referenced by softtrigger_toy12().
| void makePidTable | ( | double | pideff, |
| double | misid | ||
| ) |
| 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 551 of file softtrigger_toy12.C.
References c, fdE, fNdphi, fNdtht, fNeutEff, i, isDetected(), isFinalState(), pid(), SimpleCand::Pid(), SimpleCand::SetMass(), and smearMom().
Referenced by softtrigger_toy12().
| int massCrit | ( | CandList & | l, |
| double | m, | ||
| double | w | ||
| ) |
Definition at line 270 of file softtrigger_toy12.C.
| void printAllLists | ( | ) |
| void printCand | ( | SimpleCand | c | ) |
Definition at line 229 of file softtrigger_toy12.C.
References SimpleCand::Charge(), SimpleCand::Id(), SimpleCand::McPid(), SimpleCand::Mct(), SimpleCand::MotherIdx(), SimpleCand::NFS(), SimpleCand::NSiblings(), SimpleCand::P4(), and SimpleCand::Pid().
Referenced by printList().
Definition at line 238 of file softtrigger_toy12.C.
References printCand().
Referenced by printAllLists().
Definition at line 587 of file softtrigger_toy12.C.
References c, SimpleCand::Charge(), fRand, i, pdg_db, pdgidx, SimpleCand::Pid(), pidtab, SimpleCand::SetMass(), and SimpleCand::SetMcPid().
Referenced by makePidSelection().
| void smearMom | ( | SimpleCand & | c, |
| double | dpr = 0.05, |
||
| double | dtht = 0.000, |
||
| double | dphi = 0.000 |
||
| ) |
Definition at line 514 of file softtrigger_toy12.C.
References dponline(), fRand, m, p, SimpleCand::P4(), and SimpleCand::SetP4().
Referenced by makeRecoCands().
| int softtrigger_toy12 | ( | TString | fsig, |
| int | nev = 2, |
||
| double | sqrts = 3.77, |
||
| bool | simcut = false, |
||
| bool | evcut = false, |
||
| double | dp = 0.03, |
||
| double | trkeff = 100., |
||
| double | pideff = 95., |
||
| double | misid = 5., |
||
| double | P_mix = 0.00 |
||
| ) |
Definition at line 660 of file softtrigger_toy12.C.
References boostList(), c, c2, EventShape::ChrgPSumCms(), EventShape::ChrgPtSumLab(), combine(), configHisto(), Double_t, eminus, eplus, eventAccepted(), f, fD0Mass, fD0Pdg, fD0win, fDMass, fDPdg, fDsMass, fDsPdg, fDswin, fDwin, fillHisto(), fIni, fJMass, fJpsiPdg, fJwin, fKsMass, fKsPdg, fKswin, fLamcMass, fLamcPdg, fLamcwin, fLamMass, fLamPdg, fLamwin, fMAX, EventShape::FoxWolfMomR(), fPhiMass, fPhiPdg, fPhiwin, fPi0Mass, fPi0Pdg, fPi0win, fRand, gam, high, i, init(), isFinalState(), kminus, kplus, m, makeIni4Vector(), makePidSelection(), makeRecoCands(), max(), mcFSlist, mclist, min(), EventShape::MultPminCms(), muminus, muplus, EventShape::NCharged(), EventShape::NeutESumCms(), nk, nlep, EventShape::NNeutral(), EventShape::NParticles(), npi, npr, offset(), p, pdg_db, piminus, piplus, EventShape::PmaxCms(), EventShape::PmaxLab(), EventShape::PminCms(), pminus, pplus, pt(), EventShape::Ptmax(), EventShape::PtSumLab(), pz, recocmslist, recolist, selectMass(), SimpleCand::SetDau(), SimpleCand::SetEvtId(), SimpleCand::SetMotherIdx(), SimpleCand::SetNSiblings(), EventShape::SumChrgPminCms(), t, and TString.
| CandList eminus |
Definition at line 124 of file softtrigger_toy12.C.
Referenced by makePidSelection(), printAllLists(), and softtrigger_toy12().
| CandList eplus |
Definition at line 124 of file softtrigger_toy12.C.
Referenced by makePidSelection(), printAllLists(), and softtrigger_toy12().
| TF1* f_res =0 |
Definition at line 110 of file softtrigger_toy12.C.
Referenced by dponline(), and init().
| double fD0Mass = 1.8645 |
Definition at line 56 of file softtrigger_toy12.C.
Referenced by softtrigger_toy12().
| int fD0Pdg = 421 |
Definition at line 55 of file softtrigger_toy12.C.
Referenced by softtrigger_toy12().
| double fD0sig = 1.04 |
Definition at line 57 of file softtrigger_toy12.C.
| double fD0win =0.25 |
Definition at line 58 of file softtrigger_toy12.C.
Referenced by softtrigger_toy12().
| const double fdE = 0.05 |
Definition at line 37 of file softtrigger_toy12.C.
Referenced by makeRecoCands().
| double fDMass = 1.8693 |
Definition at line 51 of file softtrigger_toy12.C.
Referenced by softtrigger_toy12().
| int fDPdg = 411 |
Definition at line 50 of file softtrigger_toy12.C.
Referenced by softtrigger_toy12().
| double fDsig = 0.88 |
Definition at line 52 of file softtrigger_toy12.C.
| double fDsMass = 1.9686 |
Definition at line 73 of file softtrigger_toy12.C.
Referenced by softtrigger_toy12().
| int fDsPdg = 431 |
Definition at line 72 of file softtrigger_toy12.C.
Referenced by softtrigger_toy12().
| double fDssig = 0.75 |
Definition at line 74 of file softtrigger_toy12.C.
| double fDswin =0.2 |
Definition at line 75 of file softtrigger_toy12.C.
Referenced by softtrigger_toy12().
| double fDwin =0.25 |
Definition at line 53 of file softtrigger_toy12.C.
Referenced by softtrigger_toy12().
| double fEtacMass = 2.9798 |
Definition at line 83 of file softtrigger_toy12.C.
| int fEtacPdg = 441 |
Definition at line 82 of file softtrigger_toy12.C.
| double fEtacsig = 0.15 |
Definition at line 84 of file softtrigger_toy12.C.
| double fEtacwin =0.15 |
Definition at line 85 of file softtrigger_toy12.C.
| TLorentzVector fIni |
Definition at line 27 of file softtrigger_toy12.C.
Referenced by fillHisto(), and softtrigger_toy12().
| double fJ3pioff = 0.027 |
Definition at line 64 of file softtrigger_toy12.C.
| double fJMass = 3.09687 |
Definition at line 61 of file softtrigger_toy12.C.
Referenced by softtrigger_toy12().
| int fJpsiPdg = 443 |
Definition at line 60 of file softtrigger_toy12.C.
Referenced by softtrigger_toy12().
| double fJsig = 2.24 |
Definition at line 62 of file softtrigger_toy12.C.
| double fJsig3pi = 1.5 |
Definition at line 63 of file softtrigger_toy12.C.
| double fJwin =0.7 |
Definition at line 65 of file softtrigger_toy12.C.
Referenced by softtrigger_toy12().
| double fKsMass = 0.497614 |
Definition at line 47 of file softtrigger_toy12.C.
Referenced by softtrigger_toy12().
| int fKsPdg = 310 |
Definition at line 46 of file softtrigger_toy12.C.
Referenced by softtrigger_toy12().
| double fKswin = 0.025 |
Definition at line 48 of file softtrigger_toy12.C.
Referenced by softtrigger_toy12().
| double fLamcMass = 2.2849 |
Definition at line 88 of file softtrigger_toy12.C.
Referenced by softtrigger_toy12().
| int fLamcPdg = 4122 |
Definition at line 87 of file softtrigger_toy12.C.
Referenced by softtrigger_toy12().
| double fLamcsig = 0.15 |
Definition at line 89 of file softtrigger_toy12.C.
| double fLamcwin =0.2 |
Definition at line 90 of file softtrigger_toy12.C.
Referenced by softtrigger_toy12().
| double fLamMass = 1.115684 |
Definition at line 68 of file softtrigger_toy12.C.
Referenced by softtrigger_toy12().
| int fLamPdg = 3122 |
Definition at line 67 of file softtrigger_toy12.C.
Referenced by softtrigger_toy12().
| double fLamsig = 0.08 |
Definition at line 69 of file softtrigger_toy12.C.
| double fLamwin =0.1 |
Definition at line 70 of file softtrigger_toy12.C.
Referenced by softtrigger_toy12().
| const int fMAX = 100 |
Definition at line 30 of file softtrigger_toy12.C.
Referenced by softtrigger_toy12().
| const double fNdphi = 0.003 |
Definition at line 39 of file softtrigger_toy12.C.
Referenced by makeRecoCands().
| const double fNdtht = 0.003 |
Definition at line 38 of file softtrigger_toy12.C.
Referenced by makeRecoCands().
| const double fNeutEff = 1.0 |
Definition at line 36 of file softtrigger_toy12.C.
Referenced by makeRecoCands().
| double fPhiMass = 1.0195 |
Definition at line 78 of file softtrigger_toy12.C.
Referenced by softtrigger_toy12().
| int fPhiPdg = 333 |
Definition at line 77 of file softtrigger_toy12.C.
Referenced by softtrigger_toy12().
| double fPhisig = 0.15 |
Definition at line 79 of file softtrigger_toy12.C.
| double fPhiwin =0.2 |
Definition at line 80 of file softtrigger_toy12.C.
Referenced by softtrigger_toy12().
| double fPi0Mass = 0.13497 |
Definition at line 43 of file softtrigger_toy12.C.
Referenced by softtrigger_toy12().
| int fPi0Pdg = 111 |
Definition at line 42 of file softtrigger_toy12.C.
Referenced by softtrigger_toy12().
| double fPi0win = 0.020 |
Definition at line 44 of file softtrigger_toy12.C.
Referenced by softtrigger_toy12().
| TRandom3 fRand |
Definition at line 26 of file softtrigger_toy12.C.
Referenced by isDetected(), select(), smearMom(), and softtrigger_toy12().
| CandList gam |
Definition at line 124 of file softtrigger_toy12.C.
Referenced by makePidSelection(), printAllLists(), and softtrigger_toy12().
| double high = 5.0 |
Definition at line 33 of file softtrigger_toy12.C.
Referenced by softtrigger_toy12().
| CandList kminus |
Definition at line 124 of file softtrigger_toy12.C.
Referenced by makePidSelection(), printAllLists(), and softtrigger_toy12().
| CandList kplus |
Definition at line 124 of file softtrigger_toy12.C.
Referenced by makePidSelection(), printAllLists(), and softtrigger_toy12().
| double low = 0.0 |
Definition at line 32 of file softtrigger_toy12.C.
| CandList mcFSlist |
Definition at line 121 of file softtrigger_toy12.C.
Referenced by softtrigger_toy12().
| CandList mclist |
Definition at line 121 of file softtrigger_toy12.C.
Referenced by combine(), printAllLists(), and softtrigger_toy12().
| double mE |
Definition at line 108 of file softtrigger_toy12.C.
Referenced by init(), and makePidSelection().
| double mK |
Definition at line 108 of file softtrigger_toy12.C.
Referenced by init(), and makePidSelection().
| double mMu |
Definition at line 108 of file softtrigger_toy12.C.
Referenced by init(), and makePidSelection().
| double mP |
Definition at line 108 of file softtrigger_toy12.C.
Referenced by init(), makeIni4Vector(), and makePidSelection().
| double mPi |
Definition at line 108 of file softtrigger_toy12.C.
Referenced by init(), and makePidSelection().
| double mPi0 |
Definition at line 108 of file softtrigger_toy12.C.
Referenced by init().
| CandList muminus |
Definition at line 124 of file softtrigger_toy12.C.
Referenced by makePidSelection(), printAllLists(), and softtrigger_toy12().
| CandList muplus |
Definition at line 124 of file softtrigger_toy12.C.
Referenced by makePidSelection(), printAllLists(), and softtrigger_toy12().
| int nbins = 300 |
Definition at line 31 of file softtrigger_toy12.C.
| TDatabasePDG* pdg_db |
Definition at line 116 of file softtrigger_toy12.C.
Referenced by init(), select(), and softtrigger_toy12().
| std::map<int,int> pdgidx |
Definition at line 114 of file softtrigger_toy12.C.
| double pidreal[25] |
Definition at line 101 of file softtrigger_toy12.C.
| double pidtab[25] |
Definition at line 94 of file softtrigger_toy12.C.
Referenced by makePidTable(), and select().
| CandList piminus |
Definition at line 124 of file softtrigger_toy12.C.
Referenced by makePidSelection(), printAllLists(), and softtrigger_toy12().
| CandList piplus |
Definition at line 124 of file softtrigger_toy12.C.
Referenced by makePidSelection(), printAllLists(), and softtrigger_toy12().
| CandList pminus |
Definition at line 124 of file softtrigger_toy12.C.
Referenced by makePidSelection(), printAllLists(), and softtrigger_toy12().
| CandList pplus |
Definition at line 124 of file softtrigger_toy12.C.
Referenced by makePidSelection(), printAllLists(), and softtrigger_toy12().
| CandList recocmslist |
Definition at line 121 of file softtrigger_toy12.C.
Referenced by softtrigger_toy12().
| CandList recolist |
Definition at line 121 of file softtrigger_toy12.C.
Referenced by printAllLists(), and softtrigger_toy12().
1.8.8