CalibEnv.C calibVarDescription.txt guiAlias.C
authormarian <marian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 24 Nov 2009 20:36:31 +0000 (20:36 +0000)
committermarian <marian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 24 Nov 2009 20:36:31 +0000 (20:36 +0000)
CalibEnv.C.diff Add NaN counter
calibVarDescription.txt.diff Add NaN counter
guiAlias.C.diff change name of main function to guiAlias
Jens

TPC/CalibMacros/CalibEnv.C
TPC/CalibMacros/calibVarDescription.txt
TPC/CalibMacros/guiAlias.C

index aca56ae..a1ec5a3 100644 (file)
@@ -173,8 +173,8 @@ void ProcessRun(Int_t irun, Int_t startTime, Int_t endTime){
   fitVdrift=calibDB->CreateVdriftSplineFit("TGRAPHERRORS_MEAN_VDRIFT_COSMICS_ALL",irun);
   //noise data Processing - see ProcessNoiseData function for description of the results
   TVectorD vNoiseMean, vNoiseMeanSenRegions, vNoiseRMS, vNoiseRMSSenRegions;
-  Int_t nonMaskedZero=0;
-  dbutil->ProcessNoiseData(vNoiseMean, vNoiseMeanSenRegions, vNoiseRMS, vNoiseRMSSenRegions, nonMaskedZero);
+  Int_t nonMaskedZero=0, nNaN=0;
+  dbutil->ProcessNoiseData(vNoiseMean, vNoiseMeanSenRegions, vNoiseRMS, vNoiseRMSSenRegions, nonMaskedZero, nNaN);
   //
   // comparisons
   //
@@ -359,6 +359,7 @@ void ProcessRun(Int_t irun, Int_t startTime, Int_t endTime){
       "rmsNoise.="<<&vNoiseRMS<<
       "rmsNoiseSen.="<<&vNoiseRMSSenRegions<<
       "zeroNoise="<<nonMaskedZero<<
+      "nNaN="<<nNaN<<
       //pulser data
       "timePulser.=" << &vTimePulser <<
       "nOffPulser="<<nOffChannels<<
index 6302e16..ae0581f 100644 (file)
@@ -47,6 +47,7 @@ meanNoiseSen.         1, Mean_Noise_in_sensitive_regions, Noise_Pedestals, All_Pads, IR
 rmsNoise.              1, RMS_Noise, Noise_Pedestals, All_Pads, IROCs, OROCs_small_pads, OROCs_large_pads
 rmsNoiseSen.           1, RMS_Noise_in_sensitive_regions, Noise_Pedestals, All_Pads, IROCs, OROCs_small_pads, OROCs_large_pads
 zeroNoise              1, Pads_with_zero_noise, Noise_Pedestals
+nNaN  1, Pads_with_NaN_noise, Noise_Pedestals
 nMasked                1, Number_of_masked_pads, ALTRO
 nOffPulser             1, Pads_without_pulser_signal, Pulser
 timePulser.   1, Pulser_Position_[timebins], Pulser, IROC_A-Side, IROC_C-Side, OROC_A-Side, OROC_C-Side
@@ -77,5 +78,17 @@ noiseDeviations. 1, Noise_var_to_ref_[fraction], Noise_Pedestals, >5%, >10%, >15
 pulserQdeviations. 1, PulserQ_var_to_ref_[fraction], Pulser, >0.5%, >1%, >5%, >10%
 #pulserVarQMean
 pulserNpadsOutOneTB 1, Number_of_pads_with_PulserT_var_>#pm_1_tb_to_ROC_mean, Pulser
-pulserNpadsOffAdd 1, Number_of_pads_without_signal_but_signal_in_ref
+pulserNpadsOffAdd 1, Number_of_pads_without_signal_but_signal_in_ref,
+#
+#drift velocity
+#
+vlaserA0 1, LaserA_offset, Drift,
+vlaserA1 1, LaserA_drift_correction, Drift, 
+vlaserA2 1, LaserA_gy_correction, Drift,
+vlaserC0 1, LaserC_offset, Drift,
+vlaserC1 1, LaserC_drift_correction, Drift,
+vlaserC2 1, LaserC_gy_correction, Drift, 
+vcosmicAll 1, Cosmic_drift_corrrection, Drift,
+vdrift1 1, Combined_drift_correction, Drift,
+vdriftITS 1, TPC-ITS_vdrift_correction, Drift,
 
index 2d9aa72..6d22e9f 100644 (file)
 
 TTree * guiTree =  guiTime->GetChain();
 
-void Init(){
+void guiAlias(){
   guiTree =  guiTime->GetChain();
   MakeAliasCE(4);
   MakeAliasLT(4);
   MakeAliasCosmic(4);   
-  guiTree->SetAlias("goCut","abs(goofie.fElements[3]-2.677)<0.1");
+  guiTree->SetAlias("goCut","abs(goofie.fElements[3]-2.677)<0.1");  
+}
+
+void SetStyle(){ 
+  Float_t mx0=0.2, mx1=0.1, my0=0.15, my1=0.1;
+  guiTime->GetCanvas()->SetTicks(1,1);
+  guiTime->GetCanvas()->SetMargin(mx0,mx1,my0,my1);
+  gStyle->SetTitleYSize(0.03);
+  gStyle->SetTitleXSize(0.03);
+  gStyle->SetTitleXOffset(2);
+  gStyle->SetTitleYOffset(6);
 }
 
 void MakeAliasCE(Double_t deltaT){
@@ -47,4 +57,13 @@ void MakeAliasCosmic(Double_t deltaT){
 }
 
 
+void SetGoofieAlias(){
+  //
+  // goofie aliases
+  //
+  guiTree->SetAlias("ptrelG","(goofie.fElements[17]/0.3426-1)");
+  guiTree->SetAlias("vdriftGN","goofie.fElements[3]/(1+ptrelG)");
+  //
+}
+