FairRoot/PandaRoot
RhoFactory.h
Go to the documentation of this file.
1 #ifndef RHOFACTORY_H
2 #define RHOFACTORY_H
3 // //
5 // RhoFactory //
6 // //
7 // Object factory for RhoCandidate and Vertices (RhoVector3Err) //
8 // //
9 // Author List: //
10 // Marcel Kunze, RUB, Feb. 01 //
11 // Copyright (C) 1999-2001, Ruhr-University Bochum. //
12 // Ralf Kliemt, HIM/GSI Feb.2013 (Cleanup & Restructuring) //
13 // //
15 
16 #include <iostream>
17 
18 #include "TClonesArray.h"
19 
20 class RhoCandidate;
21 class RhoVector3Err;
22 class TLorentzVector;
23 class RhoError;
25 class TParticlePDG;
26 
27 class RhoFactory : public TObject
28 {
29 
30  public:
31  static RhoFactory* Instance();
32  virtual ~RhoFactory();
33  static void Reset();
34  static RhoCandidate* NewCandidate();
35  static RhoCandidate* NewCandidate ( const RhoCandidate& c );
36  static RhoCandidate* NewCandidate ( const RhoCandidate* c );
37 
38 // static RhoCandidate* NewCandidate ( TLorentzVector p4,
39 // RhoError& p4Err,
40 // RhoCandListIterator& iterDau,
41 // RhoVector3Err& theVertex,
42 // const TParticlePDG* hypo = 0 );
43 
44  static RhoCandidate* GetCandidate ( Int_t );
45  static Int_t GetCandidateWatermark();
46  static Int_t GetCandPointer();
47 
48  private:
51  static TClonesArray* fgCandBuffer;
52  static Int_t fgCandPointer; // Actual position
53  static Int_t fgCandWatermark; // Max. position
54 
55  ClassDef ( RhoFactory,1 ) //Factory for candidates and vertices
56 
57 };
58 #endif
static void Reset()
Definition: RhoFactory.cxx:28
static Int_t fgCandPointer
Candidate buffer.
Definition: RhoFactory.h:52
static Int_t fgCandWatermark
Definition: RhoFactory.h:53
static RhoFactory * Instance()
Definition: RhoFactory.cxx:34
static TClonesArray * fgCandBuffer
Do not stream.
Definition: RhoFactory.h:51
static Int_t GetCandidateWatermark()
Definition: RhoFactory.cxx:110
static RhoCandidate * NewCandidate()
Definition: RhoFactory.cxx:52
static RhoFactory * fgInstance
Definition: RhoFactory.h:50
static RhoCandidate * GetCandidate(Int_t)
Definition: RhoFactory.cxx:104
static Int_t GetCandPointer()
Definition: RhoFactory.cxx:115
virtual ~RhoFactory()
Definition: RhoFactory.cxx:40