StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StMcPxlLadderHitCollection.cc
1 /***************************************************************************
2  *
3  * $Id: StMcPxlLadderHitCollection.cc,v 2.1 2013/03/25 23:50:36 perev Exp $
4  * $Log: StMcPxlLadderHitCollection.cc,v $
5  * Revision 2.1 2013/03/25 23:50:36 perev
6  * Mustafa.Pxl add
7  *
8  *
9  **************************************************************************/
10 #include "StMcPxlLadderHitCollection.hh"
11 #include "StMcPxlHit.hh"
12 static const char rcsid[] = "$Id: StMcPxlLadderHitCollection.cc,v 2.1 2013/03/25 23:50:36 perev Exp $";
13 
15 
16 //_____________________________________________________________________________
18 {
19  /* noop */
20 }
21 //_____________________________________________________________________________
22 StMcPxlLadderHitCollection::~StMcPxlLadderHitCollection()
23 {
24  /* noop */
25 }
26 
28 StMcPxlLadderHitCollection::sensor(unsigned int i)
29 {
30  return (i < kNumberOfSensors) ? &(mSensors[i]) : 0;
31 }
32 
34 StMcPxlLadderHitCollection::sensor(unsigned int i) const
35 {
36  return (i < kNumberOfSensors) ? &(mSensors[i]) : 0;
37 }
38 
39 unsigned int StMcPxlLadderHitCollection::numberOfHits() const
40 {
41  unsigned int sum = 0;
42  for (int iSen = 0; iSen < kNumberOfSensors; iSen++)
43  {
44  sum += mSensors[iSen].hits().size();
45  }
46  return sum;
47 }