StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StPxlRawHitCollection.h
1 
6 /***************************************************************************
7  *
8  * $Id: StPxlRawHitCollection.h,v 1.5 2017/08/28 17:05:16 dongx Exp $
9  *
10  * Author: Qiu Hao, March 2013
11  ***************************************************************************
12  *
13  * Description:
14  * pxl raw hit collection
15  * More information at
16  * https://www.star.bnl.gov/protected/heavy/qiuh/HFT/software/PXL_software.pdf
17  *
18  ***************************************************************************
19  *
20  * $Log: StPxlRawHitCollection.h,v $
21  * Revision 1.5 2017/08/28 17:05:16 dongx
22  * Append rawHits to StPxlRawHitCollection only if exists - for simu/embedding
23  *
24  * Revision 1.4 2014/08/06 11:43:35 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:44 qiuh
28  * *** empty log message ***
29  *
30  *
31  **************************************************************************/
32 #ifndef StPxlRawHitCollection_hh
33 #define StPxlRawHitCollection_hh
34 
35 #include "StObject.h"
36 #include "StPxlRawHit.h"
37 #include "StPxlUtil/StPxlConstants.h"
38 
40 {
41 public:
43  void addRawHit(const StPxlRawHit &rawHit);
44  Int_t numberOfRawHits(Int_t sector, Int_t ladder, Int_t sensor);
45  Int_t numberOfRawHits();
46  const StPxlRawHit *rawHit(Int_t sector, Int_t ladder, Int_t sensor, Int_t rawHitIndex) const;
47  virtual const char *GetCVS() const {
48  static const char cvs[] = "Tag $Name: $ $Id: StPxlRawHitCollection.h,v 1.5 2017/08/28 17:05:16 dongx Exp $ built " __DATE__ " " __TIME__ ;
49  return cvs;
50  }
51 
52 protected:
53  vector<StPxlRawHit> mPxlRawHitVec[kNumberOfPxlSectors][kNumberOfPxlLaddersPerSector][kNumberOfPxlSensorsPerLadder];
54 
55  ClassDef(StPxlRawHitCollection, 1)
56 };
57 
58 #endif
const StPxlRawHit * rawHit(Int_t sector, Int_t ladder, Int_t sensor, Int_t rawHitIndex) const
pionter to a rawHit in the collection
vector< StPxlRawHit > mPxlRawHitVec[kNumberOfPxlSectors][kNumberOfPxlLaddersPerSector][kNumberOfPxlSensorsPerLadder]
vectors to store raw hits
void addRawHit(const StPxlRawHit &rawHit)
add a raw hit to the collection
Int_t numberOfRawHits(Int_t sector, Int_t ladder, Int_t sensor)
number of raw hits in a sensor