Skip to content
Snippets Groups Projects
Commit a745ed07 authored by Andrea Coccaro's avatar Andrea Coccaro
Browse files

Merge branch 'master' into 'master'

first implementation of StripCluster EDM class

See merge request faser/calypso!3
parents 4503200b d77ba7d4
No related branches found
No related tags found
No related merge requests found
/*
FASER Collaboration
*/
#ifndef IDENTIFIER_H
#define IDENTIFIER_H
#include <iostream>
using namespace std;
class Identifier {
public:
Identifier();
~Identifier();
Identifier(int);
const int id();
private:
int m_id;
};
Identifier::Identifier() {}
Identifier::Identifier(int id) : m_id(id) {}
Identifier::~Identifier() {}
const int Identifier::id() { return m_id; }
#endif // IDENTIFIER_H
/*
FASER Collaboration
*/
#ifndef STRIPCLUSTER_H
#define STRIPCLUSTER_H
#include <iostream>
#include <vector>
#include <Eigen/Dense>
#include "Identifier.h"
using namespace Eigen;
using namespace std;
class StripCluster {
public:
StripCluster();
~StripCluster();
StripCluster(int);
const int id();
const std::vector<Identifier>& rdoList();
const Vector2d localPosition();
const Vector3d& globalPosition();
const Matrix2d localCovariance();
private:
Identifier m_id;
std::vector<Identifier> m_rdo;
Vector2d m_localPosition;
Vector3d *m_globalPosition;
Matrix2d m_localCovariance;
};
StripCluster::StripCluster() {}
StripCluster::StripCluster(int id) : m_id(id) {}
StripCluster::~StripCluster() {}
const int StripCluster::id() { return m_id.id(); }
const std::vector<Identifier>& StripCluster::rdoList() { return m_rdo; }
const Vector2d StripCluster::localPosition() { return m_localPosition; }
const Vector3d& StripCluster::globalPosition() { return *m_globalPosition; }
const Matrix2d StripCluster::localCovariance() { return m_localCovariance; }
#endif // STRIPCLUSTER_H
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment