diff --git a/u4/U4SensorIdentifierDefault.h b/u4/U4SensorIdentifierDefault.h index 78e57e7443..4fbb30e935 100644 --- a/u4/U4SensorIdentifierDefault.h +++ b/u4/U4SensorIdentifierDefault.h @@ -121,12 +121,6 @@ inline int U4SensorIdentifierDefault::getInstanceIdentity( const G4VPhysicalVolu int identifier = is_sensor ? copyno : -1 ; - //bool is_interesting_copyno = IsInterestingCopyNo(copyno) ; - //bool dump = is_sensor && is_interesting_copyno ; - //bool dump = false ; - //bool dump = true ; - //bool dump = num_sd > 0 ; - if(level > 0) std::cout << "U4SensorIdentifierDefault::getIdentity" << " level " << level @@ -139,7 +133,6 @@ inline int U4SensorIdentifierDefault::getInstanceIdentity( const G4VPhysicalVolu << std::endl ; - return identifier ; } @@ -177,5 +170,3 @@ inline bool U4SensorIdentifierDefault::IsInterestingCopyNo( int copyno ) ) ; } - - diff --git a/u4/tests/CMakeLists.txt b/u4/tests/CMakeLists.txt index 91b7469045..35cb950d29 100644 --- a/u4/tests/CMakeLists.txt +++ b/u4/tests/CMakeLists.txt @@ -59,10 +59,6 @@ set(TEST_SOURCES U4Debug_Test.cc U4Hit_Debug_Test.cc - - G4ThreeVectorTest.cc - - U4PhysicsTableTest.cc ) diff --git a/u4/tests/FewPMT_test.cc b/u4/tests/FewPMT_test.cc deleted file mode 100644 index fc54fb1903..0000000000 --- a/u4/tests/FewPMT_test.cc +++ /dev/null @@ -1,10 +0,0 @@ -#include "NPFold.h" - -int main() -{ - const char* path = "$PMTSimParamData_BASE" ; - NPFold* jpmt = NPFold::Exists(path) ? NPFold::Load(path) : nullptr ; - std::cout << path << std::endl << ( jpmt ? jpmt->desc() : "-" ) << std::endl ; - - return 0 ; -} diff --git a/u4/tests/FewPMT_test.sh b/u4/tests/FewPMT_test.sh deleted file mode 100755 index f7757451b6..0000000000 --- a/u4/tests/FewPMT_test.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash -l - -source FewPMT.sh -name=FewPMT_test -gcc $name.cc -I$HOME/np -std=c++11 -lstdc++ -o /tmp/$name && /tmp/$name - - - diff --git a/u4/tests/G4ThreeVectorTest.cc b/u4/tests/G4ThreeVectorTest.cc deleted file mode 100644 index 17264959da..0000000000 --- a/u4/tests/G4ThreeVectorTest.cc +++ /dev/null @@ -1,27 +0,0 @@ -/** -G4ThreeVectorTest.cc -====================== - -:: - - g4-cls ThreeVector - -**/ - - -#include -#include "G4ThreeVector.hh" - -int main(int argc, char** argv) -{ - G4ThreeVector a(1., 2., 3.); - a.set(10.,20.,30.); - - std::cout << " sizeof(a) " << sizeof(a) << std::endl ; - std::cout << " sizeof(double)*3 " << sizeof(double)*3 << std::endl; - - const double* aa = (const double*)&a ; - for(int i=0 ; i < 3 ; i++ ) std::cout << aa[i] << std::endl ; - - return 0 ; -} diff --git a/u4/tests/U4SensorIdentifierDefault_test.cc b/u4/tests/U4SensorIdentifierDefault_test.cc deleted file mode 100644 index 1a01579b7c..0000000000 --- a/u4/tests/U4SensorIdentifierDefault_test.cc +++ /dev/null @@ -1,32 +0,0 @@ -// name=U4SensorIdentifierDefault_test ; gcc $name.cc -std=c++11 -lstdc++ -o /tmp/$name && /tmp/$name - -#include - -bool IsInterestingCopyNo( int copyno ) -{ - return - copyno > -1 && - ( - (std::abs( copyno - 0 ) < 100) || - (std::abs( copyno - 17612 ) < 100) || - (std::abs( copyno - 30000 ) < 100) || - (std::abs( copyno - 32400 ) < 100) || - (std::abs( copyno - 300000 ) < 100) || - (std::abs( copyno - 325600 ) < 100) - ) - ; -} - - -int main() -{ - int count = 0 ; - for(int i=0 ; i < 400000 ; i++) - { - bool select = IsInterestingCopyNo(i) ; - if(select) count += 1 ; - if(select) std::cout << i << std::endl ; - } - std::cout << " count " << count << std::endl ; -} -