perfect = before
had been - before a past moment
has/have been - before the present moment
She had been waiting for me a long time before I arrived.
She has been waiting for me a long time.......(And I'm late and she is still waiting).
LanguageLearningBase.com (short: llb.re) is an online community for learning foreign languages.
It represents an open knowledge base. Every member can share and gain knowledge about a new language.
Past perfect vs present perfect
Useful scheme to understand the difference between past perfect and present perfect:
Past perfect
Present perfect