23 #include "StRpsCollection.h"
24 #include "StRpsPlane.h"
26 static const char rcsid[] =
"$Id: StRpsCollection.cxx,v 2.3 2015/10/02 19:50:50 ullrich Exp $";
35 for (
unsigned int i=0; i<mNumberOfRomanPots; i++) {
36 mRomanPots[i].setRomanPotId(static_cast<unsigned char>(i));
37 for (
unsigned int j=0; j<mRomanPots[i].numberOfPlanes(); j++) {
38 mRomanPots[i].plane(j)->setPlaneId(static_cast<unsigned char>(j));
39 mRomanPots[i].plane(j)->setRomanPotId(static_cast<unsigned char>(i));
45 StRpsCollection::~StRpsCollection() { }
48 StRpsCollection::numberOfRomanPots()
const
50 return mNumberOfRomanPots;
54 StRpsCollection::romanPot(
unsigned int i)
const
56 if (i < mNumberOfRomanPots)
57 return &mRomanPots[i];
63 StRpsCollection::romanPot(
unsigned int i)
65 if (i < mNumberOfRomanPots)
66 return &mRomanPots[i];
72 StRpsCollection::clusters()
const
74 StPtrVecRpsCluster vec;
75 for (
unsigned int i=0; i<mNumberOfRomanPots; i++) {
77 for (
unsigned int j=0; j<seq->numberOfPlanes(); j++) {
79 for (
unsigned int k=0; k<plane->numberOfClusters(); k++)
80 vec.push_back(plane->cluster(k));
86 StPtrVecRpsTrackPoint StRpsCollection::trackPoints()
const {
87 StPtrVecRpsTrackPoint trackPointsVec;
88 for (
unsigned int i=0; i<mTrackPoints.size(); ++i) {
89 trackPointsVec.push_back( mTrackPoints[i] );
91 return trackPointsVec;
94 StPtrVecRpsTrack StRpsCollection::tracks()
const {
95 StPtrVecRpsTrack tracksVec;
96 for(
unsigned int i=0; i<mTracks.size(); ++i){
97 tracksVec.push_back( mTracks[i] );
103 StRpsCollection::siliconBunch()
const
105 return mSiliconBunch;
109 StRpsCollection::setSiliconBunch(
unsigned char val)