strutture:lnf:da:plasmonx:lpa:spectrometer:software_documentation:spmdaq
Differences
This shows you the differences between two versions of the page.
| strutture:lnf:da:plasmonx:lpa:spectrometer:software_documentation:spmdaq [2012/07/10 10:50] – created faccini@infn.it | strutture:lnf:da:plasmonx:lpa:spectrometer:software_documentation:spmdaq [2012/07/10 10:51] (current) – faccini@infn.it | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | === SPMDaq.C === | ||
| + | |||
| + | function SPMDaq(" | ||
| + | translates the .bin file into .root (same name) | ||
| + | |||
| + | |||
| + | Code to operate the MAROC-based electronics and to write out data. | ||
| + | |||
| + | Format: root tree with array of ADC readings and other ' | ||
| + | |||
| + | |||
| + | |||
| + | === BinDisplay.Cpp === | ||
| + | |||
| + | |||
| + | to load the library: | ||
| + | |||
| + | .L BinDisplayN.Cpp++ | ||
| + | |||
| + | useful functions: | ||
| + | |||
| + | * read_data(" | ||
| + | to read data of a given run | ||
| + | |||
| + | * histo(int maroc, int ch, int min, int max) | ||
| + | to draw values read on maroc # ' | ||
| + | | ||
| + | |||
| + | * histo_all (int maroc, int logy,int min, int max) | ||
| + | loop histo over all channels of a maroc | ||
| + | |||
| + | * fit_all | ||
| + | histogram all channels in a maroc, fit them and fill mean values and sigma in | ||
| + | an histogram (h7 and h8 respectively). If maroc=-1, loop over all marocs | ||
| + | |||
| + | * dumpPed(char * pedname) | ||
| + | write in a file < | ||
| + | and their sigma | ||
| + | |||
| + | * pedSubtract(char *pedName, TH1D *MeanValues=0) | ||
| + | subtracts the pedestals in file < | ||
| + | If no histogram is passed, the latest output of fit_all is taken. | ||
| + | |||
| + | * DrawEvent(int iEvt, int maroc=-1, char *pedname=0) | ||
| + | Draws the spectrum, as a function of fiber number, of the iEvt event, | ||
| + | showing maroc# ' | ||
| + | If maroc=-1 all marocs are show and if no ped file is passed, the unsubtracted distribution is shown | ||
| + | |||
| + | * Draw2D(int iMaroc, TH1* input=0, | ||
| + | draws the 2D map of maroc ' | ||
| + | | ||
| + | If no histogram is passed, the latest output of pedSubtract is searched for. | ||
| + | |||
| + | * Analysis(char *pedName, int nmaroc=33, int iEvt=-1) | ||
| + | if nmaroc> | ||
