5 #include "FairLogger.h"
6 #include "FairRootManager.h"
7 #include "FairTrackParam.h"
9 #include "TClonesArray.h"
19 std::cout <<
"-I- CbmLitCreateStandaloneData::Init Creating MUCH layout"
27 std::ofstream outfile(
"sa_geometry.txt");
45 <<
"-I- CbmLitCreateStandaloneData::Init Finish creating MUCH layout"
50 FairRootManager* ioman = FairRootManager::Instance();
51 if (NULL == ioman) { Fatal(
"Init",
"CbmRootManager is not instantiated"); }
53 fStsTracks = (TClonesArray*) ioman->GetObject(
"StsTrack");
54 if (NULL ==
fStsTracks) { Fatal(
"Init",
": No StsTrack array!"); }
57 if (NULL ==
fMuchPixelHits) { Fatal(
"Init",
"No MuchPixelHit array!"); }
70 for (Int_t iStsTrack = 0; iStsTrack <
fStsTracks->GetEntriesFast();
74 fSeedsFile << par->GetX() <<
" " << par->GetY() <<
" " << par->GetZ() <<
" "
75 << par->GetTx() <<
" " << par->GetTy() <<
" " << par->GetQp()
79 for (
unsigned int i = 0;
i < 15; ++
i) {
86 for (Int_t iMuchHit = 0; iMuchHit <
fMuchPixelHits->GetEntriesFast();
90 << muchHit->
GetZ() <<
" " << muchHit->
GetDx() <<
" "
91 << muchHit->
GetDy() <<
" " << muchHit->
GetDxy() <<
" "
96 std::cout <<
"Event: " <<
fEventNo++ << std::endl;