File indexing completed on 2024-04-06 12:06:34
0001 #include <DataFormats/TrackReco/interface/TrackFwd.h>
0002 #include <DataFormats/Math/interface/LorentzVectorFwd.h>
0003 #include <TVector3.h>
0004 #include <vector>
0005
0006 class EventShape {
0007 public:
0008 static math::XYZTLorentzVectorF thrust(const reco::TrackCollection&);
0009 static float sphericity(const reco::TrackCollection&);
0010 static float aplanarity(const reco::TrackCollection&);
0011 static float planarity(const reco::TrackCollection&);
0012
0013 EventShape(reco::TrackCollection&);
0014
0015 math::XYZTLorentzVectorF thrust() const;
0016 float sphericity() const;
0017 float aplanarity() const;
0018 float planarity() const;
0019
0020 private:
0021 std::vector<TVector3> p;
0022 std::vector<float> eigenvalues;
0023 };