APRILContent
Algorithm of Particle Reconstruction for ILC - implementation with PandoraSDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations
ClusterPropertiesHelper.h
Go to the documentation of this file.
1 /* ClusterPropertiesHelper.h
3  *
4  * Author: Bo Li (IPNL)
5  *
6  */
7 
8 #ifndef CLUSTERPROPERTIESHELPER_H
9 #define CLUSTERPROPERTIESHELPER_H
10 
11 #include "Pandora/PandoraInternal.h"
12 #include "Pandora/StatusCodes.h"
13 #include "Objects/Cluster.h"
14 #include "TVector3.h"
15 
16 namespace pandora { class Algorithm; class CaloHit; class Track; }
17 
18 namespace april_content
19 {
21  {
22  public:
23  static pandora::StatusCode GetClusterProperties(const pandora::Cluster* pCluster,
24  float& minHitLayer, float& clusterVol, float& energyRatio,
25  float& hitOutsideRatio, float& axisLengthRatio, float& shortAxisLengthRatio);
26 
27  static pandora::StatusCode GetAxisInformation(std::vector<TVector3>& relativePositionVector,
28  std::vector<float>& hitWeightVector, float weightSum,
29  TVector3& clusterMainAxis, float& axisLengthRatio, float& shortAxisLengthRatio);
30 
31  static pandora::StatusCode CalcClusterProperties(const pandora::Cluster* pCluster,
32  float& minHitLayer, float& clusterVol, float& energyRatio,
33  float& hitOutsideRatio, float& axisLengthRatio, float& shortAxisLengthRatio, TVector3& axis);
34 
35  static TVector3 GetMainAxis(const pandora::Cluster* const pCluster);
36  };
37 }
38 
39 #endif // CLUSTERPROPERTIESHELPER_H
Definition: ClusterPropertiesHelper.h:20