File indexing completed on 2024-04-06 12:04:47
0001 #ifndef DataFormats_MuonReco_MuonRecHitCluster_h
0002 #define DataFormats_MuonReco_MuonRecHitCluster_h
0003
0004 #include <vector>
0005 #include "DataFormats/Math/interface/Vector3D.h"
0006
0007 namespace reco {
0008
0009 class MuonRecHitCluster {
0010 public:
0011
0012 MuonRecHitCluster() = default;
0013
0014 MuonRecHitCluster(const math::RhoEtaPhiVectorF position,
0015 const int size,
0016 const int nStation,
0017 const float avgStation,
0018 const float time,
0019 const float timeSpread,
0020 const int nME11,
0021 const int nME12,
0022 const int nME41,
0023 const int nME42,
0024 const int nMB1,
0025 const int nMB2);
0026
0027
0028 ~MuonRecHitCluster() = default;
0029
0030 float eta() const { return position_.Eta(); }
0031 float phi() const { return position_.Phi(); }
0032 float x() const { return position_.X(); }
0033 float y() const { return position_.Y(); }
0034 float z() const { return position_.Z(); }
0035 float r() const { return position_.Rho(); }
0036 int size() const { return size_; }
0037 int nStation() const { return nStation_; }
0038 float avgStation() const { return avgStation_; }
0039 int nMB1() const { return nMB1_; }
0040 int nMB2() const { return nMB2_; }
0041 int nME11() const { return nME11_; }
0042 int nME12() const { return nME12_; }
0043 int nME41() const { return nME41_; }
0044 int nME42() const { return nME42_; }
0045 float time() const { return time_; }
0046 float timeSpread() const { return timeSpread_; }
0047
0048 private:
0049 math::RhoEtaPhiVectorF position_;
0050 int size_;
0051 int nStation_;
0052 float avgStation_;
0053 float time_;
0054 float timeSpread_;
0055 int nME11_;
0056 int nME12_;
0057 int nME41_;
0058 int nME42_;
0059 int nMB1_;
0060 int nMB2_;
0061 };
0062
0063 typedef std::vector<MuonRecHitCluster> MuonRecHitClusterCollection;
0064 }
0065 #endif