Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2026-07-16 08:12:45

0001 #ifndef EVENTDISPLAY_H
0002 #define EVENTDISPLAY_H
0003 
0004 #include <vector>
0005 #include <TCanvas.h>
0006 #include <TH1F.h>
0007 #include <TArc.h>
0008 #include <TArrow.h>
0009 #include <TBox.h>
0010 
0011 void EventSelection(int& ievent);
0012 void EventDisplay(int iframe);
0013 //bool Is_Hot_EMC(int);
0014 
0015 // display frame;
0016 static int iframe=-1; //0: All view 1: Si View
0017 static TH1F *frame1 = nullptr;
0018 static TH1F *frame2 = nullptr;
0019 static TH1F *frame3 = nullptr;
0020 static TH1F *frame4 = nullptr;
0021 static TCanvas *c1=nullptr;
0022 static TCanvas *c2=nullptr;
0023 static TCanvas *c3=nullptr;
0024 static TCanvas *c4=nullptr;
0025 
0026 static TArc *Circle2 = nullptr;
0027 static TArc *Circle4 = nullptr;
0028 static TArc *Circle8 = nullptr;
0029 static TArc *Circle10 = nullptr;
0030 
0031 // buffer for hits to display
0032 const int nMax=5000;
0033 float x[nMax], y[nMax];
0034 TBox *hits[nMax];
0035 TBox *hitsRZ[nMax];
0036 static int nhits = 0;
0037 static int nhitsRZ = 0;
0038 
0039 // ZVTX maker
0040 TArrow *ZvtxMarker = nullptr;
0041 
0042 // buffer for tracks to display
0043 const int nMaxTrk=300;
0044 TArrow *seedtrk[nMaxTrk];
0045 TArrow *seedtrkRZ[nMaxTrk];
0046 
0047 static int ntrks = 0;
0048 static int ntrksRZ = 0;
0049 
0050 // buffer for EMC-INTT tracklet orbit
0051 vector<TArc*> vEmcINTTorbit;   //Circular Orbit in R-phi
0052 vector<TArrow*> vEmcINTT_RZ;   //RZ view of the track
0053 
0054 // constants
0055 const float pt0min=0.3; // GeV/c. minimum pT0 for tracks
0056 const float EMScale=0.14;  //EMC hit scaling factor
0057 
0058 // RZ slice angle
0059 static float phiSlice = 3.141592/2;
0060 const float DphiSlice = 0.5;
0061 static float Rmax = 12.0;
0062 static TArc *dphiArc = nullptr;
0063 
0064 #endif