This file is indexed.

/usr/include/Rivet/HistoFormat.hh is in librivet-dev 1.8.3-1.1.

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
// -*- C++ -*-
#ifndef RIVET_HistoFormat_HH
#define RIVET_HistoFormat_HH

#include "Rivet/Rivet.hh"

namespace Rivet {


  /// Enumeration of available histogram output formats.
  enum HistoFormat { AIDAML, FLAT, ROOT };

  /// Typedef for a map of histogram format enums to strings.
  typedef std::map<HistoFormat, std::string> HistoFormatMap;


  /// Typedef for a map of histogram format name strings to enums.
  typedef std::map<std::string, HistoFormat> HistoFormatMapR;


  /// Function which returns a map from histogram format enums to the corresponding name strings.
  inline HistoFormatMap getKnownHistoFormats() {
    HistoFormatMap hfmap;
    hfmap[AIDAML] = "AIDA";
    hfmap[FLAT] = "FLAT";
#ifdef HAVE_ROOT
    hfmap[ROOT] = "ROOT";
#endif
    return hfmap;
  }

  /// Function which returns a map from histogram format name strings to the corresponding enums.
  inline HistoFormatMapR getKnownHistoFormatsR() {
    HistoFormatMap hfmap = getKnownHistoFormats();
    HistoFormatMapR hfmapr;
    for (HistoFormatMap::const_iterator hf = hfmap.begin(); hf != hfmap.end(); ++hf) {
      hfmapr[hf->second] = hf->first;
    }
    return hfmapr;
  }


  /// Typedef for a collection of histogram format name enums.
  typedef std::vector<HistoFormat> HistoFormatList;


  /// Function which returns a vector of all the histogram format
  /// values in the HistoFormat enum.
  inline HistoFormatList getKnownHistoFormatEnums() {
    HistoFormatList names;
    HistoFormatMap hfmap = getKnownHistoFormats();
    for (HistoFormatMap::const_iterator hf = hfmap.begin(); hf != hfmap.end(); ++hf) {
      names.push_back(hf->first);
    }
    return names;
  }


  /// Function which returns a vector of all the histogram format name strings.
  inline std::vector<std::string> getKnownHistoFormatNames() {
    vector<string> names;
    HistoFormatMap hfmap = getKnownHistoFormats();
    for (HistoFormatMap::const_iterator hf = hfmap.begin(); hf != hfmap.end(); ++hf) {
      names.push_back(hf->second);
    }
    return names;
  }


}

#endif