6 #include "TClonesArray.h"
9 #include "StMuDSTMaker/COMMON/StMuDst.h"
10 #include "StMuDSTMaker/COMMON/StMuFmsCollection.h"
11 #include "StMuDSTMaker/COMMON/StMuFmsHit.h"
14 #include "StPicoDstMaker/StPicoFmsFiller.h"
15 #include "StPicoEvent/StPicoDst.h"
16 #include "StPicoEvent/StPicoFmsHit.h"
31 TClonesArray* muFmsHits = muFmsCollection ? muFmsCollection->getHitArray() :
nullptr;
38 TClonesArray *hitCollection = mPicoDst.
picoArray(StPicoArrays::FmsHit);
40 for (
const TObject* obj : *muFmsHits) {
43 int counter = hitCollection->GetEntries();
44 new((*hitCollection)[counter])
StPicoFmsHit(muFmsHit.detectorId(),
void fill(const StMuDst &muDst, const StFmsDbMaker *fmsDbMaker=nullptr)
Fill FMS info.
static StMuFmsCollection * muFmsCollection()
returns pointer to current StMuFmsCollection
static TClonesArray * picoArray(Int_t type)
Return pointer to the n-th TClonesArray.
Holds information about FMS hit.
Main class that keeps TClonesArrays with main classes.
StPicoFmsFiller(StPicoDst &picoDst)
Constructor.