Skip to content

Instantly share code, notes, and snippets.

@vp1981
Created August 20, 2018 03:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vp1981/b64c768ae0ec0e208c19b0d39491b222 to your computer and use it in GitHub Desktop.
Save vp1981/b64c768ae0ec0e208c19b0d39491b222 to your computer and use it in GitHub Desktop.
#ifndef _CLUSTER_H_
#define _CLUSTER_H_
#include <iostream>
#include <vector>
#include <string.h>
#include <map>
#include "TROOT.h"
using namespace std;
class Cluster {
public:
Cluster(map<int, int> &map, string &name);
void reset();
vector<string> GetChamb();
vector<double> GetCentroid();
vector<int> GetClusterStrip();
vector<int> GetClusterMax_q();
vector<int> GetSum_q();
//vector<int> GetN_Cluster();
vector<int> GetPCB();
int GetN_Cluster();
bool isGoodCluster(int charge_min, string &name);
private:
vector<int> _strip;
vector<string> _chamb;
vector<int> _max_q;
vector<double> _centroid;
vector<int> _sum_q;
vector<int> _n_cluster;
vector<int> _pcb;
int _n_clu;
unsigned int _n_holes;
};
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment