#ifndef ROOT_THaTRACKOUT
#define ROOT_THaTRACKOUT

///////////////////////////////////////////////////////////////////////////
//
//  Class to put the four-vector for tracks from a THaTrackingModule
//
///////////////////////////////////////////////////////////////////////////
#include "THaPhysicsModule.h"

#include <TLorentzVector.h>
#include <TString.h>

class THaTrackingModule;

class THaTrackOut : public THaPhysicsModule {
 public:
  THaTrackOut(const char* name, const char* description,
	      const char* src="", Double_t pmass=0.0 /* GeV */ );
  virtual ~THaTrackOut();

  virtual void         Clear( Option_t* opt="" );
  virtual EStatus      Init( const TDatime& run_time );
  virtual Int_t        InitOutput( THaOutput* output );
          void         SetMass ( Double_t m );
	  void         SetSpectrometer( const char* name );
  virtual Int_t        Process( const THaEvData& evdata );
	  
 protected:
  Double_t fM;                // Mass of detected particle
  TString  fSrcName;          // Name of module providing the track
  
  TLorentzVector*      fP4;   // momentum four-vector
  
  THaTrackingModule*   fSrc;  // Pointer to trackingmodule
  
 public:
  ClassDef(THaTrackOut,0)   // lorentz-vector output module
};

#endif

Last change: Sat Nov 7 21:26:53 2009
Last generated: 2009-11-07 21:26

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.