Skip to content

Commit

Permalink
Add instance ( )
Browse files Browse the repository at this point in the history
  • Loading branch information
fisyak committed Dec 26, 2024
1 parent f407d2b commit d5dfbdf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
2 changes: 1 addition & 1 deletion StRoot/StPicoEvent/StPicoDst.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include "StPicoDst.h" //MUST be the last one

TClonesArray** StPicoDst::picoArrays = 0;

StPicoDst *StPicoDst::fgPicoDst = 0;
//_________________
void StPicoDst::unset() {
picoArrays = 0;
Expand Down
13 changes: 3 additions & 10 deletions StRoot/StPicoEvent/StPicoDst.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,12 @@ class StPicoDst {

public:

#if defined (__TFG__VERSION__)
/// Default constructor
StPicoDst() { fgPicoDst = this;}
/// Destructor
virtual ~StPicoDst() {fgPicoDst = 0;}
#if defined (__TFG__VERSION__)
virtual Bool_t IsGoodTrigger() const;
#else /* ! __TFG__VERSION__ */
/// Default constructor
StPicoDst() { /* emtpy */}
/// Destructor
~StPicoDst() { /* empty*/ }
#endif

/// Set the pointers to the TClonesArrays
Expand Down Expand Up @@ -174,18 +171,14 @@ class StPicoDst {
/// Print MC track info
static void printMcTracks();

#if defined (__TFG__VERSION__)
static StPicoDst *instance() {return fgPicoDst;}
#endif /* __TFG__VERSION__ */

private:

/// Array of TClonesArrays
static TClonesArray** picoArrays;

#if defined (__TFG__VERSION__)
static StPicoDst *fgPicoDst; //!
#endif /* __TFG__VERSION__ */
};

#endif

0 comments on commit d5dfbdf

Please sign in to comment.