This file is indexed.

/usr/include/ThePEG/MatrixElement/DiagramBase.h is in libthepeg-dev 1.8.0-3build1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  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
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
// -*- C++ -*-
//
// DiagramBase.h is a part of ThePEG - Toolkit for HEP Event Generation
// Copyright (C) 1999-2011 Leif Lonnblad
//
// ThePEG is licenced under version 2 of the GPL, see COPYING for details.
// Please respect the MCnet academic guidelines, see GUIDELINES for details.
//
#ifndef ThePEG_DiagramBase_H
#define ThePEG_DiagramBase_H
// This is the declaration of the DiagramBase class.

#include "ThePEG/Config/ThePEG.h"
#include "ThePEG/PDT/ParticleData.h"
#include "ThePEG/MatrixElement/ColourLines.h"
#include "ThePEG/Handlers/StandardXComb.fh"
#include "DiagramBase.fh"
#include "DiagramBase.xh"

namespace ThePEG {

/**
 * DiagramBase is the base class of all classes which describes
 * Feynman diagrams which can be generated by a matrix element class
 * inheriting from MEBase, as reported by the
 * MEBase::includedDiagrams() method.
 *
 * To work properly, a sub-class must in its constructor report the
 * incoming and outgoing parton types with the partons(int, const
 * cPDVector &, int) method. Also an id number should be given to be
 * used internally by the matrix element class. In addition, the
 * construct() method must be implemented to construct the actual
 * partons and connect them together in a SubProcess object, also
 * performing the colour connections using a given ColourLines object.
 *
 * @see MEBase
 * @see SubProcess
 * @see ColourLines
 * 
 */
class DiagramBase: public Base {

public:

  /** @name Standard constructors and destructors. */
  //@{
  /**
   * Default constructor.
   */
  DiagramBase() : theNIncoming(-1), theId(0) {}

  /**
   * Destructor.
   */
  virtual ~DiagramBase();
  //@}

public:

  /** @name Main virtual function to be overridden in sub-classes. */
  //@{
  /**
   * Construct a sub process corresponding to this diagram. The
   * incoming partons, and the momenta of the outgoing ones, are given
   * by the XComb object. All parent/children pointers should be set
   * correspondingly and the partons should be colour connected as
   * specified by the ColourLines object.
   */
  virtual tPVector construct(SubProPtr sb, const StandardXComb &,
			     const ColourLines &) const = 0;
  //@}
  
  /** @name Access the underlying information. */
  //@{
  /**
   * Return the number of incoming partons for this diagram. I.e. the
   * incoming partons plus the number of space-like lines.
   */
  int nIncoming() const { return theNIncoming; }

  /**
   * Return the incoming, followed by the outgoing partons for this
   * diagram.
   */
  const cPDVector & partons() const { return thePartons; }

  /**
   * Return the id number of this diagram.
   */
  int id() const { return theId; }

  /**
   * Generate a tag which is unique for diagrams with the same
   * type of incoming and outgoing partons.
   */
  string getTag() const;

  /**
   * Compare this diagram to another one modulo
   * the ids of the diagrams.
   */
  virtual bool isSame (tcDiagPtr other) const {
    return 
      nIncoming() == other->nIncoming() &&
      partons() == other->partons();
  }
  //@}

protected:

  /**
   * To be used by sub classes to report the incoming and outgoing
   * particle types, and an id number.
   *
   * @param ninc the number of incoming and other space-like lines in
   * the diagram.
   *
   * @param parts the types of partons for each external line in the
   * diagram.
   *
   * @param newId the id number of this diagram.
   */
  void partons(int ninc, const cPDVector & parts, int newId) {
    theNIncoming = ninc;
    thePartons = parts;
    theId = newId;
  }

  /**
   * Returns true if the partons(int, const cPDVector &, int) function
   * has been called properly from the sub class.
   */
  bool done() const { return nIncoming() >= 0; }

public:

  /** @name Functions used by the persistent I/O system. */
  //@{
  /**
   * Function used to write out object persistently.
   * @param os the persistent output stream written to.
   */
  void persistentOutput(PersistentOStream & os) const;

  /**
   * Function used to read in object persistently.
   * @param is the persistent input stream read from.
   * @param version the version number of the object when written.
   */
  void persistentInput(PersistentIStream & is, int version);
  //@}

  /**
   * Standard Init function.
   */
  static void Init();

private:

  /**
   * The number of incoming partons for this diagram.
   */
  int theNIncoming;

  /**
   * The incoming, followed by the outgoing partons for this
   * diagram.
   */
  cPDVector thePartons;

  /**
   * The id number of this diagram.
   */
  int theId;

private:

  /**
   * Describe an abstract base class with persistent data.
   */
  static AbstractClassDescription<DiagramBase> initDiagramBase;

  /**
   *  Private and non-existent assignment operator.
   */
  DiagramBase & operator=(const DiagramBase &);

};

}


namespace ThePEG {

/** @cond TRAITSPECIALIZATIONS */

/**
 * This template specialization informs ThePEG about the
 * base class of DiagramBase.
 */
template <>
struct BaseClassTrait<DiagramBase,1>: public ClassTraitsType {
  /** Typedef of the base class of DiagramBase. */
  typedef Base NthBase;
};

/**
 * This template specialization informs ThePEG about the name of the
 * DiagramBase class.
 */
template <>
struct ClassTraits<DiagramBase>: public ClassTraitsBase<DiagramBase> {
  /** Return the class name. */
  static string className() { return "ThePEG::DiagramBase"; }
};

/** @endcond */

}

#endif /* ThePEG_DiagramBase_H */