File indexing completed on 2025-10-17 08:19:25
0001 #ifndef CALOBASE_PHOTONCLUSTER_H
0002 #define CALOBASE_PHOTONCLUSTER_H
0003
0004 #include <Rtypes.h> // for ROOT dictionary macro definitions
0005 #include <phool/phool.h>
0006 #include <iostream>
0007 #include <limits>
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019 class PhotonCluster
0020 {
0021 public:
0022
0023 virtual ~PhotonCluster();
0024
0025
0026
0027
0028 virtual float get_conversion_probability() const
0029 {
0030 PHOOL_VIRTUAL_WARN("get_conversion_probability()");
0031 return std::numeric_limits<float>::quiet_NaN();
0032 }
0033
0034 virtual bool is_converted() const
0035 {
0036 PHOOL_VIRTUAL_WARN("is_converted()");
0037 return false;
0038 }
0039
0040 virtual float get_shower_shape_parameter(const std::string& ) const
0041 {
0042 PHOOL_VIRTUAL_WARN("get_shower_shape_parameter()");
0043 return std::numeric_limits<float>::quiet_NaN();
0044 }
0045
0046
0047
0048
0049 virtual bool pass_photon_cuts() const
0050 {
0051 PHOOL_VIRTUAL_WARN("pass_photon_cuts()");
0052 return false;
0053 }
0054
0055 virtual void identify_photon(std::ostream& = std::cout) const
0056 {
0057 PHOOL_VIRTUAL_WARN("identify_photon()");
0058 }
0059
0060
0061
0062
0063 virtual void set_conversion_probability(const float )
0064 {
0065 PHOOL_VIRTUAL_WARN("set_conversion_probability()");
0066 }
0067
0068 virtual void set_converted(const bool )
0069 {
0070 PHOOL_VIRTUAL_WARN("set_converted()");
0071 }
0072
0073 virtual void set_shower_shape_parameter(const std::string& , const float )
0074 {
0075 PHOOL_VIRTUAL_WARN("set_shower_shape_parameter()");
0076 }
0077
0078
0079
0080
0081 virtual void reset_photon_properties()
0082 {
0083 PHOOL_VIRTUAL_WARN("reset_photon_properties()");
0084 }
0085
0086 virtual bool is_valid_photon() const
0087 {
0088 PHOOL_VIRTUAL_WARN("is_valid_photon()");
0089 return false;
0090 }
0091
0092
0093 protected:
0094
0095 PhotonCluster() = default;
0096
0097
0098
0099 ClassDef(PhotonCluster, 1)
0100 };
0101
0102 #endif