This file is indexed.

/usr/include/BALL/MOLMEC/MDSIMULATION/canonicalMD.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
// -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
// $Id: canonicalMD.h,v 1.27 2005/12/23 17:01:52 amoll Exp $
//

#ifndef BALL_MOLMEC_MDSIMULATION_CANONICALMD_H   
#define BALL_MOLMEC_MDSIMULATION_CANONICALMD_H   

#ifndef BALL_MOLMEC_MDSIMULATION_MOLECULARDYNAMICS_H
#	include <BALL/MOLMEC/MDSIMULATION/molecularDynamics.h>
#endif

namespace BALL 
{
	/** A MD simulation in the canoncial ensemble.
			A class for doing molecular dynamics simulations      
			according to the principle of a canonical ensemble (NVT), i.e., 
			the temperature is kept constant. 
			This is achieved via the velocity rescaling proposed by
			Berendsen et al., J. Chem. Physics, 81:3684, 1984.
			Note that this approach does  not give all properties of a
			true canonical system. In particular, the heat capacity 
			cannot be calculated!	
			\par
			The temperature is set through the \link MDSimulation::setReferenceTemperature \endlink method.
			
    	\ingroup  MDSimulation
	*/
  class BALL_EXPORT CanonicalMD 
		: public MolecularDynamics
	{
    public: 

    BALL_CREATE(CanonicalMD)

    /** @name Constructors and Destructor
    */
    //@{


    ///
    CanonicalMD()	;

    /** This constructor expects a force field .
        The force field's options are used and no saving of snapshots is done.
				@param myforcefield the forcefield we need for the simulation
    */
    CanonicalMD(ForceField& myforcefield)	;

    /** This constructor expects a force field and a snapshot manager.
        The force field's options are used. 
				@param myforcefield the forcefield to use in the simulation
				@param ssm  a pointer to the SnapShotManager which will be used to 
				create trajectory files
    */
    CanonicalMD(ForceField& force_field, SnapShotManager* ssm) ;

    /** This constructor wants a force field, a snapshot manager and new options.
				@param myforcefield the forcefield which is to be used in the	simulation
				@param ssm a pointer to the SnapShotManager used for creating 
								trajectory files
				@param myoptions arbitrary options that are to be used by this 
								instance instead of those defined therein
    */
    CanonicalMD(ForceField& myforcefield, SnapShotManager* ssm,	
								const Options& options) ;

    /// Copy constructor
    CanonicalMD(const CanonicalMD& rhs) ;

    /// Destructor
    virtual ~CanonicalMD() ;
    //@}

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

    /// Assignment operator
    CanonicalMD &operator = (const CanonicalMD& rhs) ;
    //@}

    /** @name Setup methods
    */
    //@{

    /** This method does general setup things
				@param ssm if no snapshots during the simulations are required, leave this at the default (NULL pointer)
				@param force_field the forcefield, which has to be bound to a system
    */
    virtual bool setup(ForceField& force_field, SnapShotManager* ssm = 0)
			;

    /** This method does general setup things. 
				This method also allows the assignment of options for the setup.
    */
    virtual bool setup(ForceField& force_field, SnapShotManager* ssm,
											const Options& options)
			;

    /** This method is meant for additional preparations apart from those done in setup.
				@return bool, <b>true</b> if specificSetup() was successful
    */
    virtual bool specificSetup() ;
    //@} 

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

    /** This method sets a new relaxation time for the coupling to an external heat bath.
				The readjustment to the external bath is not done after every step in order
				to save compute time. Instead, it is coupled periodically after the
				time specified here has elapsed.
				@param time the time in <em>ps</em>
    */
    void setBathRelaxationTime(double time)	;

    /** This method gets the current value for heat bath coupling.
				@return the bath relaxation time in <em>ps</em>
    */
    double getBathRelaxationTime() const ;

    /** Set a new time step for the numerical integration.
    */
    virtual void setTimeStep(double time) ;

    /**  This method does the actual simulation stuff. 
         It runs for the indicated number of iterations. 
         If restart is true, the counting of iterations starts with the 
         number of the last iteration in the previous run.  
				 @param number the number of iterations that have to be simulated 
				 @param restart flag for restarting the simulation
    */
    virtual bool simulateIterations(Size number, bool restart = false) ;

    //@}

    protected:
		
		/// Helper class containing auxiliary factors.
    struct AuxFactors
    {
      double factor1;
			double factor2; 
    }; 
    
    /** @name Protected methods */
    //@{

    /** A protected method for calculating some factors that are needed all the time.
    */
    void calculateFactors_() ;
    //@}

    /**  @name Protected Attributes */
    //@{

    ///  The coupling parameter to the heat bath
    double bath_relaxation_time_; 

    /// This vector contains special precomputed factors 
		std::vector<AuxFactors> mass_factor_; 
    //_@} 

	};  //class CanonicalMD  

} // namespace BALL 

#endif // BALL_MOLMEC_MDSIMULATION_CANONICALMD_H