TrdMCClusterR Fit Classifier
UtilitiesAMSEvent.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <root.h>
4 
5 
7 {
8  //______________________________________________________________________________________
9  double FindMaxEkinTrdMCClusters(AMSEventR * pev, int ntrdmccluster, int mc0_PID)
10  {
12 
13  double max_clusterZ = 0.0;
14  double max_clusterZEkin = -1;
15 
16  for (int iTRDMCCluster = 0; iTRDMCCluster < ntrdmccluster; iTRDMCCluster++)
17  {
18  TrdMCClusterR ctr = pev->TrdMCCluster(iTRDMCCluster);
19 
21  if (ctr.Xgl[2] > max_clusterZ && ctr.GtrkID == 1 && ctr.ParticleNo == mc0_PID)
22  {
23  max_clusterZ = ctr.Xgl[2];
24  max_clusterZEkin = ctr.Ekin;
25  }
26  }
27 
28  return max_clusterZEkin;
29  }
30 }
Definition: UtilitiesAMSEvent.h:7
double FindMaxEkinTrdMCClusters(AMSEventR *pev, int ntrdmccluster, int mc0_PID)
Definition: UtilitiesAMSEvent.h:9