Coder Social home page Coder Social logo

oop_project's Introduction

Final project for the Object-Oriented Programming course

This repository contains the final project for the OOP course at the University of Ferrara. The main goal of the course was to learn the basics of the OOP paradigm and how to apply it in C++ and Python.

The project consists of two different assignments:

  • Claro: Read all the files in the folder "secondolotto_1", find the good ones, extract the data about the transition point, width and store the ADC and Counts into two arrays. Via the Least Square Method on the transition zone (counts != 0 && counts !=1000) evaluate the transition point and compare it with the one present in the file. Use the erf function (SciPy module) to fit the points and evaluate again the transition point and width. Graph these fits for a single file along with a histogram of the discrepancies between the expected and evaluated values of all the data in the folder.
  • SiPM: For each subfolder in the "CACTUS_HPK" directory, evaluate the forward and reverse IV curves of the SiPM data. For the forward curves evaluate the Quenching resistance by fitting a linear model on the last part of the curve itself; for the reverse ones, evaluate the Breakdown voltage by fitting a 5th degree polynomial on the derivative of the data and evaluating its peak position. Plot histograms of these values and compare the two liquid nitrogen measures, as well as the one took on the same day.

Repository organization

  • \Claro: contains the code for the claro assignment, with "claro_main.py" being the final program to execute and "claro_class.py" containing all the classes definitions. Also contains the output file folder and a (smaller) folder of input files;
  • \SiPM: same structure as \Claro but with the input, output and code for the SiPM assignment;
  • OOP_Report.pdf: IN ITALIAN, brief summary of the code usage and outputs.

Usage

Download the *_main.py and *_class.py and the requirements.txt files of each project and store them in a folder. First run the following command to ensure that all the required packages are installed and up to date: pip install -r .\requirements.txt

The *_main.py file is the "front end" of the program, change the various function arguments here and then run the program via terminal, specifying the file/directory path as the first argument.

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.