Changeset 13581
- Timestamp:
- 05/07/12 11:40:28 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fact/tools/rootmacros/PulseTemplates/FPulseOverlay.C
r13576 r13581 192 192 const char* OutRootFileName = "/home_nfs/isdc/jbbuss/analysis/FPulseTemplate/test.root", 193 193 bool ProduceGraphic = true, 194 bool spikeDebug = false,194 bool spikeDebug = true, 195 195 bool debugPixel = true, 196 196 bool testmode = false, … … 198 198 int verbosityLevel = 1, // different verbosity levels can be implemented here 199 199 int firstevent = 1, // Hast to be between 1 and infinity NOT 0!!!! 200 int nevents = 1000 ,200 int nevents = 10000, 201 201 int firstpixel = 15, 202 202 int npixel = 3, 203 203 int pixelSetSize = 40, 204 int maxPulseOrder = 4,204 int maxPulseOrder = 3, 205 205 int AmplWindowWidth = 14, //Width of Window for selection of pulses to histograms 206 TString histoOptions = "S ",206 TString histoOptions = "SRM", 207 207 float GainMean = 9, 208 208 float BSLMean = -1, //4 Histogramms will be drawn, decide how far pulsehights differ from eachother … … 1028 1028 debugHistos[Vcfd2_].SetBinContent( sl, Vcfd2[sl] ); 1029 1029 } 1030 1031 1030 bool has_negative_slope = false; 1032 1031 cFiltered->cd(1); 1033 1032 gPad->SetGrid(); 1034 1033 debugHistos[Ameas_].Draw(); 1034 1035 vector<Region>::iterator reg; 1036 for (reg = pZXings->begin() ; reg < pZXings->end() ; reg++){ 1037 if (reg->slopeOfRisingEdge < 0) 1038 { 1039 has_negative_slope = true; 1040 cout << "Slope is: " << reg->slopeOfRisingEdge << endl; 1041 } 1042 1043 } 1035 1044 1036 1045 cFiltered->cd(2); … … 1064 1073 // zeroline->SetLineColor(kBlue); 1065 1074 // zeroline->Draw(); 1066 1067 cFiltered->Update(); 1068 1069 1070 //Process gui events asynchronously during input 1071 TTimer timer("gSystem->ProcessEvents();", 50, kFALSE); 1072 timer.TurnOn(); 1073 TString input = Getline("Type 'q' to exit, <return> to go on: "); 1074 timer.TurnOff(); 1075 if (input=="q\n") { 1076 breakout=true; 1075 if (has_negative_slope) 1076 { 1077 cFiltered->Update(); 1078 1079 1080 //Process gui events asynchronously during input 1081 TTimer timer("gSystem->ProcessEvents();", 50, kFALSE); 1082 timer.TurnOn(); 1083 TString input = Getline("Type 'q' to exit, <return> to go on: "); 1084 timer.TurnOff(); 1085 if (input=="q\n") { 1086 breakout=true; 1087 } 1077 1088 } 1078 1089
Note:
See TracChangeset
for help on using the changeset viewer.