This file is indexed.

/usr/include/BALL/SOLVATION/pairExpRDFIntegrator.h is in libball1.4-dev 1.4.3~beta1-4.

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
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
// -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
// $Id: pairExpRDFIntegrator.h,v 1.24 2005/12/23 17:02:00 amoll Exp $
//

#ifndef BALL_SOLVATION_PAIREXPRDFINTEGRATOR_H
#define BALL_SOLVATION_PAIREXPRDFINTEGRATOR_H

#ifndef BALL_COMMON_H
# include <BALL/common.h>
#endif

#ifndef BALL_STRUCTURE_RDFINTEGRATOR_H
# include <BALL/STRUCTURE/RDFIntegrator.h>
#endif

#ifndef BALL_MATHS_PIECEWISEFUNCTION_H
# include <BALL/STRUCTURE/piecewiseFunction.h>
#endif

#ifndef BALL_DATATYPE_OPTIONS_H
# include <BALL/DATATYPE/options.h>
#endif

namespace BALL
{
	/** 6-exp pair potential integrator.
			This class provides a tool for calculating the integral part of the
			van-der-Waals interaction energies. The difference to the values
			calculated with the standard interaction energy processor is the
			inclusion of a radial distribution function  \link RadialDistributionFunction RadialDistributionFunction \endlink  
			into the computaion.  \par
		\ingroup Solvation	
	 */

	class BALL_EXPORT PairExpRDFIntegrator
		:	public RDFIntegrator
	{

		public:

		BALL_CREATE(PairExpRDFIntegrator)

		/** Symbolic names for option keys.
				This struct contains a symbolic name for each recognized key in
				PairExpRDFIntegrator::options.
		 */
		struct BALL_EXPORT Option
		{
			/** The verbosity level.
					Use integer values with this option.
					@see Default::VERBOSITY
					@param verbosity integer
			 */
			static const char* VERBOSITY;

			/** Number of sampling points for the numerical integration.
				@see Default::SAMPLES
				@param samples integer
			*/
			static const char* SAMPLES;
		};

		struct BALL_EXPORT Default
		{
			/** Default verbosity level.
					@see Option::VERBOSITY
			 */
			static const int VERBOSITY;
			/** Default number of samples to use in numerical integration
					@see Option::SAMPLES
			*/
			static const int SAMPLES;
		};


		/** @name Constructors and destructors 
		*/
		//@{

		/** Default constructor
		*/
		PairExpRDFIntegrator();

		/** Copy constructor.
				@param integrator the integrator to copy construct from
		*/
		PairExpRDFIntegrator(const PairExpRDFIntegrator& integrator);

		/** Detailed constructor 
				@param alpha potential constant
				@param C1 potential constant
				@param C2 potential constant
				@param R_ij_o potential constant
				@param k1 geometric correction constant
				@param k2 geometric correction constant
				@param rdf a radial distribution functin  \link RadialDistributionFunction RadialDistributionFunction \endlink  
		*/
		PairExpRDFIntegrator(double alpha, double C1, double C2, double R_ij_o,
				double k1, double k2, const RadialDistributionFunction& rdf);

		/** Destructor 
		*/
		virtual ~PairExpRDFIntegrator();

		//@}
		/** @name Assignment 
		*/
		//@{

		/** Assignment operator 
				@param integrator the integrator to assign from
				@return a const reference to this
		*/
		const PairExpRDFIntegrator& operator = 
			(const PairExpRDFIntegrator& integrator) ;

		/** Clear method 
		*/
		virtual void clear();

		//@}
		/** @name Accessors 
		*/
		//@{

		/** Set the potential and geometric correction constants of this
				instance of PairExpRDFIntegrator
				@param alpha potential constant
				@param C1 potential constant
				@param C2 potential constant
				@param R_ij_o potential constant
				@param k1 geometric correction constant
				@param k2 geometric correction constant
		*/
		void setConstants(double alpha, double C1, double C2, double R_ij_o,
				double k1, double k2);

		/** Get the potential and geometric correction constants of this
				instance of PairExpRDFIntegrator
				@param alpha potential constant (set by this function)
				@param C1 potential constant (set by this function)
				@param C2 potential constant (set by this function)
				@param R_ij_o potential constant (set by this function)
				@param k1 geometric correction constant (set by this function)
				@param k2 geometric correction constant (set by this function)
		*/
		void getConstants(double& alpha, double& C1, double& C2, double& R_ij_o,
				double& k1, double& k2) ;

		/** Integrate to Infinity from <tt>from</tt> using previously set constants 
				@param from the lower limit of integration
				@return the value of the integration
		*/
		double integrateToInf(double from) const;

		/** Integrate from <tt>from</tt> to infinity using the specified constants 
				@param from the lower limit of the integration
				@param alpha potential constant
				@param C1 potential constant
				@param C2 potential constant
				@param R_ij_o potential constant
				@param k1 geometric correction constant
				@param k2 geometric correction constant
				@return the value of the integral
		*/
		double integrateToInf(double from, double alpha, double C1, double C2,
				double R_ij_o, double k1, double k2);

		/** Integrate from <tt>from</tt> to <tt>to</tt> using previously assigned	constants.
				@param from the lower limit
				@param to the upper limit 
				@return the value of the integration
		*/
		double integrate(double from, double to) const ;

		/** Integrate from <tt>from</tt> to <tt>to</tt> using the specified constants 
				@param from the lower limit of integration
				@param to the upper limit 
				@param alpha potential constant
				@param C1 potential constant
				@param C2 potential constant
				@param R_ij_o potential constant
				@param k1 geometric correction constant
				@param k2 geometric correction constant
				@return the value of the integration
		*/
		double integrate(double from, double to, double alpha, double C1, 
				double C2, double R_ij_o, double k1, double k2) ;
		
		/** Default operation, integrate from <tt>x</tt> to infinity using
				previously assigned constants 
				@param x the lower limit of the integration to infinity
				@return the value of the integration
		 */
		virtual double operator () (double x) const;

		//@}
		/** @name Predicates 
		*/
		//@{

		/** Equality operator. Tests whether two instances of
				PairExpRDFIntegrator have the same content.
				@param integrator another instance of PairExpRDFIntegrator
				@return true, if both instances are equal
		*/
		bool operator == (const PairExpRDFIntegrator& integrator) const;

		//@}

		/** 
		*/
		Options options;

		/** @name Debugging and diagnostics 
		*/
		//@{

		/** Dumps the whole content of the object
				@param s an ostream, defaults to std::cout
				@param depth the indentation depth of the output
		*/
		virtual void dump (std::ostream& s = std::cout, Size depth = 0) const;
		
		//@}

		protected:

		/*_ potential constant 
		*/
		double alpha_;

		/*_ potential constant 
		*/
		double C1_;

		/*_ potential constant 
		*/
		double C2_;

		/*_ potential constant 
		*/
		double R_ij_o_;

		/*_ geometric correction 
		*/
		double k1_;

		/*_ geometric correction 
		*/
		double k2_;


		private:

		/*_ Integrate an interval numerically.
				@param interval the interval to be integrated
				@return the value of the integral
		*/
		double numericallyIntegrateInterval(Interval interval) const;

		/*_ Project a number from the integration beam to the projection beam
				of an atom center for the rdf thingy. 
				@param x the value to be projected
				@return the projection of <b>  x </b>
		*/
		double project(double x) const;

		/*_ Do the reverse of project(). 
				@param x the valut to be reversly projected
				@return the projection of <b>  x </b>
		*/
		double unproject(double x) const;

	};
   
} // namespace BALL

#endif //  BALL_SOLVATION_PAIREXPRDFINTEGRATOR_H