A passage from Buddhacarita might help:
atho viviktaṁ kāmebhyo vyāpādādibhya eva ca |
vivekajamavāpnoti pūrvadhyānaṁ vitarkavat || 12.49
49. ‘Then he reaches the first stage of contemplation, which is separated from desires, evil intentions and the like, and arises from discrimination and which involves reasoning. 10
tacca dhyānaṁ sukhaṁ prāpya tattadeva vitarkayan |
apūrvasukhalābhena hriyate bāliśo janaḥ || 12.50
50. ‘And having obtained this ecstatic contemplation, and reasoning on various objects, the childish mind is carried away by the possession of the new unknown ecstasy.
śamenaivaṁvidhenāyaṁ kāmadveṣavigarhiṇā |
brahmalokamavāpnoti paritoṣeṇa vaṁcitaḥ || 12.51
51. ‘With a tranquillity of this kind, which disdains desire or dislike, he reaches the world of Brahman, deceived by the delight.
jñātvā vidvān vitarkāṁstu manaḥsaṁkṣobhakārakān |
tadviyuktamavāpnoti dhyānaṁ prītisukhānvitam || 12.52
52. ‘But the wise man, knowing that these reasonings bewilder the mind, reaches a (second) stage of contemplation separate from this, which has its own pleasure and ecstasy.
hriyamāṇastayā prītyā yo viśeṣaṁ na paśyati |
sthānaṁ bhāsvaramāpnoti deveṣvābhāsureṣvapi || 12.53
53. ‘And he who, carried away by this pleasure, sees no further distinction, obtains a dwelling full of light, even amongst the Ābhāsura deities.
yastu prītisukhāttasmādvivecayati mānasam |
tṛtīyaṁ labhate dhyānaṁ sukhaṁ prītivivarjitam || 12.54
54. ‘But he who separates his mind from this pleasure and ecstasy, reaches the third stage of contemplation ecstatic but without pleasure.
tatra kecidvyavasyaṁti mokṣa ityapi māninaḥ |
sukhaduḥkhaparityāgādavyāpārācca cetasaḥ || 12.55 (57)
55. ‘Upon this stage some teachers make their stand, thinking that it is indeed liberation, since pleasure and pain have been left behind and there is no exercise of the intellect.
yastu tasminsukhe magno na viśeṣāya yatnavān |
śubhakṛtsnaiḥ sa sāmānyaṁ sukhaṁ prāpnoti daivataiḥ || 12.56 (55)
56. ‘But he who, immersed in this ecstasy, strives not for a further distinction, obtains an ecstasy in common with the Śubhakṛtsna deities.
tādṛśaṁ sukhamāsādya yo na rajyannupekṣate |
caturthaṁ dhyānamāpnoti sukhaduḥkhavivarjitam || 12.57 (56)
57. ‘But he who, having attained such a bliss desires it not but despises it, obtains the fourth stage of contemplation which is separate from all pleasure or pain.http://www.buddhanet-de.net/ancient-bud ... ok-XII.htm