]> jspc29.x-matter.uni-frankfurt.de Git - radhard.git/commitdiff
Noise plots are now working also with using the same file for analysis
authorStefan Strohauer <sstrohauer@jspc31.x-matter.uni-frankfurt.de>
Mon, 4 Nov 2013 18:47:25 +0000 (19:47 +0100)
committerStefan Strohauer <sstrohauer@jspc31.x-matter.uni-frankfurt.de>
Mon, 4 Nov 2013 18:47:25 +0000 (19:47 +0100)
and noise.

PlotGraph/PlotGraph.C
PlotGraph/RelevantRuns.csv
ProcessMeasurements/LaborbuchMi29.csv
ProcessMeasurements/LaborbuchMi29.xls
ProcessMeasurements/ProcessMeasurements.C

index 91869d577b9f7842d57a3fc5827f90592413c6cf..e4b5dd602f8fbb8936c554f88b9b871ec8e39815 100644 (file)
 #define NUMPIXELS 25
 #define RIGHT_BOUNDARY 400
 
-#define VETO_THRESHOLD 20
+#define VETO_THRESHOLD 10
 
 #define LABORBUCH "RelevantRuns.csv"
 // #define DATAPATH "/local/sstrohauer/data/data_15.10.2013_11:36/"
 // #define DATAPATH "/local/sstrohauer/data/data_18.10.2013_16:8/"
 // #define DATAPATH "/local/sstrohauer/data/data_22.10.2013_14:9/"
-#define DATAPATH "/local/sstrohauer/data/data_22.10.2013_18:22/"
-#define USE_SEPARATE_NOISE_RUN true
+// #define DATAPATH "/local/sstrohauer/data/data_25.10.2013_14:50/"
+#define DATAPATH "/local/sstrohauer/data/data_4.11.2013_13:57/"
+#define USE_SEPARATE_NOISE_RUN false
 #define DRAW_SINGLE_HISTOGRAMS true
-#define DRAW_SUMMED_HISTOGRAMS true
-#define DRAW_VETO_HISTOGRAMS true
-#define DRAW_PIXEL_DISTRIBUTION_HISTOGRAMS true
+#define DRAW_SUMMED_HISTOGRAMS false
+#define DRAW_VETO_HISTOGRAMS false
+#define DRAW_SEEDPIXEL_DISTRIBUTION false
+#define DRAW_PIXEL_DISTRIBUTION_HISTOGRAMS false
 // examples for fit functions: gaus, landau
-#define FIT_FUNC "gaus"
+#define FIT_FUNC "landau"
 #define DRAW_FITS false
