Skip to content
Snippets Groups Projects
Commit cecde21e authored by deserevi's avatar deserevi
Browse files

* Add a header file in TGaspardTrackerPhysics.cxx

* Change ushort for unsigned short in *.cc files
parent 48bb20a3
No related branches found
No related tags found
No related merge requests found
......@@ -23,6 +23,7 @@
#include "TGaspardTrackerPhysics.h"
#include <iostream>
#include <cstdlib>
ClassImp(TGaspardTrackerPhysics)
......
......@@ -288,7 +288,7 @@ void DetectorConstruction::ReadAllSensitive(const G4Event* event)
if(m_Detectors.size()>0)
m_Detectors[0]->GetInterCoordPointer()->Clear();
for (ushort i = 0 ; i < m_Detectors.size() ; i++) {
for (unsigned short i = 0 ; i < m_Detectors.size() ; i++) {
m_Detectors[i]->ReadSensitive(event);
}
}
......
......@@ -241,7 +241,7 @@ void Plastic::ConstructDetector(G4LogicalVolume* world)
{
G4ThreeVector Det_pos = G4ThreeVector(0, 0, 0) ;
for (ushort i = 0 ; i < m_R.size() ; i++)
for (unsigned short i = 0 ; i < m_R.size() ; i++)
{
G4double wX = m_R[i] * sin(m_Theta[i] ) * cos(m_Phi[i] ) ;
G4double wY = m_R[i] * sin(m_Theta[i] ) * sin(m_Phi[i] ) ;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment