SND@LHC Software
Loading...
Searching...
No Matches
TTCluster.py File Reference

Go to the source code of this file.

Classes

class  TTCluster.TTCluster
 CLASS OF TT AND HPT EVENTS ######################################################. More...
 

Namespaces

namespace  TTCluster
 

Functions

 TTCluster.cm_to_channel (locpos, sipm_map=sipm_map, gaps_map=gaps_map, pitch=pitch, charr=charr, reverse=False, ch_max_num=ch_max_num, n_solid_sipms=n_solid_sipms)
 FUNCTIONS FOR TTCLASS #####################################################.
 
 TTCluster.channel_to_cm (channelpos, sipm_map=sipm_map, reverse=False, pitch=pitch)
 
 TTCluster.GetMatType (DetID)
 
 TTCluster.GetMatNum (DetID)
 
 TTCluster.GetMatLength (DetID)
 
 TTCluster.GetMatQty (DetID)
 
 TTCluster.GetStationNum (DetID)
 
 TTCluster.global_to_local (DetID, globalpos)
 
 TTCluster.local_to_global (DetID, localpos)
 
 TTCluster.ly_loss_mean (distance, params=ly_loss_params)
 
 TTCluster.ly_attenuation (distance)
 
 TTCluster.cluster_width_mean (distance, params=cluster_width_mean_params)
 
 TTCluster.cluster_width_sigma (distance, params=cluster_width_sigma_params)
 
 TTCluster.cluster_width_random (distance, ly, persent=random_width_persent, cluster_width_min=cluster_width_min, cluster_width_max=cluster_width_max)
 
 TTCluster.approx_function (var, approx_data)
 
 TTCluster.edep_to_ly (energy, CDF_integral=CDF_integral, energy_range=energy_range, ly_linear_params=ly_linear_params, k_cdfs_corr=k_cdfs_corr, sigma_in_percent=sigma_in_percent, ly_CDF_params=ly_CDF_params, CDF_ly_params=CDF_ly_params, ly_CDF_landau_params=ly_CDF_landau_params)
 
 TTCluster.cluster_generator (amplitude, width, wmp, cluster_width_max=cluster_width_max, chpos_min=chpos_min, chpos_max=chpos_max)
 
 TTCluster.is_realistic (cluster, width)
 
 TTCluster.create_cluster (amplitude, width, wmp)
 
 TTCluster.weigthed_mean_pos (cluster)
 

Variables

int TTCluster.sipm_hor_pos = +1
 GLOBAL VALUES AND PARAMETERS ############.
 
int TTCluster.sipm_vert_pos = -1
 
bool TTCluster.is_sipm_hor_reversed = True
 
bool TTCluster.is_sipm_vert_reversed = True
 
float TTCluster.hw = 13.06 / 2.
 
float TTCluster.pitch = 0.025
 
float TTCluster.charr = 1.6
 
float TTCluster.edge = 0.017
 
float TTCluster.gap = 0.025
 
float TTCluster.array = gap + 2.*charr
 
float TTCluster.biggap = 0.042
 
int TTCluster.ch_max_num = 511
 
int TTCluster.n_solid_sipms = 8
 
tuple TTCluster.sipm_map
 
dict TTCluster.gaps_map
 
float TTCluster.ly_loss_params = 20.78, -0.26, 7.89, -3.06
 
float TTCluster.ly_loss_sigma_params = 6.8482, -0.5757, 3.4458
 
float TTCluster.cluster_width_mean_params = 0.6661, -0.006955, 2.163
 
float TTCluster.cluster_width_sigma_params = 1.103, -0.0005751
 
float TTCluster.random_width_persent = 0.01
 
float TTCluster.ly_min = 4.5
 
int TTCluster.ly_max = 104
 
float TTCluster.chpos_min = -0.5
 
float TTCluster.chpos_max = 511.5
 
int TTCluster.cluster_width_min = 1
 
int TTCluster.cluster_width_max = 10
 
float TTCluster.energy_range = 0.18, 0.477
 
float TTCluster.CDF_integral = 0.0185640424
 
float TTCluster.ly_linear_params = 332.882, -58.7085
 
float TTCluster.k_cdfs_corr = 0.993076766938
 
float TTCluster.sigma_in_percent = 0.01
 
int TTCluster.sigma_from_width = 1 / 4.
 
dict TTCluster.ly_CDF_params
 
dict TTCluster.ly_CDF_landau_params
 
dict TTCluster.CDF_ly_params
 
dict TTCluster.design2018 = {'dy': 10.,'dv': 6,'ds': 9,'nud': 3,'caloDesign': 3,'strawDesign': 10}
 LOAD THE TARGET TRACKER GEOMETRY #########.
 
dict TTCluster.dy = design2018['dy']
 
dict TTCluster.dv = design2018['dv']
 
dict TTCluster.ds = design2018['ds']
 
dict TTCluster.nud = design2018['nud']
 
dict TTCluster.caloDesign = design2018['caloDesign']
 
dict TTCluster.strawDesign = design2018['strawDesign']
 
 TTCluster.geofile = None
 
 TTCluster.ship_geo
 
 TTCluster.n_hor_planes = ship_geo.NuTauTT.n_hor_planes
 
 TTCluster.n_vert_planes = ship_geo.NuTauTT.n_vert_planes
 
 TTCluster.scifimat_hor = ship_geo.NuTauTT.scifimat_hor
 
 TTCluster.scifimat_vert = ship_geo.NuTauTT.scifimat_vert
 
 TTCluster.scifimat_width = ship_geo.NuTauTT.scifimat_width
 
 TTCluster.scifimat_z = ship_geo.NuTauTT.scifimat_z
 
 TTCluster.n_tt_stations = ship_geo.NuTauTT.n
 
list TTCluster.tt_points = []
 EXAMPLE OF USING THE CLASS #######.
 
list TTCluster.hpt_points = []
 
list TTCluster.tt_raw = []
 
list TTCluster.hpt_raw = []
 
 TTCluster.muonfile = ROOT.TFile("$PWD/ship.conical.PG_13-TGeant4.root")
 
 TTCluster.tree = muonfile.Get("cbmsim")
 
 TTCluster.pnt = TTCluster(hit.GetDetectorID(), hit.GetX(), hit.GetY(), hit.GetEnergyLoss())
 
 TTCluster.fig
 
 TTCluster.axs = plt.gca()
 
 TTCluster.ly_bins = np.linspace(4,104,100)
 
 TTCluster.bins
 
 TTCluster.label
 
 TTCluster.loc
 
int TTCluster.nbins = 24
 
list TTCluster.xz_points = []
 
list TTCluster.yz_points = []