--- DarthVader/ToFLevel2/inc/ToFLevel2.h 2014/09/16 08:05:40 1.33 +++ DarthVader/ToFLevel2/inc/ToFLevel2.h 2015/03/24 11:09:54 1.35 @@ -240,6 +240,8 @@ ToFTrkVar* GetToFTrkVar(){return this;}; void Clear(Option_t *t=""); + Float_t CalcBeta(Float_t resmax, Float_t qualitycut, Float_t chi2cut); // Elena 2015 + ClassDef(ToFTrkVar,1); // }; @@ -279,21 +281,22 @@ void GetLevel2Struct(cToFLevel2 *) const; // ToFTrkVar *GetToFTrkVar(Int_t notrack); + ToFTrkVar* GetToFStoredTrack(Int_t seqno);///< returns pointer to the track set related to the seqno number ToFPMT *GetToFPMT(Int_t nohit); - Int_t GetPMTid(Int_t gg, Int_t hh); - TString GetPMTName(Int_t ind); + static Int_t GetPMTid(Int_t gg, Int_t hh); + static TString GetPMTName(Int_t ind); - Int_t GetPlaneIndex(Int_t pmt_id); + static Int_t GetPlaneIndex(Int_t pmt_id); void GetMatrix(Int_t notrack, Float_t adc[4][12], Float_t tdc[4][12]); - void GetPMTIndex(Int_t pmt_id, Int_t &gg, Int_t &hh); + static void GetPMTIndex(Int_t pmt_id, Int_t &gg, Int_t &hh); // gf Apr 07 void GetdEdxPaddle(Int_t notrack, Int_t paddleid, Int_t adcfl, Float_t &PadEdx, Int_t &SatWarning); // gf Apr 07 void GetdEdxPaddle(ToFTrkVar *trk, Int_t paddleid, Int_t adcfl, Float_t &PadEdx, Int_t &SatWarning); // gf Apr 07 - TString GetPMTName(Int_t ind, Int_t &iplane, Int_t &ipaddle,Int_t &ipmt); + static TString GetPMTName(Int_t ind, Int_t &iplane, Int_t &ipaddle,Int_t &ipmt); Int_t GetPaddleIdOfTrack(Float_t xtr, Float_t ytr, Int_t plane); // gf Apr 07 //EMXX Int_t GetPaddleIdOfTrack(Float_t xtr, Float_t ytr, Int_t plane, Float_t margin); // wm jun 2008 - void GetPMTPaddle(Int_t pmt_id, Int_t &plane, Int_t &paddle); // gf Apr 07 + static void GetPMTPaddle(Int_t pmt_id, Int_t &plane, Int_t &paddle); // gf Apr 07 void GetPaddlePMT(Int_t paddle, Int_t &pmtleft, Int_t &pmtright); // gf Apr 07 void GetPaddleGeometry(Int_t plane, Int_t paddle, Float_t &xleft, Float_t &xright, Float_t &yleft, Float_t &yright); // gf Apr 07 Int_t GetPaddleid(Int_t plane, Int_t paddle); @@ -361,6 +364,7 @@ // TClonesArray *GetTrackArray(){return ToFTrk;} ///< returns a pointer to the track related variables array TClonesArray** GetPointerToTrackArray(){return &ToFTrk;}///< returns pointer to pointer to the track array + void SetTrackArray(TClonesArray *track);///