Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-12-16 09:19:49

0001 // $Id: $
0002 
0003 /*!
0004  * \file CaloRecoUtility.h
0005  * \brief
0006  * \author Justin Frantz <frantz@ohio.edu>
0007  * \version $Revision:   $
0008  * \date $Date: $
0009  */
0010 
0011 #ifndef CALORECO_CALORECOUTILITY_H
0012 #define CALORECO_CALORECOUTILITY_H
0013 
0014 class RawCluster;
0015 class BEmcRec;
0016 
0017 /*!
0018  * \brief CaloRecoUtility
0019 
0020  */
0021 
0022 class CaloRecoUtility
0023 {
0024  public:
0025   ~CaloRecoUtility();
0026   CaloRecoUtility();
0027   // cppcheck: deleting copy ctor and = operator to prevent accidental use
0028   // if they are used at some point they need to be properly implemented
0029   // the default does not work for allocated memory
0030   CaloRecoUtility(const CaloRecoUtility& cru) = delete;
0031   CaloRecoUtility& operator=(CaloRecoUtility const&) = delete;
0032 
0033   //! corrects cluster Z (implicitly also eta) for updated z vertex
0034   // assuming
0035   static void ShowerDepthCorrZVertex(RawCluster* clus, float vz);
0036   void ProbCorrsZVertex(RawCluster* clus, float vz);
0037   void LoadProfile();
0038 
0039  private:
0040   bool _profLoaded {false};
0041   BEmcRec* _bemc {nullptr};
0042 };
0043 
0044 #endif