StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StPxlClusterCollection.h
1 
6 /***************************************************************************
7  *
8  * $Id: StPxlClusterCollection.h,v 1.5 2017/09/01 02:58:33 dongx Exp $
9  *
10  * Author: Qiu Hao, March 2013
11  ***************************************************************************
12  *
13  * Description:
14  * pxl cluster collection
15  * More information at
16  * https://www.star.bnl.gov/protected/heavy/qiuh/HFT/software/PXL_software.pdf
17  *
18  ***************************************************************************
19  *
20  * $Log: StPxlClusterCollection.h,v $
21  * Revision 1.5 2017/09/01 02:58:33 dongx
22  * Update to ensure idTruth is preserved for MC hits for overlapping scenarios between MC/data and two or more MC hits
23  *
24  * Revision 1.4 2014/08/06 11:43:34 jeromel
25  * Suffix on literals need to be space (later gcc compiler makes it an error) - first wave of fixes
26  *
27  * Revision 1.3 2014/01/28 19:29:35 qiuh
28  * *** empty log message ***
29  *
30  *
31  **************************************************************************/
32 #ifndef StPxlClusterCollection_hh
33 #define StPxlClusterCollection_hh
34 
35 #include "StObject.h"
36 #include "StPxlCluster.h"
37 #include "StPxlUtil/StPxlConstants.h"
38 
40 {
41 public:
43  void addCluster(Int_t sector, Int_t ladder, Int_t sensor, const StPxlCluster &cluster);
44  Int_t numberOfClusters(Int_t sector, Int_t ladder, Int_t sensor) const;
45  Int_t numberOfClusters() const;
46  const StPxlCluster *cluster(Int_t sector, Int_t ladder, Int_t sensor, Int_t clusterIndex) const;
47  virtual const char *GetCVS() const {
48  static const char cvs[] = "Tag $Name: $ $Id: StPxlClusterCollection.h,v 1.5 2017/09/01 02:58:33 dongx Exp $ built " __DATE__ " " __TIME__ ;
49  return cvs;
50  }
51 
52 protected:
53  vector<StPxlCluster> mClusterVec[kNumberOfPxlSectors][kNumberOfPxlLaddersPerSector][kNumberOfPxlSensorsPerLadder];
54 
55  ClassDef(StPxlClusterCollection, 1)
56 };
57 
58 #endif
Int_t numberOfClusters(Int_t sector, Int_t ladder, Int_t sensor) const
number of clusters in a sensor
const StPxlCluster * cluster(Int_t sector, Int_t ladder, Int_t sensor, Int_t clusterIndex) const
pointer to a cluster in the collection
void addCluster(Int_t sector, Int_t ladder, Int_t sensor, const StPxlCluster &cluster)
add a cluster to the collection
vector< StPxlCluster > mClusterVec[kNumberOfPxlSectors][kNumberOfPxlLaddersPerSector][kNumberOfPxlSensorsPerLadder]
vectors to store clusters