StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
EEmcParticleCandidate.h
1 /*
2  * Created by S. Gliske, May 2012
3  *
4  * Description: Container used in the EEmcAnalysisTree. Represents a candidate particle.
5  *
6  * Note: this does not explicitly depend on the STAR framework, and so
7  * the trees can be read outside of the STAR framework. Note: data
8  * members are all public, to allow a lighter weight implementation. from
9  * the TTree.
10  *
11  * While other makers may redefine the interpretation of PID, this
12  * class defaults to a value of PID = 1000.
13  *
14  */
15 
16 #ifndef EEmcParticleCandidate_H__
17 #define EEmcParticleCandidate_H__
18 
19 #include <Rtypes.h>
20 #include <TObject.h>
21 #include <TVector3.h>
22 
23 class EEmcHit_t;
24 
25 class EEmcParticleCandidate_t : public TObject {
26 
27  public:
28  // constructor
30  EEmcParticleCandidate_t( Int_t hitIdx_, const EEmcHit_t& hit, TVector3& vertex );
31 
32  // default equals operator and copy constructor OK
33 
34  Int_t PID, hitIdx1;
35  Float_t E, M, PT;
36  TVector3 position; // where it hits the endcap
37  TVector3 momentum; // in the direction from primary vertex to the position
38 
39  private:
40  ClassDef( EEmcParticleCandidate_t, 1);
41 };
42 
43 inline EEmcParticleCandidate_t::EEmcParticleCandidate_t() : PID(-9999), hitIdx1(-1), E(0), M(0), PT(0) { /* */ };
44 
45 #endif
46 
47 /*
48  * $Id: EEmcParticleCandidate.h,v 1.1 2012/11/26 19:04:30 sgliske Exp $
49  * $Log: EEmcParticleCandidate.h,v $
50  * Revision 1.1 2012/11/26 19:04:30 sgliske
51  * moved from offline/users/sgliske/StRoot/StEEmcPool/EEmcTreeContainers to StRoot/StEEmcPool/EEmcTreeContainers
52  *
53  *
54  */