Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-09-07 04:35:52

0001 #ifndef DataFormats_EgammaReco_PreshowerClusterShape_h
0002 #define DataFormats_EgammaReco_PreshowerClusterShape_h
0003 /*
0004  * PreshowerShape cluster class
0005  *
0006  * \author Aris Kyriakis (NCSR "Demokritos")
0007  */
0008 //
0009 #include "DataFormats/EgammaReco/interface/PreshowerClusterShapeFwd.h"
0010 #include "DataFormats/EgammaReco/interface/SuperClusterFwd.h"
0011 
0012 namespace reco {
0013 
0014   class PreshowerClusterShape {
0015   public:
0016     /// default constructor
0017     PreshowerClusterShape() {}
0018 
0019     virtual ~PreshowerClusterShape();
0020 
0021     /// constructor from strip energies
0022     PreshowerClusterShape(const std::vector<float>& stripEnergies, const int plane);
0023 
0024     /// Copy contructor
0025     PreshowerClusterShape(const PreshowerClusterShape&);
0026 
0027     /// Preshower plane
0028     int plane() const { return plane_; }
0029 
0030     /// Associated SuperCluster;
0031     SuperClusterRef superCluster() const { return sc_ref_; }
0032 
0033     /// Energies of component strips
0034     virtual std::vector<float> getStripEnergies() const { return stripEnergies_; }
0035 
0036     void setSCRef(const SuperClusterRef& r) { sc_ref_ = r; }
0037 
0038   private:
0039     int plane_;
0040 
0041     /// Associated super cluster;
0042     SuperClusterRef sc_ref_;
0043 
0044     /// used strip energies
0045     std::vector<float> stripEnergies_;
0046   };
0047 }  // namespace reco
0048 #endif