| /sipmScan/src/analysisBias.cpp |
|---|
| 103,7 → 103,7 |
| int analysisBias(char* dfile0="test", int dbg=0, double tdcCut=5.0) |
| { |
| const double c_tdcOffset = 368*TDC_BIN; // ns |
| const double c_tdcOffset = 372*TDC_BIN; // ns, SiPM4 |
| printf(" Data to root conversion program\nUsage:\nd2r(input file name <without.dat>, debug on/off, TDC cut +-[ns])\n\n"); |
| /sipmScan/src/RTUtil.cpp |
|---|
| 1,5 → 1,6 |
| //########################################################################################## |
| #include "TGaxis.h" |
| #include "TColor.h" |
| void RTSetStyle(TStyle *style) |
| { |
| 19,12 → 20,12 |
| style->SetOptStat("e"); |
| style->SetOptFit(1); |
| style->SetPadTopMargin(0.12); |
| style->SetPadTopMargin(0.10); |
| style->SetPadBottomMargin(0.12); |
| style->SetPadLeftMargin(0.12); |
| style->SetPadRightMargin(0.12); |
| style->SetPadRightMargin(0.15); |
| style->SetTitleOffset(1.3, "y"); |
| style->SetTitleOffset(1.5, "y"); |
| style->SetPalette(1, 0); |
| style->SetPaperSize(TStyle::kA4); |
| 87,6 → 88,17 |
| { |
| can->Update(); |
| } |
| void SetGS() |
| { |
| const Int_t Number = 2; |
| Double_t Red[Number] = {1.0, 0.0}; |
| Double_t Green[Number] = {1.0, 0.0}; |
| Double_t Blue[Number] = {1.0, 0.0}; |
| Double_t Stops[Number] = {0.0, 1.0}; |
| Int_t nb = 50; |
| TColor::CreateGradientColorTable(Number, Stops, Red, Green, Blue, nb); |
| } |
| //########################################################################################## |
| /sipmScan/src/analysisScan.cpp |
|---|
| 30,8 → 30,8 |
| #define NCH 64 |
| #define TDC_BIN 1.0416 // 1 TDC bin in ns |
| #define MIKRO_BIN 0.49609/1000. //1 mikro step in mm; stage MM3MF |
| #define OFFSETX 15400 // Right edge of SiPM+Lightguide |
| #define OFFSETY 6400 // Lower edge of SiPM+Lightguide |
| #define OFFSETX 5220 // Right edge of SiPM+Lightguide |
| #define OFFSETY 5860 // Lower edge of SiPM+Lightguide |
| #define RUNREC_ID 1 |
| #define ENDREC_ID 2 |
| 91,8 → 91,7 |
| int analysisScan(char* dfile0="test", int dbg=0, double tdcCut=5.0) |
| { |
| const double c_tdcOffset = +368*TDC_BIN; // ns |
| const double c_tdcOffset = +96*TDC_BIN; // ns, SiPM4 |
| printf(" Data to root conversion program\nUsage:\nd2r(input file name <without .dat>, debug on/off, TDC cut +-[ns])\n\n"); |
| printf(" OFFSETS: \n x: %d\n y: %d\n t:%f\n", OFFSETX, OFFSETY, c_tdcOffset); |