Skip to content

Commit 2bd170c

Browse files
committed
Revert "Change TPX gain loading interface from fTpx->put(... to fTpx->gain_al… (#417)"
This reverts commit e709d3d.
1 parent 267b782 commit 2bd170c

4 files changed

Lines changed: 209 additions & 871 deletions

File tree

StRoot/StTpcHitMaker/StTpcHitMaker.cxx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,17 @@ Int_t StTpcHitMaker::Make() {
442442
LOG_WARN << "TPC status indicates it is unusable for this event. Ignoring hits." << endm;
443443
return kStOK;
444444
}
445+
#ifdef __GENE__ /* I have no idea what the codes after */
446+
if ( kMode == kTpx || kMode == kTpc || kMode == kiTPC ) {
447+
pEvent = dynamic_cast<StEvent *> (GetInputDS("StEvent"));
448+
if (Debug()) {LOG_INFO << "StTpcHitMaker::Make : StEvent has been retrieved " <<pEvent<< endm;}
449+
if (! pEvent) {LOG_INFO << "StTpcHitMaker::Make : StEvent has not been found " << endm; return kStWarn;}
450+
pHitCollection = pEvent->tpcHitCollection();
451+
} else {
452+
pEvent = 0;
453+
pHitCollection = 0;
454+
}
455+
#endif
445456

446457
static Int_t minSector = IAttr("minSector");
447458
static Int_t maxSector = IAttr("maxSector");

0 commit comments

Comments
 (0)