-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTFeynmanEntry.h
48 lines (44 loc) · 2.2 KB
/
TFeynmanEntry.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// @(#)root/graf:$Id$
// Author: Advait Dhingra and Oliver Couet 13/04/21
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* *
* For the licensing terms see $ROOTSYS/LICENSE. *
* For the list of contributors see $ROOTSYS/README/CREDITS. *
*************************************************************************/
//--------------------------------------------------------------------------
#ifndef ROOT_TFeynmanEntry
#define ROOT_TFeynmanEntry
#include "TArrow.h"
#include "TVirtualPad.h"
#include "TLatex.h"
#include "TCurlyLine.h"
#include "TArc.h"
#include "TCurlyArc.h"
class TFeynmanEntry : public TObject {
public:
TFeynmanEntry(const char* particleName, Double_t x1, Double_t y1, Double_t x2, Double_t y2, Double_t labelX, Double_t labelY, const char* label);
TFeynmanEntry(const char *particleLabel, Double_t x, Double_t y, Double_t radius);
TFeynmanEntry(const char *particleLabel, Double_t x, Double_t y, Double_t radius, Double_t phimin, Double_t phimax, bool wavy);
virtual const char *GetParticleName() const { return fParticle.Data(); }
virtual Double_t GetX1() {return fX1;}
virtual Double_t GetY1() {return fY1;}
virtual Double_t GetX2() {return fX2;}
virtual Double_t GetY2() const {return fY2;}
virtual void Paint( Option_t* option = "" );
protected:
TString fParticle; ///< Name of the particle (label)
Double_t fX1;
Double_t fX2; ///< Starting Point
Double_t fY1;
Double_t fY2; ///<Stopping Point
Double_t fLabelX;
Double_t fLabelY; ///< Position of the label
TString fLabel; ///< Label to be displayed
Double_t fRadius; ///< Radius for particle pairs
Double_t fPhimin; ///< Minimum angle of Arc
Double_t fPhimax; ///< Maximum angle of Arc
Double_t fWavy; /// is the curved particle a gluon or not
};
#endif