/* * main.cpp * CherenProj * * Created by Alexander Sage on 7/23/13. * Supported by Stony Brook University. No rights reserved. * */ // try to get random particles to fly towards a detector geometry and produce cherenkov radiation //Things I need to implement // need to test the new diagonal part placed in geom (along with the drastically changed rfpt) //4 need to assign slope to end of bottom rectangular region of detector //6 rnd choose a particle and assign a lifetime //7 in makefile do I need to have cherenkov.h after each file that includes it // it seems to compile and run fine without doing so //9 impliment as much actual numbers from Dmierzej's thesis as you can //10 analyze different geometries and materials of reflective slope edge as you can // this will be what makes it a useful experiment! //12 page 391 in griffiths for internal reflection //13 apparently I should just stick to protons // so there is no point to include lifetimes or special relativity in general #include "cherenkov.h" #include <iostream> #include <stdio.h> #include <time.h> using namespace std; int main() { int prtnm; // prtnm keeps track of the number of particles simulated printf("\n This program only prints out values if the particle hit the detector \n"); srand(time(NULL)); printf("\n"); for (int i =0; i <50; i++) { prtnm = i + 1; trckg(prtnm); } return 0; }