Jul. 27, 2005 BESIII Software Meeting , IHEP 1 Physics Analysis with ROOT July 27, 2005 Yajun Mao School of Physics, Peking University.

Slides:



Advertisements
Similar presentations
FAWP Fast Analysis With Pythia These notes will be updated as FAWP evolves Current version:
Advertisements

First look at mass constraint [How simple can it be?] Two decays: i) pi 0 -> g g ii) K 0 -> pi+ pi- - Mother particle momenta: P = 1, 2, 4, 8, 16 GeV -
Recent Results on Radiative Kaon decays from NA48 and NA48/2. Silvia Goy López (for the NA48 and NA48/2 collaborations) Universitá degli Studi di Torino.
Alessandro Fois Detection of  particles in B meson decay.
MC Study on B°  S (Status Report) Jianchun Wang Syracuse University BTeV meeting 05/25/01.
University of Gaziantep Department of Engineering Physics August 2006 Page 1/18 A.Beddall, A.Beddall and A. Bingül Department of Engineering Physics University.
Status of  b Scan Jianchun Wang Syracuse University Representing L b scanners CLEO Meeting 05/11/02.
Algorithms and Methods for Particle Identification with ALICE TOF Detector at Very High Particle Multiplicity TOF simulation group B.Zagreev ACAT2002,
Τ ± → π ± π + π - π 0 ν τ decays at BaBar Tim West, Jong Yi, Roger Barlow The University of Manchester Carsten Hast, SLAC IOP HEP meeting Warwick, 12 th.
MonteCarlo simulation of neutrino interactions in PEANUT Giovanni De Lellis on behalf of Alberto Marotta and Andrea Russo Naples University.
Study of two pion channel from photoproduction on the deuteron Lewis Graham Proposal Phys 745 Class May 6, 2009.
Using ROOT geometry for FVTX reconstruction Zhengyun You Peking University Los Alamos National Lab Jan 22, 2007.
May 29 - Jun 4 , 2005BESIII Annual Meeting , Beijing 1 The BESIII Detector Description With XML Jun 1, 2005 Zhengyun You , Yajun Mao (School of Physics,
PPR meeting - January 23, 2003 Andrea Dainese 1 TPC tracking parameterization: a useful tool for simulation studies with large statistics Motivation Implementation.
Status of MC Simulation Huaimin Liu BESIII Collaboration meeting IHEP, Beijing, Jan. 12, 2006.
GlueX Particle Identification Ryan Mitchell Indiana University Detector Review, October 2004.
Current Status of Hadron Analysis Introduction Hadron PID by PHENIX-TOF  Current status of charged hadron PID  CGL and track projection point on TOF.
Simulation issue Y. Akiba. Main goals stated in LOI Measurement of charm and beauty using DCA in barrel –c  e + X –D  K , K , etc –b  e + X –B 
Monte Carlo Comparison of RPCs and Liquid Scintillator R. Ray 5/14/04  RPCs with 1-dimensional readout (generated by RR) and liquid scintillator with.
Jiawen Zhang, IHEP, 2008, April 10, frascati Status of BEPCII/BESIII and Physics preparation Jiawen Zhang 2008/4/7—10 , PHIPSI08, Frascati.
BES Ⅲ Detector Description and Event Display Zhengyun YOU, Yajun Mao School of Physics, Peking University Jan.10th, 2006.
Update on the new reconstruction software F. Noferini E. Fermi center INFN CNAF EEE Analysis Meeting - 14/09/20151.
 Production at forward Rapidity in d+Au Collisions at 200 GeV The STAR Forward TPCs Lambda Reconstruction Lambda Spectra & Yields Centrality Dependence.
 End now? Régis Lefèvre Masterclass – Thursday, March 27th 2014.
The BTeV Project at Fermilab Talk to DOE/Fermi Group Jan. 11, 2001 Introduction – Joel Butler Tracking detectors – David Christian Particle Identification.
D0 analysis update with (  Vertex) code MIT 8 July 2009 BNL: Y. Fisyak, V. Perevoztchikov Kent : J. Bouchet, J. Joseph, S. Margetis, J. Vanfossen Nantes:
Hadronic Interaction Studies for LHCb Nigel Watson/Birmingham [Thanks to Silvia M., Jeroen v T.]
Experience With CBM Muon Simulation Partha Pratim Bhaduri.
October 14, 2004 Single Spin Asymmetries 1 Single Spin Asymmetries for charged pions. Overview  One physics slide  What is measured, kinematic variables.
Track extrapolation to TOF with Kalman filter F. Pierella for the TOF-Offline Group INFN & Bologna University PPR Meeting, January 2003.
1 Energy loss correction for a crystal calorimeter He Miao Institute of High Energy Physics Beijing, P.R.China.
MuID Software Status/Future Plan Yajun Mao (RIKEN/CIAE) PHENIX Muon Collaboration Meeting, BNL, Dec. 16, 2000.
CBM Software Meeting 1 CBM Simulation & Analysis Framework Geant3 / Gean4 configuration M. Al-Turany, D. Bertini.
PHOTON RECONSTRUCTION IN CMS APPLICATION TO H   PHOTON RECONSTRUCTION IN CMS APPLICATION TO H   Elizabeth Locci SPP/DAPNIA, Saclay, France Prague.
05/04/06Predrag Krstonosic - Cambridge True particle flow and performance of recent particle flow algorithms.
PID simulations Rikard Sandström University of Geneva MICE collaboration meeting RAL.
Photon reconstruction and matching Prokudin Mikhail.
STAR STAR MC Filter V. Perevoztchikov Brookhaven National Laboratory,USA.
3/12/2003 ACAT03 - Giuseppe Lo Re Study of the K*(892) 0 signal in pp ALICE events Giuseppe Lo Re INFN-CNAF, Bologna (Italy) ACAT03, 12/3/2003.
Lukens - 1 Fermilab Seminar – July, 2011 Observation of the  b 0 Patrick T. Lukens Fermilab for the CDF Collaboration July 2011.
I.BelikovCHEP 2004, Interlaken, 30 Sep Bayesian Approach for Combined Particle Identification in ALICE Experiment at LHC. I.Belikov, P.Hristov, M.Ivanov,
1 D.Chakraborty – VLCW'06 – 2006/07/21 PFA reconstruction with directed tree clustering Dhiman Chakraborty for the NICADD/NIU software group Vancouver.
1 Fast Pixel Simulation Howard Wieman, Xiangming Sun Lawrence Berkeley Lab.
STAR Analysis Meeting, BNL – oct 2002 Alexandre A. P. Suaide Wayne State University Slide 1 EMC update Status of EMC analysis –Calibration –Transverse.
KalFitAlg: recent developments and tests WANG Dayong Jan.18,2006.
BESIII Track Extrapolation & Matching Wang Liangliang EPC IHEP.
How to… (a.k.a. Photon PID and Pizero Analysis) G. David, April 20, 2000 A report on the status and advertisement of the tools
03/06/08Gustavo Conesa PWG4 1/14 Particle identification and Hadron/Jet correlations analysis framework Description, Status, HOW TO use and.
Status of Analysis Software Kanglin He For Analysis Software Group.
Charged and Neutral Kaon correlations in Au-Au Collisions at sqrt(s_NN) = 200 GeV using the solenoidal tracker at RHIC (STAR) Selemon Bekele The Ohio State.
Tomas Hreus, Pascal Vanlaer Overview: K0s correction stability tests Jet-pt correction closure test Study of Strangeness Production in Underlying Event.
I. BelikovALICE Offline Week, CERN, 12 June ESD Classes and the Combined Reconstruction What is the ESD ? Two new classes AliESD and AliESDtrack.
Kalanand Mishra February 23, Branching Ratio Measurements of Decays D 0  π - π + π 0, D 0  K - K + π 0 Relative to D 0  K - π + π 0 decay Giampiero.
Processing large data sets Brad Abbott. Now J/Psi Starting with root-tuples Add 4-momentum to look for candidates Pick events (raw) -> reconstruct event.
4/27/101 Test of KFParticle with K 0 s J. Bouchet.
Study of Charged Hadrons in Au-Au Collisions at with the PHENIX Time Expansion Chamber Dmitri Kotchetkov for the PHENIX Collaboration Department of Physics,
Tau31 Tracking Efficiency at BaBar Ian Nugent UNIVERSITY OF VICTORIA Sept 2005 Outline Introduction  Decays Efficiency Charge Asymmetry Pt Dependence.
Status of Analysis Tools in PandaROOT K. Götzen, GSI 1.
Reduction of background in observation of W – decay using FVTX tracker Abraham Meles New Mexico State University DNP2012 – Newport Beach, CA. Oct 25, 2012.
Object-Oriented Track Reconstruction in the PHENIX Detector at RHIC Outline The PHENIX Detector Tracking in PHENIX Overview Algorithms Object-Oriented.
News on Rho PANDA Collaboration Meeting, Bochum K. Götzen, GSI 1.
HYDRA Framework. Setup of software environment Setup of software environment Using the documentation Using the documentation How to compile a program.
Yet another approach to the ToF-based PID at PANDA
Directed flow of identified particles from Au+Au Collisions at RHIC
Measurement of track length and time-of-flight hypothesis
Distribution of MC Information
Track Finding.
Status of 20 GeV Au+Au Analysis
Check of Lambda Simulations in TOF-West
Recent Results of (2S) Decays at BESII
Presentation transcript:

Jul. 27, 2005 BESIII Software Meeting , IHEP 1 Physics Analysis with ROOT July 27, 2005 Yajun Mao School of Physics, Peking University

Jul. 27, 2005 BESIII Software Meeting , IHEP 2 Outline Physics Analysis in General An New Approach Examples as in HERMES Summary

Jul. 27, 2005 BESIII Software Meeting , IHEP 3 Physics Analysis in General DST or  DST Global tracks PIDs Tracks in Sub-detectors Hits in sub-detectors 4-mom, 4-vertex, pid, tof,… Beam 、 DAQ… … More detailed info for pid Partial tracks in sub-det… Hits in sub-detecors … Beam status, lum, DAQ status,… Physics Analysis NTUPLE Run# Event# … Particle#1 info Particle#2 info … Particle#N info Mother particle info Grand-Mother particle info …

Jul. 27, 2005 BESIII Software Meeting , IHEP 4 What’s the Problem ? Straightforward between DST & NTUPLE Only good for simple case, what if we need some additional information? what if we want to check other accompany particles? No good means to find some deep hiding bugs Broken data structure Easy to make mistake Hard to share analysis code, low efficiency…

Jul. 27, 2005 BESIII Software Meeting , IHEP 5 A Possible Solution Split the analysis to several steps Take the analysis as event filtering Keep the whole event in each steps, not only those selected tracks Use a consistent data structure Code re-usable to other analysis Less bugs for more people’s use Higher efficiency, could concentrate in physics, rather than programming

Jul. 27, 2005 BESIII Software Meeting , IHEP 6 From Track To Particle ? Define a class for particle Cut away the connection to a special experiment More general sharing A track is a measured particle such as particle 1, 2,3,4,5 but a particle doesn’t to be a track for example, particle 6, 7 a photon is not a track too

Jul. 27, 2005 BESIII Software Meeting , IHEP 7 A Class for Particles: HParticle HParticle TParticle TAttLineTAtt3DTObject

Jul. 27, 2005 BESIII Software Meeting , IHEP 8 The TParticle Class(1) Int_t fPdgCode; // PDG code of the particle Int_t fStatusCode; // generation status code Int_t fMother[2]; // Indices of the mother particles Int_t fDaughter[2]; // Indices of the daughter particles Float_t fWeight; // particle weight Double_t fCalcMass; // Calculated mass Double_t fPx; // x component of momentum Double_t fPy; // y component of momentum Double_t fPz; // z component of momentum Double_t fE; // Energy Double_t fVx; // x of production vertex Double_t fVy; // y of production vertex Double_t fVz; // z of production vertex Double_t fVt; // t of production vertex Double_t fPolarTheta; // Polar angle of polarisation Double_t fPolarPhi; // azymutal angle of polarisation TParticlePDG* fParticlePDG; //! reference to the particle record in PDG database

Jul. 27, 2005 BESIII Software Meeting , IHEP 9 The TParticle Class(2) Int_t GetStatusCode () const { return fStatusCode; } Int_t GetPdgCode () const { return fPdgCode; } Int_t GetFirstMother () const { return fMother[0]; } Int_t GetMother (Int_t i) const { return fMother[i]; } Int_t GetSecondMother () const { return fMother[1]; } Int_t GetFirstDaughter() const { return fDaughter[0]; } Int_t GetDaughter (Int_t i) const { return fDaughter[i]; } Int_t GetLastDaughter () const { return fDaughter[1]; } Double_t GetCalcMass () const { return fCalcMass; } Double_t GetMass () { return GetPDG()->Mass();} Int_t GetNDaughters () const { return fDaughter[1]>0 ? fDaughter[1]-fDaughter[0]+1 : 0;} void GetPolarisation(TVector3 &v); Float_t GetWeight () const { return fWeight;} TParticlePDG* GetPDG (Int_t mode = 0); Int_t Beauty () { return GetPDG()->Beauty(); } Int_t Charm () { return GetPDG()->Charm(); } Int_t Strangeness () { return GetPDG()->Strangeness();} void Momentum(TLorentzVector &v) { v.SetPxPyPzE(fPx,fPy,fPz,fE);} void ProductionVertex(TLorentzVector &v) { v.SetXYZT(fVx,fVy,fVz,fVt);} // ****** redefine several most oftenly used // methods of LORENTZ_VECTOR Double_t Vx () const { return fVx;} Double_t Vy () const { return fVy;} Double_t Vz () const { return fVz;} Double_t T () const { return fT;} … …

Jul. 27, 2005 BESIII Software Meeting , IHEP 10 The HParticle Class(1) Float_t fLifeTime; // Life time of this particle TVector3 fDecayVertex; // the decay vertex of the particle Float_t fDaughterDCA; // the closest approach of 2 daughter tracks Int_t fTrackIndex; // index of track associated to the particle Int_t fIndex; // index of this particle Int_t fAcceptanceOK; // if the track is in acceptance; Float_t fLengthOfFlight; // The length of flight before it decays Int_t fDaughterIndex[3]; // indices of Daughters; Float_t fRecoMassWin[2]; // Reconstructed mass windows(in GeV) Int_t fDaughterAllIndex[15]; // indices including grand daughters; Double_t fUserVariable[10]; // User Defined Variables;

Jul. 27, 2005 BESIII Software Meeting , IHEP 11 The HParticle Class(2) //! reconstruction related // The particle is reconstructed from its daugthers d1, d2, void Reconstruction(HParticle* d1, HParticle* d2); // The particle is reconstructed from its daugthers d1, d2, d3 void Reconstruction(HParticle* d1, HParticle* d2, HParticle* d3); // Set a window for reconstructed mass void SetRecoMassWin(Float_t xmin, Float_t xmax) {fRecoMassWin[0]=xmin;fRecoMassWin[1]=xmax; } // Get the window for reconstructed mass Float_t GetRecoMassWin(Int_t i) { return fRecoMassWin[i]; } // find the distance of closest approach with other particle Float_t DCA(HParticle *d, TVector3 &pos); // Get index of i-th all daughters of this particle // GetDaugtherAllIndex(0) returns the number of all daughters Int_t GetDaughterAllIndex(Int_t i) { return fDaughterAllIndex[i]; } void SetDaughterAllIndex(Int_t i, Int_t idx){fDaughterAllIndex[i] = idx; } // Check if particle d exists in this particle Bool_t Exist(HParticle *d); //! decay related // Simulate the particle decays to its daughters d1, d2 void Decay(HParticle *d1, HParticle *d2); ……

Jul. 27, 2005 BESIII Software Meeting , IHEP 12 How To Use HParticle In case of simulation //define lambda TVector3 p(px,py,pz); TVector3 v(vx,vy,vz); HParticle *Lambda = new HParticle(3212,p,v); // define a proton HParticle *Proton = new HParticle(2212); // define a pion- HParticle *PiMinus = new HParticle(-211); // simulate decay Lambda->Decay(Proton,PiMinus) In case of reconstruction //define proton TVector3 ProtonP(px1,py1,pz1); TVector3 ProtonV(vx1,vy1,vz1); HParticle *Proton = new HParticle(2212,ProtonP,ProtonV); //define pion- TVector3 PiMinusP(px2,py2,pz2); TVector3 PiMinusV(vx2,vy2,vz2); HParticle *PiMinus = new HParticle(-211,PiMinusP,PiMinusV); //define lambda HParticle *Lambda = new HParticle(3212); // reconstruct lambda from proton and pion- Lambda->Reconstruction(Proton,PiMinus)

Jul. 27, 2005 BESIII Software Meeting , IHEP 13 Physics Analysis with HParticle DST or  DST Physical Event Reconstruction DST Structure DST Structure HParticle Container Apply Rough Cut ROOT TTree HeaderPart. 1Part. N Only one HParticle Object In TClonesArray Drawable ~200GB~2GB~20MB

Jul. 27, 2005 BESIII Software Meeting , IHEP 14 HERMES Data Flow HERMES  DST(ADAMO Tables) g1Trackg1Beamg1Targetg1DAQsmRICH… ROOT Converter ROOT Ttree Burst g1Beamg1Targetg1DAQEvent… ….… g1Track smRICH smTrack… …. Event Reconstruction For a physical process TTree Event g1TracksmRICHsmTrack Particles …

Jul. 27, 2005 BESIII Software Meeting , IHEP 15 PPbar Selection // create an instance of ReconHERMES ReconHERMES *process = new ReconHERMES(); // create dummy particles you have interest to study HParticle PPbar(9003); HParticle Proton(2212); HParticle Pbar(-2212); PPbar.SetRecoMassWin(1.8,3.0); //Set Mass window for PPbar // Loop over all events in this burst for(Int_t j=0; j<Nevt; j++){ process->SetEventNum(j); // set to current event process->TrackToHParticle(Particles); // convert tracks to HParticle objects // only process those events which contain all necessary final states if(process->EventOK(Particles,Nfinal,finalPDG)){ TOrdCollection PPbars; // reconstruct PPbar from Particles and put result in PPbars process->Reconstruction(Particles,&PPbars,&PPbar,&Proton,&Pbar); // need at least 1 PPbar for this analysis if(PPbars.GetSize()>0){ Particles->AddAll(&PPbars); //save Particles here }

Jul. 27, 2005 BESIII Software Meeting , IHEP 16 Structure After PPbar Selection

Jul. 27, 2005 BESIII Software Meeting , IHEP 17 Rough Cut and NTuples // create a dummy particle you have interest to study HParticle PPbar(9003); // create an instance of ReconHERMES ReconHERMES *process = new ReconHERMES(); for(Int_t i=0; i<Tot1; i++){ T->GetEntry(i); Int_t NParticle = Particles->GetEntries(); Int_t NTrack = g1Tracks->GetEntries(); // Find associate information to be saved for (Int_t j=NTrack; j<NParticle; j++){ HParticle *fPPbar = (HParticle *)Particles->At(j); if( fPPbar->GetPdgCode() == fakepart.GetPdgCode()){ // find one candidate Int_t index_proton = fPPbar->GetDaughterIndex(0); Int_t index_pbar= fPPbar->GetDaughterIndex(1); HParticle *fProton = (HParticle *)Particles->At(index_proton); HParticle *fPbar = (HParticle *)Particles->At(index_pbar); // put cut here // save data }

Jul. 27, 2005 BESIII Software Meeting , IHEP 18 Structure After Rough Cut

Jul. 27, 2005 BESIII Software Meeting , IHEP 19 Highlights of HParticle 1) Inherit from ROOT TParticle class 2) Use PDG data base for particle property 3) Use PDG numbering scheme 4) Include its vertex in 4-D phase space 5) Include its momentum in 4-D phase space 6) Could handle a new particle 7) Could be reconstructed from its 2/3-body daughters 8) Could decay to its 2/3-body daughters 9) In case of reconstruction, provide daughter DCA 10) In case of decay, provide track intersected with z=z0 plane

Jul. 27, 2005 BESIII Software Meeting , IHEP 20 Summary A new analysis procedure was developed based on HParticle class Could handle very complicated physical process in a rather clear/simply way Same data structure for different processes Could check data in each step with ROOT browser, easy to find bugs Easy to add additional info in the events Simple/clear naming scheme for variables Most of the codes can be shared