Created
August 20, 2018 03:04
-
-
Save vp1981/b64c768ae0ec0e208c19b0d39491b222 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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