-#define DRAW_NOISE_HISTOGRAM false
-#define PRINT_HEADER false
+#define DRAW_NOISE_HISTOGRAM true
+#define PRINT_HEADER true
+#define PRINT_EXPECTATION_VALUE_HITS_PER_FRAME false
 
 void PlotGraph(Float_t selTemp, Int_t selChip, std::string selSource, Int_t selMatrix6480, Int_t selSubmatrix, Float_t selRadDose)
 {
@@ -80,6 +83,7 @@ void PlotGraph(Float_t selTemp, Int_t selChip, std::string selSource, Int_t selM
   std::vector<TH1F*>   histNtupleSum;
   std::vector<TH1F*>   histNtupleVeto;
   std::vector<TH1F*>   histPixelNumIsSeed;
+  std::vector<TH1F*>   histPixelNumIsSeedSelection;
   std::vector<TH1F*>   histPixelDistribution1;
   std::vector<TH1F*>   histPixelDistribution2;
   std::vector<TH1F*>   histNoise;
@@ -186,8 +190,9 @@ void PlotGraph(Float_t selTemp, Int_t selChip, std::string selSource, Int_t selM
          // create histogram
          histNtuple.push_back(new TH1F(Form("hist%i",nHistNtuple), "Histogram title", 200, 0, RIGHT_BOUNDARY));
          histNtupleSum.push_back(new TH1F(Form("histSum%i",nHistNtuple), "Histogram title", 200, 0, RIGHT_BOUNDARY));
-         histNtupleVeto.push_back(new TH1F(Form("histVeto%i",nHistNtuple), "Histogram title", 200, 0, RIGHT_BOUNDARY));
+         histNtupleVeto.push_back(new TH1F(Form("histVeto%i",nHistNtuple), "Histogram title", 200/2, 0, RIGHT_BOUNDARY));
          histPixelNumIsSeed.push_back(new TH1F(Form("histPixelNumIsSeed_%i",nHistNtuple), "Histogram title", totalPixelNum, 0, totalPixelNum));
+         histPixelNumIsSeedSelection.push_back(new TH1F(Form("histPixelNumIsSeedSelection_%i",nHistNtuple), "Histogram title", totalPixelNum, 0, totalPixelNum));
          histPixelDistribution1.push_back(new TH1F(Form("histPixelDistribution1_%i",nHistNtuple), "Histogram title", totalPixelNum, 0, totalPixelNum));
          histPixelDistribution2.push_back(new TH1F(Form("histPixelDistribution2_%i",nHistNtuple), "Histogram title", totalPixelNum, 0, totalPixelNum));
          
@@ -196,31 +201,15 @@ void PlotGraph(Float_t selTemp, Int_t selChip, std::string selSource, Int_t selM
 //       Double_t meanNotSeedSum=0;
 //       Int_t nhits=0;
          
-         
-         
-         
-         cout << "Mittelwert Hits pro frame: " << nentries/50000.0 << endl;
-         
-         
-         
-         
+         if (PRINT_EXPECTATION_VALUE_HITS_PER_FRAME)
+           cout << "Expectation value of hits per frame: " << nentries/50000.0 << endl;
          
          for (Int_t cnt=0; cnt<nentries; cnt++) {
            hitNtuple->GetEntry(cnt);
            histPixelNumIsSeed[nHistNtuple]->Fill(seedPixel);
          }
-         Float_t averageBinContent = nentries/totalPixelNum;
-         
-         
-         
-         
-         
-         
-         
-         
-         
-         
          
+         Float_t averageBinContent = nentries/totalPixelNum;
          
          
          
@@ -233,32 +222,17 @@ void PlotGraph(Float_t selTemp, Int_t selChip, std::string selSource, Int_t selM
 //         if (frameCounts > 1)
 //           continue;
            
-           
-           
-           
-           
-           
            // histogram with the single pixel
 //         if (pixel[12] > 20)
 //           continue;
            
            if (histPixelNumIsSeed[nHistNtuple]->GetBinContent(histPixelNumIsSeed[nHistNtuple]->GetXaxis()->FindBin(seedPixel)) > 3*averageBinContent) {
-//           cout << "seed: " << seedPixel << endl;
-             continue;
+//           cout << "seed: " << seedPixel << endl;    // print broken pixel
+             continue; // this pixel is broken and produces fake hits. So ignore it! 
            }
+           histPixelNumIsSeedSelection[nHistNtuple]->Fill(seedPixel);
            histNtuple[nHistNtuple]->Fill(pixel[12]);
            
-//         cout << histPixelNumIsSeed[nHistNtuple]->GetBinContent(seedPixel) << endl;
-             
-             
-           
-           
-           
-           
-           
-           
-           
-           
            // histogram with the summed pixels
            Double_t pixelSum = 0;
            for (Int_t i=0; i<NUMPIXELS; i++){
@@ -274,8 +248,6 @@ void PlotGraph(Float_t selTemp, Int_t selChip, std::string selSource, Int_t selM
              histPixelDistribution2[nHistNtuple]->Fill(seedPixel);
            }
            
-           
-           
            // histogram with the single pixel and with "veto trigger"
            // for the "histNtupleVeto" take only hits where only the seed pixel contains charge
            Double_t notSeedSum = 0;
@@ -301,6 +273,7 @@ void PlotGraph(Float_t selTemp, Int_t selChip, std::string selSource, Int_t selM
          histNtupleVeto[nHistNtuple]->SetLineColor(nHistNtuple+1);
          histNtupleVeto[nHistNtuple]->SetStats(kFALSE);
          histNtupleVeto[nHistNtuple]->SetLineStyle(3); // make summed graphs dotted
+         histPixelNumIsSeedSelection[nHistNtuple]->SetLineColor(nHistNtuple+1);
          histPixelDistribution1[nHistNtuple]->SetLineColor(1); // black line
          histPixelDistribution2[nHistNtuple]->SetLineColor(2); // red line
 //       TString legendEntry = Form("#splitline{Run %i: T_{set}=%.1f, T_{sens}=%.1f, Chip=%i, }{Source=%s, Matrix=%i, Submatrix=%i, RadDose=%.2E}", runNo, temperature, tempSens, chip, TString(source).Data(), matrix6480, submatrix, radDose);
@@ -361,26 +334,22 @@ void PlotGraph(Float_t selTemp, Int_t selChip, std::string selSource, Int_t selM
            cout << "No corresponding noise run found!\n";
          
          // open the file
-         TFile* f_N;
          TString path_N;
          if (USE_SEPARATE_NOISE_RUN) {
            path_N = TString(DATAPATH) + Form("%i/%i_0_%i.root", noiseRunNo, noiseRunNo, submatrix);
-           f_N = TFile::Open(path_N);
-           if (f_N->IsZombie()) {
-             // if we cannot open the file, print an error messageForm("hist%i",nHistNtuple) and return immediatly
-             printf("Error: cannot open %s\n", path_N.Data());
-             return;
-           }
          }
          else {
-           path_N = TString(DATAPATH) + "noise/" + Form("%i/%i_0_%i.root", noiseRunNo, noiseRunNo, submatrix);
-           f_N = TFile::Open(path_N);
-           if (f_N->IsZombie()) {
-             // if we cannot open the file, print an error messageForm("hist%i",nHistNtuple) and return immediatly
-             printf("Error: cannot open %s\n", path_N.Data());
-             return;
-           }
+           path_N = TString(DATAPATH) + "noise/" + Form("%i/%i_0_%i.root", runNo, runNo, submatrix);
+         }
+         // check wether file exists
+         TFile f_N_doesItExist(path_N);
+         if (f_N_doesItExist.IsZombie()) {
+           // if we cannot open the file, print an error message and return immediatly
+           printf("Error while loading noise file: cannot open %s\n", path_N.Data());
+           return;
          }
+         // open file
+         TFile* f_N = TFile::Open(path_N);
          
          // get a pointer to the tree
          TNtuple* noiseNtuple = (TNtuple*) f_N->Get("noise");
@@ -408,7 +377,8 @@ void PlotGraph(Float_t selTemp, Int_t selChip, std::string selSource, Int_t selM
 //       cout << "q1: " << quantiles[1] - quantiles[0] << "\tq2: " << quantiles[1] << "\tq3: " << quantiles[2] - quantiles[1] << endl;
          
          if (DRAW_NOISE_HISTOGRAM) {
-           new TCanvas();
+           TCanvas* c0 = new TCanvas();
+           c0->SetTitle("Noise distribution");
            histNoise[nHistNtuple]->Draw();
          }
          //-------------------------------------------------
@@ -417,9 +387,6 @@ void PlotGraph(Float_t selTemp, Int_t selChip, std::string selSource, Int_t selM
          
          
          
-         
-         
-         
          nHistNtuple++;        // increase 
        }
       }
@@ -579,9 +546,18 @@ void PlotGraph(Float_t selTemp, Int_t selChip, std::string selSource, Int_t selM
   leg->Draw();
   
 
+  // plot information about the seed pixel distribution in another histogram
+  if (DRAW_SEEDPIXEL_DISTRIBUTION){
+    TCanvas* c2 = new TCanvas();
+    for (std::vector<TH1F*>::iterator it = histPixelNumIsSeedSelection.begin(); it != histPixelNumIsSeedSelection.end(); ++it){
+      Int_t cnt = std::distance(histPixelNumIsSeedSelection.begin(), it) ;
+      (*it)->Draw((cnt==0)?"":"same");
+    }
+  }
+  
   // plot histogram for analysis of pixel distribution in another histogram
   if (DRAW_PIXEL_DISTRIBUTION_HISTOGRAMS){
-    TCanvas* c2 = new TCanvas();
+    TCanvas* c3 = new TCanvas();
     for (std::vector<TH1F*>::iterator it = histPixelDistribution1.begin(); it != histPixelDistribution1.end(); ++it){
       Int_t cnt = std::distance(histPixelDistribution1.begin(), it) ;
       (*it)->Draw((cnt==0)?"":"same");
index 953f234f234238780f7a542f39d10ca826ed5b9e..44c869e744ebbe5e14a2c53d22ce01a9c3aa342d 100644 (file)
@@ -119,3 +119,13 @@ Runnr.     Date    Temperature     T-sensor        Events  Chip    Source  64/80   Radiation dose  Vbo     Don
 29109  2013-10-18      -20     -16.5   50000   1       Fe55,superdimmed        80      0.00E+00        3.12    y               BULLSHIT (eingefroren)
 29110  2013-10-18      -70     -48.5   50000   1       Fe55,superdimmed        64      0.00E+00        3.18    y               BULLSHIT (eingefroren)
 29111  2013-10-18      -70     21.5    50000   1       Fe55,superdimmed        80      0.00E+00        3.10    y               BULLSHIT (eingefroren)
+
+                                                                                               Superdimmed measurements have to be added to the labbook (currently they are only in the database)              
+                                                                                                               
+                                                                                                the following measurements are for exploring the cause for the very high noise in the previous measurements            
+29114  31.10.2013      20      21,0    50000   1       Cd109   64      0,00E+00        3,20    y               measurement with Cd109 with the same parameters Vba, Vbo and Vdiode like all previous measurements      0,24    2,50
+29115  01.11.2013      20      21,0    50000   1       Cd109   64      0,00E+00        3,20    y                       3,31    2,50
+29116  01.11.2013      20      21,0    50000   1       Cd109   64      0,00E+00        2,74    y                       3,31    2,50
+29117  01.11.2013      20      21,0    50000   1       Cd109   64      0,00E+00        2,74    y                       3,31    2,34
+29118  04.11.2013      20      21,0    50000   1       Cd109   64      0,00E+00        2,74    y                       3,31    2,59
+
index 6b9b508fe953432d3210357493f7671a590942ae..a1ab020ce3cf09b1fbc4e319915a4962a37f2dc8 100644 (file)
-Runnr. Date    Temperature     T-sensor        Events  Chip    Source  64/80   Radiation dose  Vbo     Done?   Allowed T-range Comment
-29008  4/23/2013       -20     -15.0   5000    1       Fe55    64      0.00E+00                y               
-29009  4/23/2013       -20     -15.0   5000    1       none    64      0.00E+00                y               
-29010  4/23/2013       -20     -15.0   5000    1       Fe55    80      0.00E+00                y               
-29011  4/23/2013       -20     -15.0   5000    1       none    80      0.00E+00                                
-                                                                                               
-                                                                                               
-29012  5/17/2013       20      21.5    50000   1       Fe55    64      0.00E+00        3.20    y       19 … 21       All the yellow marked measurements were made with a baseline in the range between 500 and 3500 for -20°C and were not modified for the other highlighted measurements.
-29013  5/17/2013       20      21.5    50000   1       Fe55    80      0.00E+00        3.12    y               
-29014  5/17/2013       -20     -15.5   50000   1       Fe55    64      0.00E+00        3.19    y       -12 … -19     
-29015  5/17/2013       -20     -16.0   50000   1       Fe55    80      0.00E+00        3.12    y               
-29016  5/18/2013       -70     -58.0   50000   1       Fe55    64      0.00E+00        3.18    y       -30 … -60     
-29017  5/18/2013       -70     -58.0   50000   1       Fe55    80      0.00E+00        3.10    y               
-                                                                                               
-29018  5/16/2013       20      20.0    50000   1       none    64      0.00E+00        3.20    y               
-29019  5/16/2013       20      20.5    50000   1       none    80      0.00E+00        3.12    y               
-29020  5/16/2013       -20     -16.5   50000   1       none    64      0.00E+00        3.19    y               
-29021  5/16/2013       -20     -17.0   50000   1       none    80      0.00E+00        3.12    y               
-29022  5/16/2013       -70     -57.5   50000   1       none    64      0.00E+00        3.18    y               
-29023  5/16/2013       -70     -59.5   50000   1       none    80      0.00E+00        3.10    y               
-                                                                                               
-29024  5/21/2013       20      21.5    50000   1       Sr90    64      0.00E+00        3.20    y               
-29025  5/21/2013       20      21.5    50000   1       Sr90    80      0.00E+00        3.12    y               
-29026  5/21/2013       -20     -14.0   50000   1       Sr90    64      0.00E+00        3.19    y               
-29027  5/21/2013       -20     -14.5   50000   1       Sr90    80      0.00E+00        3.12    y               
-29028  5/21/2013       -70     -53.5   50000   1       Sr90    64      0.00E+00        3.18    y               
-29029  5/21/2013       -70     -54.5   50000   1       Sr90    80      0.00E+00        3.10    y               
-                                                                                               
-29030  5/27/2013       20      21.0    50000   1       Fe55,dimmed     64      0.00E+00        3.20    y               same as run 29012, but dimmed
-29031  5/27/2013       20      21.0    50000   1       Fe55,dimmed     80      0.00E+00        3.12    y               same as run 29013, but dimmed
-29032  5/28/2013       -20     -16.5   50000   1       Fe55,dimmed     64      0.00E+00        3.19    y               same as run 29014, but dimmed
-29033  5/28/2013       -20     -16.5   50000   1       Fe55,dimmed     80      0.00E+00        3.12    y               same as run 29015, but dimmed
-                                                                                               
-                                                                                               
-29034  5/29/2013       20      21.5    50000   2       Fe55,dimmed     64      1.50E+05        3.15    y       19 … 21       
-29035  5/29/2013       20      21.0    50000   2       Fe55,dimmed     80      1.50E+05        3.15    y               
-29036  5/29/2013       -20     -16.0   50000   2       Fe55,dimmed     64      1.50E+05        3.15    y       -12 … -19     
-29037  5/30/2013       -20     -16.0   50000   2       Fe55,dimmed     80      1.50E+05        3.15    y               
-29038  5/30/2013       -70     -57.0   50000   2       Fe55,dimmed     64      1.50E+05        3.15    y       -30 … -60     
-29039  5/30/2013       -70     -56.5   50000   2       Fe55,dimmed     80      1.50E+05        3.15    y               
-                                                                                               
-29040  5/28/2013       20      21.0    50000   2       none    64      1.50E+05        3.08    y               
-29041  5/28/2013       20      21.0    50000   2       none    80      1.50E+05        3.08    y               
-29042  5/28/2013       -20     -13.5   50000   2       none    64      1.50E+05        3.08    y               
-29043  5/28/2013       -20     -14.5   50000   2       none    80      1.50E+05        3.08    y               
-29044  5/29/2013       -70     -52.5   50000   2       none    64      1.50E+05        3.08    y               
-29045  5/29/2013       -70     -53.5   50000   2       none    80      1.50E+05        3.08    y               
-                                                                                               
-29046  5/31/2013       20      21.6    50000   2       Sr90    64      1.50E+05        3.15    y               
-29047  5/31/2013       20      21.0    50000   2       Sr90    80      1.50E+05        3.15    y               
-29048  5/31/2013       -20     -15.5   50000   2       Sr90    64      1.50E+05        3.15    y               
-29049  6/2/2013        -20     -16.0   50000   2       Sr90    80      1.50E+05        3.15    y               
-29050  6/2/2013        -70     -54.5   50000   2       Sr90    64      1.50E+05        3.15    y               
-29051  6/2/2013        -70     -54.5   50000   2       Sr90    80      1.50E+05        3.15    y               
-                                                                                               
-                                                                                               
-29052  6/7/2013        20      21.0    50000   4       Fe55,dimmed     64      1.00E+12        1.52    y       19 … 21       
-29053  6/7/2013        20      21.0    50000   4       Fe55,dimmed     80      1.00E+12        1.52    y               
-29054  6/7/2013        -20     -15.5   50000   4       Fe55,dimmed     64      1.00E+12        1.52    y       -12 … -19     
-29055  6/7/2013        -20     -16.5   50000   4       Fe55,dimmed     80      1.00E+12        1.52    y               
-29056  6/7/2013        -70     -58.0   50000   4       Fe55,dimmed     64      1.00E+12        1.52    y       -30 … -60     
-29057  6/7/2013        -70     -58.0   50000   4       Fe55,dimmed     80      1.00E+12        1.52    y               
-                                                                                               
-29058  6/6/2013        20      21.5    50000   4       none    64      1.00E+12        1.52    y               
-29059  6/6/2013        20      21.0    50000   4       none    80      1.00E+12        1.52    y               
-29060  6/6/2013        -20     -15.5   50000   4       none    64      1.00E+12        1.52    y               
-29061  6/6/2013        -20     -15.5   50000   4       none    80      1.00E+12        1.52    y               
-29062  6/6/2013        -70     -54.5   50000   4       none    64      1.00E+12        1.52    y               
-29063  6/6/2013        -70     -56.0   50000   4       none    80      1.00E+12        1.52    y               
-                                                                                               
-29064  6/10/2013       20      22.0    50000   4       Sr90    64      1.00E+12        1.52    y               
-29065  6/10/2013       20      21.5    50000   4       Sr90    80      1.00E+12        1.52    y               
-29066  6/10/2013       -20     -13.5   50000   4       Sr90    64      1.00E+12        1.52    y               
-29067  6/10/2013       -20     -14.0   50000   4       Sr90    80      1.00E+12        1.52    y               
-29068  6/10/2013       -70     -53.0   50000   4       Sr90    64      1.00E+12        1.52    y               
-29069  6/10/2013       -70     -54.0   50000   4       Sr90    80      1.00E+12        1.52    y               
-                                                                                               
-                                                                                               
-29070  6/14/2013       20      21.5    50000   5       Fe55,dimmed     64      3.00E+12        1.57    y       19 … 21       
-29071  6/14/2013       20      21.0    50000   5       Fe55,dimmed     80      3.00E+12        1.55    y               
-29072  6/14/2013       -20     -16.0   50000   5       Fe55,dimmed     64      3.00E+12        1.57    y       -12 … -19     
-29073  6/14/2013       -20     -16.5   50000   5       Fe55,dimmed     80      3.00E+12        1.55    y               
-29074  6/14/2013       -70     -58.5   50000   5       Fe55,dimmed     64      3.00E+12        1.57    y       -30 … -60     
-29075  6/14/2013       -70     -58.5   50000   5       Fe55,dimmed     80      3.00E+12        1.55    y               
-                                                                                               
-29076  6/13/2013       20      20.5    50000   5       none    64      3.00E+12        1.57    y               
-29077  6/13/2013       20      20.5    50000   5       none    80      3.00E+12        1.55    y               
-29078  6/13/2013       -20     -16.5   50000   5       none    64      3.00E+12        1.57    y               
-29079  6/13/2013       -20     -17.0   50000   5       none    80      3.00E+12        1.55    y               
-29080  6/13/2013       -70     -57.0   50000   5       none    64      3.00E+12        1.57    y               
-29081  6/13/2013       -70     -59.5   50000   5       none    80      3.00E+12        1.55    y               
-                                                                                               
-29082  6/17/2013       20      21.5    50000   5       Sr90    64      3.00E+12        1.57    y               
-29083  6/17/2013       20      21.0    50000   5       Sr90    80      3.00E+12        1.55    y               
-29084  6/17/2013       -20     -14.0   50000   5       Sr90    64      3.00E+12        1.57    y               
-29085  6/17/2013       -20     -15.0   50000   5       Sr90    80      3.00E+12        1.55    y               
-29086  6/17/2013       -70     -54.0   50000   5       Sr90    64      3.00E+12        1.57    y               
-29087  6/17/2013       -70     -54.5   50000   5       Sr90    80      3.00E+12        1.55    y               
-                                                                                               
-                                                                                               
-29088  6/20/2013       20      21.0    50000   6       Fe55,dimmed     64      1.00E+13        1.54    y       19 … 21       
-29089  6/20/2013       20      21.0    50000   6       Fe55,dimmed     80      1.00E+13        1.53    y               
-29090  6/20/2013       -20     -16.5   50000   6       Fe55,dimmed     64      1.00E+13        1.54    y       -12 … -19     
-29091  6/20/2013       -20     -16.5   50000   6       Fe55,dimmed     80      1.00E+13        1.53    y               
-29092  6/20/2013       -70     -58.5   50000   6       Fe55,dimmed     64      1.00E+13        1.54    y       -30 … -60     
-29093  6/20/2013       -70     -59.5   50000   6       Fe55,dimmed     80      1.00E+13        1.53    y               
-                                                                                               
-29094  6/18/2013       20      20.5    50000   6       none    64      1.00E+13        1.54    y               
-29095  6/18/2013       20      20.5    50000   6       none    80      1.00E+13        1.53    y               
-29096  6/18/2013       -20     -15.5   50000   6       none    64      1.00E+13        1.54    y               
-29097  6/18/2013       -20     -15.5   50000   6       none    80      1.00E+13        1.53    y               
-29098  6/19/2013       -70     -60.0   50000   6       none    64      1.00E+13        1.54    y               
-29099  6/19/2013       -70     -60.0   50000   6       none    80      1.00E+13        1.53    y               
-                                                                                               
-29100  6/24/2013       20      21.0    50000   6       Sr90    64      1.00E+13        1.54    y               
-29101  6/24/2013       20      21.0    50000   6       Sr90    80      1.00E+13        1.53    y               
-29102  6/24/2013       -20     -15.0   50000   6       Sr90    64      1.00E+13        1.54    y               
-29103  6/24/2013       -20     -16.0   50000   6       Sr90    80      1.00E+13        1.53    y               
-29104  6/24/2013       -70     -54.5   50000   6       Sr90    64      1.00E+13        1.54    y               
-29105  6/24/2013       -70     -55.5   50000   6       Sr90    80      1.00E+13        1.53    y               
-                                                                                               End of first measurement phase.
-                                                                                               
-29106          20              50000   1       Fe55,superdimmed        64      0.00E+00        3.20                    
-29107          20              50000   1       Fe55,superdimmed        80      0.00E+00        3.12                    
-29090          -20             50000   1       Fe55,superdimmed        64      0.00E+00        3.19                    
-29091          -20             50000   1       Fe55,superdimmed        80      0.00E+00        3.12                    
-29092          -70             50000   1       Fe55,superdimmed        64      0.00E+00        3.18                    
-29093          -70             50000   1       Fe55,superdimmed        80      0.00E+00        3.10                    
-                                                                                               
-29094          20              50000   2       Fe55,superdimmed        64      1.50E+05        3.15                    
-29095          20              50000   2       Fe55,superdimmed        80      1.50E+05        3.15                    
-29096          -20             50000   2       Fe55,superdimmed        64      1.50E+05        3.15                    
-29097          -20             50000   2       Fe55,superdimmed        80      1.50E+05        3.15                    
-29098          -70             50000   2       Fe55,superdimmed        64      1.50E+05        3.15                    
-29099          -70             50000   2       Fe55,superdimmed        80      1.50E+05        3.15                    
-                                                                                               
-29100          20              50000   4       Fe55,superdimmed        64      1.00E+12        1.52                    
-29101          20              50000   4       Fe55,superdimmed        80      1.00E+12        1.52                    
-29102          -20             50000   4       Fe55,superdimmed        64      1.00E+12        1.52                    
-29103          -20             50000   4       Fe55,superdimmed        80      1.00E+12        1.52                    
-29104          -70             50000   4       Fe55,superdimmed        64      1.00E+12        1.52                    
-29105          -70             50000   4       Fe55,superdimmed        80      1.00E+12        1.52                    
-                                                                                               
-29106          20              50000   5       Fe55,superdimmed        64      3.00E+12        1.57                    
-29107          20              50000   5       Fe55,superdimmed        80      3.00E+12        1.55                    
-29108          -20             50000   5       Fe55,superdimmed        64      3.00E+12        1.57                    
-29109          -20             50000   5       Fe55,superdimmed        80      3.00E+12        1.55                    
-29110          -70             50000   5       Fe55,superdimmed        64      3.00E+12        1.57                    
-29111          -70             50000   5       Fe55,superdimmed        80      3.00E+12        1.55                    
-                                                                                               
-29112          20              50000   6       Fe55,superdimmed        64      1.00E+13        1.54                    
-29113          20              50000   6       Fe55,superdimmed        80      1.00E+13        1.53                    
-29114          -20             50000   6       Fe55,superdimmed        64      1.00E+13        1.54                    
-29115          -20             50000   6       Fe55,superdimmed        80      1.00E+13        1.53                    
-29116          -70             50000   6       Fe55,superdimmed        64      1.00E+13        1.54                    
-29117          -70             50000   6       Fe55,superdimmed        80      1.00E+13        1.53                    
+Runnr. Date    Temperature     T-sensor        Events  Chip    Source  64/80   Radiation dose  Vbo     Done?   Allowed T-range Comment         
+29008  4/23/2013       -20     -15.0   5000    1       Fe55    64      0.00E+00                y                               
+29009  4/23/2013       -20     -15.0   5000    1       none    64      0.00E+00                y                               
+29010  4/23/2013       -20     -15.0   5000    1       Fe55    80      0.00E+00                y                               
+29011  4/23/2013       -20     -15.0   5000    1       none    80      0.00E+00                                                
+                                                                                                               
+                                                                                                               
+29012  5/17/2013       20      21.5    50000   1       Fe55    64      0.00E+00        3.20    y       19 … 21       All the yellow marked measurements were made with a baseline in the range between 500 and 3500 for -20°C and were not modified for the other highlighted measurements.         
+29013  5/17/2013       20      21.5    50000   1       Fe55    80      0.00E+00        3.12    y                               
+29014  5/17/2013       -20     -15.5   50000   1       Fe55    64      0.00E+00        3.19    y       -12 … -19                     
+29015  5/17/2013       -20     -16.0   50000   1       Fe55    80      0.00E+00        3.12    y                               
+29016  5/18/2013       -70     -58.0   50000   1       Fe55    64      0.00E+00        3.18    y       -30 … -60                     
+29017  5/18/2013       -70     -58.0   50000   1       Fe55    80      0.00E+00        3.10    y                               
+                                                                                                               
+29018  5/16/2013       20      20.0    50000   1       none    64      0.00E+00        3.20    y                               
+29019  5/16/2013       20      20.5    50000   1       none    80      0.00E+00        3.12    y                               
+29020  5/16/2013       -20     -16.5   50000   1       none    64      0.00E+00        3.19    y                               
+29021  5/16/2013       -20     -17.0   50000   1       none    80      0.00E+00        3.12    y                               
+29022  5/16/2013       -70     -57.5   50000   1       none    64      0.00E+00        3.18    y                               
+29023  5/16/2013       -70     -59.5   50000   1       none    80      0.00E+00        3.10    y                               
+                                                                                                               
+29024  5/21/2013       20      21.5    50000   1       Sr90    64      0.00E+00        3.20    y                               
+29025  5/21/2013       20      21.5    50000   1       Sr90    80      0.00E+00        3.12    y                               
+29026  5/21/2013       -20     -14.0   50000   1       Sr90    64      0.00E+00        3.19    y                               
+29027  5/21/2013       -20     -14.5   50000   1       Sr90    80      0.00E+00        3.12    y                               
+29028  5/21/2013       -70     -53.5   50000   1       Sr90    64      0.00E+00        3.18    y                               
+29029  5/21/2013       -70     -54.5   50000   1       Sr90    80      0.00E+00        3.10    y                               
+                                                                                                               
+29030  5/27/2013       20      21.0    50000   1       Fe55,dimmed     64      0.00E+00        3.20    y               same as run 29012, but dimmed           
+29031  5/27/2013       20      21.0    50000   1       Fe55,dimmed     80      0.00E+00        3.12    y               same as run 29013, but dimmed           
+29032  5/28/2013       -20     -16.5   50000   1       Fe55,dimmed     64      0.00E+00        3.19    y               same as run 29014, but dimmed           
+29033  5/28/2013       -20     -16.5   50000   1       Fe55,dimmed     80      0.00E+00        3.12    y               same as run 29015, but dimmed           
+                                                                                                               
+                                                                                                               
+29034  5/29/2013       20      21.5    50000   2       Fe55,dimmed     64      1.50E+05        3.15    y       19 … 21                       
+29035  5/29/2013       20      21.0    50000   2       Fe55,dimmed     80      1.50E+05        3.15    y                               
+29036  5/29/2013       -20     -16.0   50000   2       Fe55,dimmed     64      1.50E+05        3.15    y       -12 … -19                     
+29037  5/30/2013       -20     -16.0   50000   2       Fe55,dimmed     80      1.50E+05        3.15    y                               
+29038  5/30/2013       -70     -57.0   50000   2       Fe55,dimmed     64      1.50E+05        3.15    y       -30 … -60                     
+29039  5/30/2013       -70     -56.5   50000   2       Fe55,dimmed     80      1.50E+05        3.15    y                               
+                                                                                                               
+29040  5/28/2013       20      21.0    50000   2       none    64      1.50E+05        3.08    y                               
+29041  5/28/2013       20      21.0    50000   2       none    80      1.50E+05        3.08    y                               
+29042  5/28/2013       -20     -13.5   50000   2       none    64      1.50E+05        3.08    y                               
+29043  5/28/2013       -20     -14.5   50000   2       none    80      1.50E+05        3.08    y                               
+29044  5/29/2013       -70     -52.5   50000   2       none    64      1.50E+05        3.08    y                               
+29045  5/29/2013       -70     -53.5   50000   2       none    80      1.50E+05        3.08    y                               
+                                                                                                               
+29046  5/31/2013       20      21.6    50000   2       Sr90    64      1.50E+05        3.15    y                               
+29047  5/31/2013       20      21.0    50000   2       Sr90    80      1.50E+05        3.15    y                               
+29048  5/31/2013       -20     -15.5   50000   2       Sr90    64      1.50E+05        3.15    y                               
+29049  6/2/2013        -20     -16.0   50000   2       Sr90    80      1.50E+05        3.15    y                               
+29050  6/2/2013        -70     -54.5   50000   2       Sr90    64      1.50E+05        3.15    y                               
+29051  6/2/2013        -70     -54.5   50000   2       Sr90    80      1.50E+05        3.15    y                               
+                                                                                                               
+                                                                                                               
+29052  6/7/2013        20      21.0    50000   4       Fe55,dimmed     64      1.00E+12        1.52    y       19 … 21                       
+29053  6/7/2013        20      21.0    50000   4       Fe55,dimmed     80      1.00E+12        1.52    y                               
+29054  6/7/2013        -20     -15.5   50000   4       Fe55,dimmed     64      1.00E+12        1.52    y       -12 … -19                     
+29055  6/7/2013        -20     -16.5   50000   4       Fe55,dimmed     80      1.00E+12        1.52    y                               
+29056  6/7/2013        -70     -58.0   50000   4       Fe55,dimmed     64      1.00E+12        1.52    y       -30 … -60                     
+29057  6/7/2013        -70     -58.0   50000   4       Fe55,dimmed     80      1.00E+12        1.52    y                               
+                                                                                                               
+29058  6/6/2013        20      21.5    50000   4       none    64      1.00E+12        1.52    y                               
+29059  6/6/2013        20      21.0    50000   4       none    80      1.00E+12        1.52    y                               
+29060  6/6/2013        -20     -15.5   50000   4       none    64      1.00E+12        1.52    y                               
+29061  6/6/2013        -20     -15.5   50000   4       none    80      1.00E+12        1.52    y                               
+29062  6/6/2013        -70     -54.5   50000   4       none    64      1.00E+12        1.52    y                               
+29063  6/6/2013        -70     -56.0   50000   4       none    80      1.00E+12        1.52    y                               
+                                                                                                               
+29064  6/10/2013       20      22.0    50000   4       Sr90    64      1.00E+12        1.52    y                               
+29065  6/10/2013       20      21.5    50000   4       Sr90    80      1.00E+12        1.52    y                               
+29066  6/10/2013       -20     -13.5   50000   4       Sr90    64      1.00E+12        1.52    y                               
+29067  6/10/2013       -20     -14.0   50000   4       Sr90    80      1.00E+12        1.52    y                               
+29068  6/10/2013       -70     -53.0   50000   4       Sr90    64      1.00E+12        1.52    y                               
+29069  6/10/2013       -70     -54.0   50000   4       Sr90    80      1.00E+12        1.52    y                               
+                                                                                                               
+                                                                                                               
+29070  6/14/2013       20      21.5    50000   5       Fe55,dimmed     64      3.00E+12        1.57    y       19 … 21                       
+29071  6/14/2013       20      21.0    50000   5       Fe55,dimmed     80      3.00E+12        1.55    y                               
+29072  6/14/2013       -20     -16.0   50000   5       Fe55,dimmed     64      3.00E+12        1.57    y       -12 … -19                     
+29073  6/14/2013       -20     -16.5   50000   5       Fe55,dimmed     80      3.00E+12        1.55    y                               
+29074  6/14/2013       -70     -58.5   50000   5       Fe55,dimmed     64      3.00E+12        1.57    y       -30 … -60                     
+29075  6/14/2013       -70     -58.5   50000   5       Fe55,dimmed     80      3.00E+12        1.55    y                               
+                                                                                                               
+29076  6/13/2013       20      20.5    50000   5       none    64      3.00E+12        1.57    y                               
+29077  6/13/2013       20      20.5    50000   5       none    80      3.00E+12        1.55    y                               
+29078  6/13/2013       -20     -16.5   50000   5       none    64      3.00E+12        1.57    y                               
+29079  6/13/2013       -20     -17.0   50000   5       none    80      3.00E+12        1.55    y                               
+29080  6/13/2013       -70     -57.0   50000   5       none    64      3.00E+12        1.57    y                               
+29081  6/13/2013       -70     -59.5   50000   5       none    80      3.00E+12        1.55    y                               
+                                                                                                               
+29082  6/17/2013       20      21.5    50000   5       Sr90    64      3.00E+12        1.57    y                               
+29083  6/17/2013       20      21.0    50000   5       Sr90    80      3.00E+12        1.55    y                               
+29084  6/17/2013       -20     -14.0   50000   5       Sr90    64      3.00E+12        1.57    y                               
+29085  6/17/2013       -20     -15.0   50000   5       Sr90    80      3.00E+12        1.55    y                               
+29086  6/17/2013       -70     -54.0   50000   5       Sr90    64      3.00E+12        1.57    y                               
+29087  6/17/2013       -70     -54.5   50000   5       Sr90    80      3.00E+12        1.55    y                               
+                                                                                                               
+                                                                                                               
+29088  6/20/2013       20      21.0    50000   6       Fe55,dimmed     64      1.00E+13        1.54    y       19 … 21                       
+29089  6/20/2013       20      21.0    50000   6       Fe55,dimmed     80      1.00E+13        1.53    y                               
+29090  6/20/2013       -20     -16.5   50000   6       Fe55,dimmed     64      1.00E+13        1.54    y       -12 … -19                     
+29091  6/20/2013       -20     -16.5   50000   6       Fe55,dimmed     80      1.00E+13        1.53    y                               
+29092  6/20/2013       -70     -58.5   50000   6       Fe55,dimmed     64      1.00E+13        1.54    y       -30 … -60                     
+29093  6/20/2013       -70     -59.5   50000   6       Fe55,dimmed     80      1.00E+13        1.53    y                               
+                                                                                                               
+29094  6/18/2013       20      20.5    50000   6       none    64      1.00E+13        1.54    y                               
+29095  6/18/2013       20      20.5    50000   6       none    80      1.00E+13        1.53    y                               
+29096  6/18/2013       -20     -15.5   50000   6       none    64      1.00E+13        1.54    y                               
+29097  6/18/2013       -20     -15.5   50000   6       none    80      1.00E+13        1.53    y                               
+29098  6/19/2013       -70     -60.0   50000   6       none    64      1.00E+13        1.54    y                               
+29099  6/19/2013       -70     -60.0   50000   6       none    80      1.00E+13        1.53    y                               
+                                                                                                               
+29100  6/24/2013       20      21.0    50000   6       Sr90    64      1.00E+13        1.54    y                               
+29101  6/24/2013       20      21.0    50000   6       Sr90    80      1.00E+13        1.53    y                               
+29102  6/24/2013       -20     -15.0   50000   6       Sr90    64      1.00E+13        1.54    y                               
+29103  6/24/2013       -20     -16.0   50000   6       Sr90    80      1.00E+13        1.53    y                               
+29104  6/24/2013       -70     -54.5   50000   6       Sr90    64      1.00E+13        1.54    y                               
+29105  6/24/2013       -70     -55.5   50000   6       Sr90    80      1.00E+13        1.53    y                               
+                                                                                               End of first measurement phase.         
+                                                                                                               
+29106          20              50000   1       Fe55,superdimmed        64      0.00E+00        3.20    y                               
+29107          20              50000   1       Fe55,superdimmed        80      0.00E+00        3.12    y                               
+29090          -20             50000   1       Fe55,superdimmed        64      0.00E+00        3.19    y                               
+29091          -20             50000   1       Fe55,superdimmed        80      0.00E+00        3.12    y                               
+29092          -70             50000   1       Fe55,superdimmed        64      0.00E+00        3.18    y               (eingefroren)           
+29093          -70             50000   1       Fe55,superdimmed        80      0.00E+00        3.10    y               (eingefroren)           
+                                                                                                               
+29114  31.10.2013      20      21,0    50000   1       Cd109   64      0,00E+00        3,20    y               measurement with Cd109 with the same parameters Vba, Vbo and Vdiode like all previous measurements      0,24    2,50
+29115  01.11.2013      20      21,0    50000   1       Cd109   64      0,00E+00        3,20    y                       3,31    2,50
+29116  01.11.2013      20      21,0    50000   1       Cd109   64      0,00E+00        2,74    y                       3,31    2,50
+29117  01.11.2013      20      21,0    50000   1       Cd109   64      0,00E+00        2,74    y                       3,31    2,34
+                                                                                                               
+                                                                                                               
+                                                                                                               
+                                                                                                               
+               20              50000   2       Fe55,superdimmed        64      1.50E+05        3.15                                    
+               20              50000   2       Fe55,superdimmed        80      1.50E+05        3.15                                    
+               -20             50000   2       Fe55,superdimmed        64      1.50E+05        3.15                                    
+               -20             50000   2       Fe55,superdimmed        80      1.50E+05        3.15                                    
+               -70             50000   2       Fe55,superdimmed        64      1.50E+05        3.15                                    
+               -70             50000   2       Fe55,superdimmed        80      1.50E+05        3.15                                    
+                                                                                                               
+               20              50000   4       Fe55,superdimmed        64      1.00E+12        1.52                                    
+               20              50000   4       Fe55,superdimmed        80      1.00E+12        1.52                                    
+               -20             50000   4       Fe55,superdimmed        64      1.00E+12        1.52                                    
+               -20             50000   4       Fe55,superdimmed        80      1.00E+12        1.52                                    
+               -70             50000   4       Fe55,superdimmed        64      1.00E+12        1.52                                    
+               -70             50000   4       Fe55,superdimmed        80      1.00E+12        1.52                                    
+                                                                                                               
+               20              50000   5       Fe55,superdimmed        64      3.00E+12        1.57                                    
+               20              50000   5       Fe55,superdimmed        80      3.00E+12        1.55                                    
+               -20             50000   5       Fe55,superdimmed        64      3.00E+12        1.57                                    
+               -20             50000   5       Fe55,superdimmed        80      3.00E+12        1.55                                    
+               -70             50000   5       Fe55,superdimmed        64      3.00E+12        1.57                                    
+               -70             50000   5       Fe55,superdimmed        80      3.00E+12        1.55                                    
+                                                                                                               
+               20              50000   6       Fe55,superdimmed        64      1.00E+13        1.54                                    
+               20              50000   6       Fe55,superdimmed        80      1.00E+13        1.53                                    
+               -20             50000   6       Fe55,superdimmed        64      1.00E+13        1.54                                    
+               -20             50000   6       Fe55,superdimmed        80      1.00E+13        1.53                                    
+               -70             50000   6       Fe55,superdimmed        64      1.00E+13        1.54                                    
+               -70             50000   6       Fe55,superdimmed        80      1.00E+13        1.53                                    
index 3c5f8fe470334555ca00dab54ab8e2721d9212ea..727cfe88232321f6abf6379357a6facc5e83800e 100755 (executable)
Binary files a/ProcessMeasurements/LaborbuchMi29.xls and b/ProcessMeasurements/LaborbuchMi29.xls differ
index 81efa4cfaa567bb9dc7b0ee30b08e5276d439dd7..eff2e224928f246673d1d87e62f811d9921e73e4 100644 (file)
@@ -23,6 +23,8 @@
 #define LABORBUCH "RelevantRuns.csv"
 #define INPUTDATAPATH "/jspc12_F/Mi29/"
 #define OUTPUTDATAPATH_MAINFOLDER "/local/sstrohauer/data/"
+// use this #define for processing to a specific file
+#define OUTPUTDATAPATH_FIXED_PATH "/local/sstrohauer/data/data_4.11.2013_13:57/"
 
 using std::cout;
 using std::endl;
@@ -63,13 +65,27 @@ void ProcessMeasurements(Bool_t overwrite = false, Bool_t useSeperateNoiseRun =
   logfile.close();
   // ----------------
   
-  
+  #ifndef OUTPUTDATAPATH_FIXED_PATH
   std::string outputDataPath = std::string(OUTPUTDATAPATH_MAINFOLDER) + "data_" + timeSS.str() + "/";
+  #else 
+  std::string outputDataPath = OUTPUTDATAPATH_FIXED_PATH;
+  #endif
   cout << "Working directory: " << outputDataPath << endl;
   Int_t mkdirReturnValue = mkdir(outputDataPath.c_str(), 0755);
+  struct stat dirStat;
   if (mkdirReturnValue != 0) {
-    cout << "Can not create directory (mkdir returns " << mkdirReturnValue << ")! Possible error source: No disk space available or directory already existent.\n";    // create directory for this evaluation if not existent and raise error if directory is full
-    return;
+    if (stat(outputDataPath.c_str(), &dirStat) == 0) {
+      if (overwrite == true) {
+       cout << "Directory already exists! Overwriting content...\n";
+      }
+      else {
+       cout << "Directory already exists! Overwrite flag not set, so evaluating only non existent files...\n";
+      }
+    }
+    else {
+      cout << "Can not create directory (mkdir returns " << mkdirReturnValue << ")! Possible error source: No disk space available or directory already existent and overwrite flag set to zero.\n";   // create directory for this evaluation if not existent and raise error if directory is full
+      return;
+    }
   }
   
   // 1. case: Process one single run, chosen by the user while calling main()