Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

changed hit printing #13

Merged
merged 3 commits into from
Jan 31, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Analysis/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions Generation/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

File renamed without changes.
5 changes: 2 additions & 3 deletions oogenerateHits.py → Generation/oogenerateHits.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,5 @@ def plotHit(self):

def printHit(self, dataset = False):
""" print hit to stdout """
if dataset and self.detpos != 0 and self.detpos != 1:
print(self.hbc, ', ?,', list(self.lhit), sep='')
else: print(self.hbc, ',', self.pbc, ',', list(self.lhit), sep='')
if dataset:
print(self.hbc, ',', self.pbc, ',', list(self.lhit), sep='')
File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,15 @@ oogenerateDetectors.py - Detector data type and methods

Rest is either test code or helper code.

Please do not commit data files to the repo.
Please add to your .gitignore:

*~
.*
*.csv
*.pyc
*.txt
*.zip



1 change: 1 addition & 0 deletions Reconstruction/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions __init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

4 changes: 2 additions & 2 deletions build_datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import os
import sys
import particleController as pc
import Generation.particleController as pc

def createDataset(n):
#first and second datasets
Expand All @@ -35,4 +35,4 @@ def createDataset(n):
os.system("mkdir data_results")
os.system("mv hits_train_soln.txt particle_valid_soln.txt particle_test_soln.txt data_results")

createDataset(10)
createDataset(10)