// ----------------------------------------- // PndDrcLutNode.h // // Created on: 09.07.2013 // Author: R.Dzhygadlo at gsi.de // ----------------------------------------- // Container for look-up table #ifndef PNDDRCLUTNODE_H #define PNDDRCLUTNODE_H #include "TObject.h" #include "TClonesArray.h" #include "TVector3.h" #include #include class PndDrcLutNode : public TObject { public: // Default constructor PndDrcLutNode (); // Standard constructors PndDrcLutNode (Int_t detectorId); // Copy constructor PndDrcLutNode (PndDrcLutNode& node) { *this = node; } // Modifiers void AddEntry(Int_t nodeId, TVector3 dir, Double_t pathid, Double_t time, TVector3 pos); void SetPos(TVector3 pos){fNodePos = pos;} // Accessors Int_t Entries() { return fSize; } Double_t GetDetectorId() { return fDetectorId; } TVector3 GetEntry(Int_t entry) { return fNodeArray[entry]; } Double_t GetPathId(Int_t entry){ return fPathIdArray[entry]; } Double_t GetTime(Int_t entry){ return fTimeArray[entry]; } TVector3 GetPos(){ return fNodePos; } protected: Int_t fDetectorId; Int_t fSize; TVector3 fNodePos; std::vector fNodeArray; std::vector fPathIdArray; std::vector fTimeArray; ClassDef(PndDrcLutNode,1) }; #endif //PNDDRCLUTNODE_H