//----------------------------------------------------------- // File and Version Information: // $Id$ // // Description: // Conversion of FOPI RPC hits ("RpcTrack") to // planar Genfit hits // // Environment: // Software developed for the GEM-TPC in FOPI // // Author List: // Felix Boehmer, E18 TUM (original author) // //----------------------------------------------------------- #ifndef FOPIRPCINITTASK_HH #define FOPIRPCINITTASK_HH #include "FairTask.h" class TClonesArray; class FopiRpcInitTask : public FairTask { public: // Constructors/Destructors --------- FopiRpcInitTask(); virtual ~FopiRpcInitTask(); // Modifiers ----------------------- void SetHitBranchName(const TString& name) {fHitBranchName=name;} void SetOutBranchName(const TString& t) {fOutBranchName=t;} void SetPersistence(Bool_t opt=kTRUE) {fPersistence=opt;} //write out recoHits? void SetUseConstantOffset(Bool_t opt=kTRUE) {fConstantOffset=opt;} //write out recoHits? void SetConstantErrorZ(double sigZ) {fConstSigZ=sigZ; fUseConstSigZ=kTRUE;} void SetConstantErrorPhi(double sigPhi) {fConstSigPhi=sigPhi;} //void SetWeightedPlaneConstruction(Bool_t opt=kTRUE){_weightedPlaneConstruction=opt;} //void SetCutCov(Bool_t opt=kTRUE){_cutCov=opt;} // Operations ---------------------- virtual InitStatus Init(); virtual void Exec(Option_t* opt); private: // Private Data Members ------------ TString fHitBranchName; TString fOutBranchName; TClonesArray* fHitArray; //RpcTrack input (these are hits with a stupid name) TClonesArray* fOutArray; //GF hits output int fHitArrID; double fConstSigZ; double fConstSigPhi; Bool_t fPersistence; Bool_t fVerbose; Bool_t fConstantOffset; //use constant z0 (_zOffset) Bool_t fUseConstSigZ; //Bool_t _weightedPlaneConstruction; //Bool_t _cutCov; //calibrated zOffset of the RPC strip center from the FOPI origin //at -20.0 target position static const double _zOffset = 100.58830; std::map fModLookup; //module number <- module normal phi void initModuleLookup(); public: ClassDef(FopiRpcInitTask,1) }; #endif //-------------------------------------------------------------- // $Log$ //--------------------------------------------------------------