Presentation is loading. Please wait.

Presentation is loading. Please wait.

FAWP Fast Analysis With Pythia These notes will be updated as FAWP evolves Current version: 2010-11-24.

Similar presentations


Presentation on theme: "FAWP Fast Analysis With Pythia These notes will be updated as FAWP evolves Current version: 2010-11-24."— Presentation transcript:

1 FAWP Fast Analysis With Pythia These notes will be updated as FAWP evolves Current version:

2 What’s new? As of 06/11/2010 Add truth vertex vectors vx[], vy[], vz[] myNewParticle() now includes a list id (see later) The path is now /home/hep/fawp/ As of 10/11/2010: Vector mid[] is now renamed as mtrk[] It is the mother’s track number. id in Pythia is the pdg! Added vectors mmtrk[] and mmpdg[] The mother’s mother track number and pdg. As of 22/11/2010: A track’s properties is now a struct! This changes how you access a variable (see later). What you need to do: * Replace your copy of fawp.h and fawp.cpp/cc with the new version. * Replace your copy of data files with the new ones! * Fix your code for the path, myNewParticle() and mtrk[] changes.

3 Introduction FAWP provides a fast environment for looping over Pythia final state objects. With FAWP we can: - Investigate basic properties of LHC collisions - Study basic analysis techniques - Develop analysis techniques - Investigating event rates and perform trial analyses.

4 FAWP data files [Pythia] FAWP data files are generated using the Pythia event generator. FAWP algorithms run on data files, i.e. FAWP does not run Pythia, hence FAWP is very fast. Currently one file is available: minbias_10M_S dat (6.5 GB) 10 million minimum-bias events p-p collisions at 7 TeV center of mass. (other event types can be added where required) pythia.init( 2212, 2212, ); pythia.readString("SoftQCD:minBias = on"); pythia.readString("Random:setSeed = on"); pythia.readString("Random:seed = ");

5 Data file - particle selection [Pythia] FAWP data files contain final state charged tracks and photons subject to the following cuts (designed to reduce file size): - pseudo-rapidity range |  | < charged transverse momentum > 1 GeV/c - photon energy > 1 GeV if ( pythia.event[i].isFinal() && abs(pythia.event[i].eta()) < 2.5 && ( ( pythia.event[i].isCharged() && pythia.event[i].pT()>1.0 ) || ( pythia.event[i].id() == 22 && pythia.event[i].e() >1.0 ) ) ) { write the particle information } Too hard?

6 Particle information [Pythia] The data file contains only generator-level information, one particle per line: pythia.event[i].px() Particle pythia.event[i].py() three- pythia.event[i].pz() momentum (GeV) pythia.event[i].id() Pdg code pythia.event[i].mother1() Mother track number pythia.event[pythia.event[i].mother1()].id() and pdg code and again for the mother of the mother. pythia.event[i].charge() Particle charge (e) pythia.event[i].xProd() Particle pythia.event[i].yProd() production pythia.event[i].zProd() vertex (mm)

7 Particle information (reconstructed level) After FAWP reads generator-level information from the data file, reconstructed-level information is constructed by applying a very simple model of the ATLAS detector resolution effects (see smearTrack.h ): For charged tracks, transverse momentum (GeV/c) is Gaussian smeared with  pT given by:  pT / pT = 0.05% pT  1% For photons, energy (GeV) is Gaussian smeared with  E given by :  E / E = 10% / E 1/2  1% Vertex resolution is not implemented yet!

8 FAWP particle vectors Particle information is stored in a vector: vector tracks; An event of particles can be looped over as follows: for (int i=0; i

9 FAWP program structure FAWP is maintained on gul3.bim.gantep.edu.tr You can install it elsewhere by recreating the include directory: /home/hep/fawp/include/ fawp.h fawpStd.h randFlat.h randGauss.h smearTrack.h stdB.h You can take the main program from /home/hep/fawp/common/ compile-root For compiling fawp with root fawp.cc Example fawp with root fawp.cpp Example fawp without root You also need some data (maybe a subset of this): /home/hep/fawp/data/ minbias_10M_S dat

10 // fawp.cpp #include "/home/hep/fawp/include/fawp.h" using namespace fawp; int main() { openData(1); while (true) { getEvent(1000); if (eof) break; // EOF for (int i=0; i

11 Other FAWP functions void myNewParticle( int myid, double mypx, double mypy, double mypz, int myflag=0, double mytpx=0.0, double mytpy=0.0, double mytpz=0.0 ) Use the myNewParticle() function to create lists of new derived particles. - myid (0 to 9) is used to identify the group that your derived particle belongs to (e.g. a list of  0 s or D 0 s), this allows you to separately loop over different derived particle lists, and to create new particle lists while looping over a derived particle list. - A new (derived) particle has no pdg value or mother, charge and vertex. - The particle reconstructed 3-momenta should be given as parameters. - The user flag, and truth 3-momenta are optional and default to zero. - All FAWP functions work on derived particles created with myNewParticle() including derived particles derived from derived particles... The simplest form is myNewParticle(myid, mypx, mypy, mypz); To loop over your new particles in an event use the following loop structure: for (int i=myBegin[myid]; i

12 Q functions (work with track numbers) double Qp(int i) reconstructed momentum scaler for particle i double Qtp(int i) truth momentum scaler for particle i double QpT(int i) reconstructed transverse momentum scaler for particle i double QtpT(int i) truth transverse momentum scaler for particle i double Qeta(int i) reconstructed pseudo-rapidity for particle i double Qteta(int i) truth pseudo-rapidity for particle i double QtL(int i) truth vertex transverse distance from (vx=0,vy=0) for particle i double QtdL(int i, inj j) truth vertex transverse distance between particle i and j double Qm2(int i1, int i2, double m1=m_pi, double m2=m_pi) reconstructed invariant mass of particles i1 and i2. double Qtm2(int i1, int i2, double m1=m_pi, double m2=m_pi) truth invariant mass of particles i1 and i2. The third and fourth parameters are the hypotheses for the masses of particles i1 and i2 respectively; the default is m_pi. double Qm3(int i1, int i2, int i3, double m1=m_pi, double m2=m_pi, double m3=m_pi) double Qtm3(int i1, int i2, int i3, double m1=m_pi, double m2=m_pi, double m3=m_pi) as for Qm2 and Qtm2 but for three particles.

13 namespace fawpstd namespace fawpstd { inline double pow2(const double& x) {return x*x;} // particle properties directly from Pythia. // Masses are in GeV, mean lifelength in mm. const int id_e = 11; const double m_e = ; const int id_mu = 13; const double m_mu = , ct_mu = e+03; const int id_pi = 211; const double m_pi = , ct_pi = e+03; and so on for k, p, bs0, jpsi, phi,.... (you can request more to be added) }

14 // form pi0 candidates for ( i=0; iFill( qm2 ); if ( qm2>0.110 && qm2<0.160 ) myNewParticle(0,pxi+pxj, pyi+pyj, pzi+pzj); }} for ( i=0; i0 ) { for ( j=0; jFill( Qm3(i,j,k,m_pi,m_pi,0.135) ); }} h1 h2 END Example - Plot the invariant mass of the decay X ->  +  -  o pyi=tracks[i].py


Download ppt "FAWP Fast Analysis With Pythia These notes will be updated as FAWP evolves Current version: 2010-11-24."

Similar presentations


Ads by Google