Git Product home page Git Product logo

qpixrtd's Introduction

qpixrtd's People

Contributors

austinmcdonald avatar delofson0211 avatar eikenbcr avatar delofson avatar

Stargazers

Guilherme Ruiz avatar Shion avatar Kurtis N. avatar

Watchers

James Cloos avatar Jonathan avatar Kurtis N. avatar

qpixrtd's Issues

Need to fix setup.sh

setup.sh is inefficient. Has the tclsh line that can be removed. also has cmake and make that run each time, when both only need to be ran once. Break setup.sh into build.sh and setup.sh where setup.sh is just the export command and build is the rest.

Unable to run QPixRTD on alpha particles

terminate called after throwing an instance of 'std::out_of_range' what(): vector::_M_range_check: __n (which is 3) >= this->size() (which is 3)

Error thrown when running on single Alpha particles generated with the latest QPixG4.

Seems to be related to number_hits being changed from integer to long (#8 ).

Boost Issue

It appears that there is an issue with Boost, at least when using C++17. This seems to be causing issues in building the repository and the example. It appears that we can fix this using

target_compile_options(QPixRTD PRIVATE -DBOOST_NO_CXX11_SCOPED_ENUMS)

in source/CMakeLists.txt.

Also need to change CMakeLists.txt back to include FIND_PACKAGE(Boost 1.61 COMPONENTS system filesystem REQUIRED)

number_hits_ data type

the variable number_hits_ in ROOTFileManager is currently of type int, however with beam neutrinos, events could have nHits that exceed the available range of a normal int. Need to change to long long to match new qpixg4 format

thnsparse still takes too long and too much memory

thnsparse branch introduces THnSparse as a way to reduce the amount of time and memory necessary to run qpixrtd. Using PixFunc::Reset_THnSparse does not seem to show much improvement. Potentially because it is still creating a new THnSparse for every pixel and still using a giant vector of electrons.

Proposing:

  1. changing this to be one 2D THnSparse (dimensions are pixel_ID and time) created in the example so there is only one THnSparse per event.
  2. the vector of electrons is only ever the size of a single hit. electrons are filled into the THnSparse and then reset for next hit
  3. The reset function will change to a function where it just integrates to a threshold N and marks the time of the Nth electron, then resets and continues

Drift Time Calculation

Concerning ROOTFileManager.cpp, lines 290-334

Problem:
A T_drift is declared and used to calculate the transverse and longitudinal diffusion of each electron, but then when calculating the (x,y,z,t) to convert to pixel and time of arrival to be added to hit_e, the same T_drift is used instead of calculating a new T_drift from the new z of the diffused electron, leading to an extremely small rms of the resulting charge swarm.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.