Files
geant4/source/event/include/G4TrajectoryContainer.hh
T
2016-06-08 16:10:37 +02:00

64 lines
2.3 KiB
C++

//
// ********************************************************************
// * DISCLAIMER *
// * *
// * The following disclaimer summarizes all the specific disclaimers *
// * of contributors to this software. The specific disclaimers,which *
// * govern, are listed with their locations in: *
// * http://cern.ch/geant4/license *
// * *
// * Neither the authors of this software system, nor their employing *
// * institutes,nor the agencies providing financial support for this *
// * work make any representation or warranty, express or implied, *
// * regarding this software system or assume any liability for its *
// * use. *
// * *
// * This code implementation is the intellectual property of the *
// * GEANT4 collaboration. *
// * By copying, distributing or modifying the Program (or any work *
// * based on the Program) you indicate your acceptance of this *
// * statement, and all its terms. *
// ********************************************************************
//
//
// $Id: G4TrajectoryContainer.hh,v 1.6.2.1 2001/06/28 19:07:54 gunter Exp $
// GEANT4 tag $Name: $
//
//
// G4TrajectoryContainer
//
#ifndef G4TrajectoryContainer_h
#define G4TrajectoryContainer_h 1
#include "G4VTrajectory.hh"
// G4RWTPtrOrderedVector
//#include "g4rw/tpordvec.h"
// class description:
//
// This is a container of G4VTrajectory objects and the object of this
// container will be associated to G4Event object.
//typedef G4RWTPtrOrderedVector<G4VTrajectory> G4TrajectoryContainer;
class G4TrajectoryContainer : public G4std::vector<G4VTrajectory*>
{
public:
G4TrajectoryContainer() {;}
~G4TrajectoryContainer() {;}
public:
inline G4int entries() { return size(); }
inline G4bool insert(G4VTrajectory* p) { push_back(p); return true; }
inline void clearAndDestroy()
{
for(int i=0;i<size();i++)
{ delete (*this)[i]; }
clear();
}
};
#endif