Style.h
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 /// \file Style.h
3 //
4 /// \version $Id: Style.h,v 1.1.1.1 2010/11/10 19:44:54 p-novaart Exp $
5 /// \author messier@indiana.edu
6 ////////////////////////////////////////////////////////////////////////
7 #ifndef EVD_LINESTYLE_H
8 #define EVD_LINESTYLE_H
9 class TLine;
10 
11 namespace gar {
12 namespace evd {
13  /// Parameters for drawing options. Allow a consistent style for
14  /// drawing particle tracks
15  class Style {
16  public:
17  static const char* LatexName(int pdgcode);
18  static void FromPDG(TLine& line, int pdgcode);
19  static int ColorFromPDG(int pdgcode);
20  static int LineStyleFromPDG(int pdgcode);
21  static int LineWidthFromPDG(int pdgcode);
22  };
23 }
24 }
25 #endif
static const char * LatexName(int pdgcode)
Convert PDG code to a latex string (root-style)
Definition: Style.cxx:14
static int LineStyleFromPDG(int pdgcode)
Definition: Style.cxx:111
LArSoft includes.
Definition: InfoTransfer.h:33
static int ColorFromPDG(int pdgcode)
Definition: Style.cxx:67
General GArSoft Utilities.
static int LineWidthFromPDG(int pdgcode)
Definition: Style.cxx:104
void line(double t, double *p, double &x, double &y, double &z)
static void FromPDG(TLine &line, int pdgcode)
Definition: Style.cxx:140