Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
rho_p_hists/Event.h
Go to the documentation of this file.
1 // $Id$
2 //
3 // File: Event.h
4 // Created: Tue Oct 13 09:55:12 EDT 2009
5 // Creator: davidl (on Darwin harriet.jlab.org 9.8.0 i386)
6 //
7 
8 #ifndef _Event_
9 #define _Event_
10 
11 #include <TObject.h>
12 #include <TVector3.h>
13 #include <TClonesArray.h>
14 #include <TLorentzVector.h>
15 
16 #include "rho_t.h"
17 
18 class Event:public TObject{
19 
20  public:
21 
22  Event(){rho = new TClonesArray("rho_t",100);}
23  ~Event(){delete rho;}
24 
25  UInt_t event; // event number
26  TLorentzVector proton_thrown; // Thrown proton parameters
27  TLorentzVector beam; // Thrown beam photon parameters
28  TVector3 vertex; // Thrown vertex position
29  rho_t rho_thrown; // Thrown pip, pim, inv. mass etc.
30  UInt_t Nrho; // Number of elements in rho
31  TClonesArray *rho; //-> Array of all combos of p+/pi- sorted by inv. mass closest to 770MeV/c^2
32 
33  void Clear(void);
34  void AddRho(TLorentzVector &pip, TLorentzVector &pim);
35  bool IsFiducial(TLorentzVector &pion);
36 
37  private:
38  ClassDef(Event,1);
39 
40 };
41 
42 #endif // _Event_
43 
TClonesArray * rho
TClonesArray * pip
Definition: mc_tree/Event.h:49
Definition: rho_t.h:19
void Clear(void)
bool IsFiducial(TLorentzVector &pion)
void AddRho(TLorentzVector &pip, TLorentzVector &pim)
ClassDef(Event, 1)
TClonesArray * pim
Definition: mc_tree/Event.h:50
UInt_t event
UInt_t Nrho
TLorentzVector beam
TLorentzVector proton_thrown
TVector3 vertex
rho_t rho_thrown