//----------------------------------------------------------- // File and Version Information: // $Id$ // // Description: // Simple vertexing extrapolating all tracks to the Z-axis // // Environment: // Software developed for the Fopi GEM-TPC // // Author List: // Sverre Doerheim TUM (original author) // // //----------------------------------------------------------- #ifndef TPCSIMPLEVERTEXINGTASK_HH #define TPCSIMPLEVERTEXINGTASK_HH // Base Class Headers ---------------- #include "FairTask.h" // Collaborating Class Headers ------- #include // remove if you do not need streaming op // Collaborating Class DeclaratTpcVertexingTask::~TpcVertexingTask(){ #include "GFTrack.h" class TClonesArray; class TVector3; class TpcSimpleVertexingTask : public FairTask { public: // Constructors/Destructors --------- TpcSimpleVertexingTask(); ~TpcSimpleVertexingTask(); // Operators // Accessors ----------------------- // Modifiers ----------------------- void SetTrackBranchName(const TString& name) {_trackBranchName = name;} void SetVertexBranchName(const TString& name) {_vertexBranchName = name;} void SetPersistence(Bool_t opt = kTRUE) {_persistence = opt;} void SetBeamAxis(TVector3 z1, TVector3 z2){_z1=z1;_z2=z2;} // Operations ---------------------- virtual InitStatus Init(); virtual void SetParContainers(); virtual void Exec(Option_t* opt); private: // Private Data Members ------------ TString _trackBranchName; TClonesArray* _trackArray; Bool_t _persistence; TString _vertexBranchName; TClonesArray* _vertexArray; TVector3 _z1; TVector3 _z2; // Private Methods ----------------- public: ClassDef(TpcSimpleVertexingTask,1) }; #endif //-------------------------------------------------------------- // $Log$ //--------------------------------------------------------------