CGEM BOSS 6.6.5.i
BESIII Offline Software System
Loading...
Searching...
No Matches
CgemLUTWriter.cxx File Reference
#include <iostream>
#include <iomanip>
#include <sstream>
#include <string>
#include <cmath>
#include <csignal>
#include "TFile.h"
#include "TTree.h"
#include <fstream>
#include "stdio.h"
#include "TCanvas.h"
#include "TH2F.h"
#include "TCut.h"
#include "TChain.h"
#include "TF1.h"
#include <map>
#include "TSystem.h"
#include "TStyle.h"
#include "TMinuit.h"
#include "TString.h"
#include "TMath.h"
#include "GaudiKernel/AlgFactory.h"
#include "GaudiKernel/DataObject.h"
#include "GaudiKernel/IEventProcessor.h"
#include "GaudiKernel/Incident.h"
#include "GaudiKernel/IIncidentSvc.h"
#include "GaudiKernel/Memory.h"
#include "GaudiKernel/ISvcLocator.h"
#include "GaudiKernel/IDataProviderSvc.h"
#include "GaudiKernel/Bootstrap.h"
#include "GaudiKernel/RegistryEntry.h"
#include "GaudiKernel/MsgStream.h"
#include "ReadCosmicRayData/CgemLUTWriter.h"

Go to the source code of this file.

Functions

TChain ch ("t1")
 
int err_noise (0)
 
int err_charge (1)
 
int err_comunication (2)
 
double fitfunctionFD (double *x, double *par)
 

Variables

const float TIME_BIN = 6.25
 
const int charge_cut = -40
 
const int charge_max = 70
 
const int signal_time_cut_min = -9300
 
const int signal_time_cut_max = -8800
 
const int noise_time_cut_min_left = -9600
 
const int noise_time_cut_max_left = -9300
 
const int noise_time_cut_min_right = -8600
 
const int noise_time_cut_max_right = -8300
 
const double time_window_signal = ( signal_time_cut_max - signal_time_cut_min ) * 1e-9
 
const double time_window_noise = ( noise_time_cut_max_left - noise_time_cut_min_left + noise_time_cut_max_right - noise_time_cut_min_right ) * 1e-9
 
const double max_rate = 10000
 
const double max_noise_charge = 8
 
const double max_threshold = 3.
 
const double min_average_efficiency = 0.90
 
const double min_efficiency = 0.80
 
const double failure_rate_efficienct = 0.1
 
const double min_saturation_value = 40
 
TString inFile_name
 
TString inFileTP
 
TString outFile
 
TCanvas * c1 = new TCanvas("c1","c1",800,600)
 
int error_counter [N_FEB][N_CHIP]
 
bool error_counter_type [N_FEB][N_CHIP][3]
 
std::fstream outStream
 
double expected_noise_rate = 2000
 
double expected_noise_per_chip = time_window_noise * expected_noise_rate * N_CHANNEL
 
int east [11] ={2,3,8,9,10,11,17,18,19,20,21}
 
int sheet1 [32] ={23,24,25,26,27,28,29,37,38,39,40,41,42,43,53,54,55,56,57,58,59,60,61,71,72,73,74,75,76,77,78,79}
 

Function Documentation

◆ ch()

◆ err_charge()

int err_charge ( 1 )

◆ err_comunication()

int err_comunication ( 2 )

◆ err_noise()

int err_noise ( 0 )

◆ fitfunctionFD()

double fitfunctionFD ( double * x,
double * par )
inline

Definition at line 83 of file CgemLUTWriter.cxx.

83{ return (par[0]+ par[1]/(1+TMath::Exp(-(x[0]-par[2])/par[3])));}

Variable Documentation

◆ c1

◆ charge_cut

const int charge_cut = -40

Definition at line 53 of file CgemLUTWriter.cxx.

◆ charge_max

const int charge_max = 70

Definition at line 54 of file CgemLUTWriter.cxx.

◆ east

◆ error_counter

int error_counter[N_FEB][N_CHIP]

Definition at line 76 of file CgemLUTWriter.cxx.

◆ error_counter_type

bool error_counter_type[N_FEB][N_CHIP][3]

Definition at line 77 of file CgemLUTWriter.cxx.

◆ expected_noise_per_chip

double expected_noise_per_chip = time_window_noise * expected_noise_rate * N_CHANNEL

Definition at line 81 of file CgemLUTWriter.cxx.

Referenced by CgemLUTWriter::initialize().

◆ expected_noise_rate

double expected_noise_rate = 2000

Definition at line 80 of file CgemLUTWriter.cxx.

◆ failure_rate_efficienct

const double failure_rate_efficienct = 0.1

Definition at line 69 of file CgemLUTWriter.cxx.

◆ inFile_name

TString inFile_name

Definition at line 72 of file CgemLUTWriter.cxx.

Referenced by CgemLUTWriter::initialize().

◆ inFileTP

TString inFileTP

Definition at line 73 of file CgemLUTWriter.cxx.

◆ max_noise_charge

const double max_noise_charge = 8

Definition at line 65 of file CgemLUTWriter.cxx.

◆ max_rate

const double max_rate = 10000

Definition at line 64 of file CgemLUTWriter.cxx.

◆ max_threshold

const double max_threshold = 3.

Definition at line 66 of file CgemLUTWriter.cxx.

◆ min_average_efficiency

const double min_average_efficiency = 0.90

Definition at line 67 of file CgemLUTWriter.cxx.

◆ min_efficiency

const double min_efficiency = 0.80

Definition at line 68 of file CgemLUTWriter.cxx.

◆ min_saturation_value

const double min_saturation_value = 40

Definition at line 70 of file CgemLUTWriter.cxx.

◆ noise_time_cut_max_left

const int noise_time_cut_max_left = -9300

Definition at line 58 of file CgemLUTWriter.cxx.

◆ noise_time_cut_max_right

const int noise_time_cut_max_right = -8300

Definition at line 60 of file CgemLUTWriter.cxx.

◆ noise_time_cut_min_left

const int noise_time_cut_min_left = -9600

Definition at line 57 of file CgemLUTWriter.cxx.

◆ noise_time_cut_min_right

const int noise_time_cut_min_right = -8600

Definition at line 59 of file CgemLUTWriter.cxx.

◆ outFile

TString outFile

Definition at line 73 of file CgemLUTWriter.cxx.

◆ outStream

std::fstream outStream

Definition at line 79 of file CgemLUTWriter.cxx.

◆ sheet1

int sheet1[32] ={23,24,25,26,27,28,29,37,38,39,40,41,42,43,53,54,55,56,57,58,59,60,61,71,72,73,74,75,76,77,78,79}

Definition at line 85 of file CgemLUTWriter.cxx.

85{23,24,25,26,27,28,29,37,38,39,40,41,42,43,53,54,55,56,57,58,59,60,61,71,72,73,74,75,76,77,78,79};

◆ signal_time_cut_max

const int signal_time_cut_max = -8800

Definition at line 56 of file CgemLUTWriter.cxx.

◆ signal_time_cut_min

const int signal_time_cut_min = -9300

Definition at line 55 of file CgemLUTWriter.cxx.

◆ TIME_BIN

const float TIME_BIN = 6.25

Definition at line 52 of file CgemLUTWriter.cxx.

◆ time_window_noise

Definition at line 62 of file CgemLUTWriter.cxx.

◆ time_window_signal

const double time_window_signal = ( signal_time_cut_max - signal_time_cut_min ) * 1e-9

Definition at line 61 of file CgemLUTWriter.cxx.