sipm-characterisation 0.1.0
SiPM characterisation for ePIC — IV/DCR/gain, laser, readout, irradiation
Loading...
Searching...
No Matches
fine_analysis.C File Reference

Classes

struct  data_t
 

Enumerations

enum  type_t { kAlcorHit = 1 , kTriggerTag = 9 , kStartSpill = 7 , kEndSpill = 15 }
 

Functions

int get_index (int fifo, int pixel, int column, int tdc)
 example of usage:
 
TH2fine_fill (std::vector< std::string > filenames)
 
TH1fine_histo (TH2 *hFine_all, int index)
 

Enumeration Type Documentation

◆ type_t

Enumerator
kAlcorHit 
kTriggerTag 
kStartSpill 
kEndSpill 

Function Documentation

◆ fine_fill()

TH2 * fine_fill ( std::vector< std::string filenames)

histogram with fine distribution

loop over input file list

open file

retrieve tree and link it

loop over events in tree

only ALCOR hits

◆ fine_histo()

TH1 * fine_histo ( TH2 hFine_all,
int  index 
)

◆ get_index()

int get_index ( int  fifo,
int  pixel,
int  column,
int  tdc 
)

example of usage:

root [0] .L fine_analysis.C root [1] TH2 *hFine_all = fine_fill({"alcdaq.fifo_0.root", "alcdaq.fifo_1.root"}); — opening decoded file: alcdaq.fifo_0.root — found 2151601 entries in tree — opening decoded file: alcdaq.fifo_1.root — found 1875405 entries in tree root [2] hFine_all->Draw("colz"); root [3] TH1 *hFine_0 = fine_histo(hFine_all, 0); root [4] hFine_0->Draw();

4 TDCs for each pixel 4 pixel for each column 8 columns for each chip