All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
DigiCluster.cc
Go to the documentation of this file.
1 #include "DigiCluster.h"
2 
3 // Namespaces
4 using namespace CLHEP;
5 using namespace lcio;
6 
7 namespace sistrip {
8 
9 //
10 // Constructor
11 //
12 DigiCluster::DigiCluster()
13 {
14  _charge = 0 ;
15  _time = 0.;
16  _driftTime = 0.;
17  _nCarriers = 0 ;
18 
19  _iLayer = 0 ;
20  _iLadder = 0 ;
21  _iSensor = 0 ;
22  _iCell = 0 ;
23 
24  _position.setX(0.);
25  _position.setY(0.);
26  _position.setZ(0.);
27 
28  _velocity.setX(0.);
29  _velocity.setY(0.);
30  _velocity.setZ(0.);
31 }
32 
33 //
34 // Destructor
35 //
36 DigiCluster::~DigiCluster()
37 {
38 // std::cout << "Deleting DigiCluster" << std::endl;
39 }
40 
41 //
42 // Set cluster position Three vector
43 //
44 void DigiCluster::set3Position( const Hep3Vector & position)
45 {
46  _position.setX( position.getX());
47  _position.setY( position.getY());
48  _position.setZ( position.getZ());
49 }
50 
51 //
52 // Set cluster velocity Three vector
53 //
54 void DigiCluster::set3Velocity( const Hep3Vector & velocity)
55 {
56  _velocity.setX( velocity.getX());
57  _velocity.setY( velocity.getY());
58  _velocity.setZ( velocity.getZ());
59 }
60 
61 } // Namespace;
62